|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecService
The ExecService
interface describes the methods of an
execution service that can be remotely invoked. Such an execution
service can be used to start other java applications (replicas) on
the remote machine on which the execution service is running.
Field Summary | |
---|---|
static java.lang.String |
EXEC_DAEMON_NAME
Service name used to register each execution daemon in its local registry, or bootstrap registry. |
static java.lang.String |
SHUTDOWN_REPLICA
Keyword used to communicate to a replica that is should do a graceful shutdown. |
Method Summary | |
---|---|
boolean |
createExecReplica(ClassData classData)
Instantiate and start the given class (replica), within the same JVM as the execution service. |
boolean |
createReplica(ClassData classData)
Instantiate and start the given class (replica) in a JVM process separate from the execution service JVM process. |
void |
ping()
Method used to check if the execution service is still running. |
java.util.Set<ClassData> |
queryReplicas()
Return the set of replicas currently running on this execution service. |
boolean |
removeReplica(ClassData classData)
Remove the specified class (replica) from the execution service associated with the remote reference. |
void |
shutdown(int delay)
Request the execution service on this particular host to shutdown in approximately delay milliseconds. |
Field Detail |
---|
static final java.lang.String EXEC_DAEMON_NAME
static final java.lang.String SHUTDOWN_REPLICA
Method Detail |
---|
boolean createExecReplica(ClassData classData) throws java.rmi.RemoteException, ExecException
classData
- The class data object representing the replica to start. The
specified class must implement the remove method.
java.rmi.RemoteException
- If remote operation failed.
ExecException
- If the specified class (replica) could not be instantiated or
if the class (replica) does not implement the remove method.boolean createReplica(ClassData classData) throws java.rmi.RemoteException, ExecException
classData
- The class data object representing the replica to start.
java.rmi.RemoteException
- If remote operation failed.
ExecException
- If the specified class (replica) could not be instantiated.boolean removeReplica(ClassData classData) throws java.rmi.RemoteException
classData
- The class data object representing the replica to start.
java.rmi.RemoteException
- If remote operation failed.java.util.Set<ClassData> queryReplicas() throws java.rmi.RemoteException
ExecService
instance.
java.rmi.RemoteException
- If remote operation failed.void ping() throws java.rmi.RemoteException
java.rmi.RemoteException
- If remote operation failed. This will indicate that the execution
service is no longer running.void shutdown(int delay) throws java.rmi.RemoteException
delay
milliseconds. If delay is negative
all local replicas are removed, and shutdown will be immediate and no
shutdown hooks are executed. If the delay is positive, shutdown hooks
will be executed during the shutdown sequence.
delay
- The delay to wait before initiating shutdown.
java.rmi.RemoteException
- If remote operation failed. This will indicate that the execution
service is no longer running.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |