/** * Remove a method from the set of methods held by this * Supervisor. Use this if you know exactly which method to remove * and not only the name. * * @param method the method to remove **/ public void removeMethod(Method method) { transport.perform(new RemoveMethod(method)); }
/** * Add a method to the set of methods held by this Supervisor * * @param method the method to add **/ public void addMethod(Method method) { transport.perform(new AddMethod(method)); }
/** * Remove a method from the set of methods held by this Supervisor * * @param methodName name of the method to remove **/ public void removeMethod(String methodName) { transport.perform(new RemoveMethod(methodName)); }
/** * Shut down the Mirror. This will close any open connections, * stop the regular mirror updates, and discard all entries. */ public void shutdown() { updateTask.kill(); orb.transport().perform(new Runnable() { public void run() { handleShutdown(); } }); }
/** * Shut down the Register. This will close any open connections * and stop the regular re-registration. */ public void shutdown() { updateTask.kill(); orb.transport().perform(new Runnable() { public void run() { handleShutdown(); } }); }
/** * Add a connection to the set of connections handled by this * Transport. Invoked by the {@link Connector} class. * * @param conn the connection to add **/ void addConnection(Connection conn) { if (!postCommand(new AddConnectionCmd(conn))) { perform(new CloseConnectionCmd(conn)); } }
@Override public void sync() { SyncTask sh = new SyncTask(); orb.transport().perform(sh); sh.await(); }