public class JVMProcess extends java.rmi.server.UnicastRemoteObject implements JVMProcessRemote, java.rmi.server.Unreferenced
| Constructor and Description |
|---|
JVMProcess(java.lang.String appName,
int rmiPort)
Initializes an instance and registers it with the factory.
|
| Modifier and Type | Method and Description |
|---|---|
ClientAgentRemote |
createClientAgent(java.lang.String agentName)
Creates a new client agent with the given name.
|
static JVMProcess |
getInstance()
Returns the instance representing this JVM
|
static void |
main(java.lang.String[] args)
JVM Process entry point.
|
void |
ping()
Renews a lease on the agent.
|
void |
shutdown()
Terminates the JVM by calling System.exit.
|
void |
shutdownClientAgent(ClientAgentRemote clientAgent)
Shuts down the given client agent.
|
void |
unreferenced()
Called by RMI runtime if the factory got shutdown
|
clone, exportObject, exportObject, exportObject, unexportObjectpublic JVMProcess(java.lang.String appName,
int rmiPort)
throws java.lang.Exception
appName - name of the application whose agents will execute in this JVM.java.lang.Exceptionpublic ClientAgentRemote createClientAgent(java.lang.String agentName) throws java.lang.Exception
createClientAgent in interface JVMProcessRemoteagentName - agent namejava.lang.Exceptionpublic void shutdownClientAgent(ClientAgentRemote clientAgent)
shutdownClientAgent in interface JVMProcessRemoteclientAgent - ClientAgentRemotepublic void shutdown()
shutdown in interface JVMProcessRemotepublic void ping()
public static JVMProcess getInstance()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic void unreferenced()
unreferenced in interface java.rmi.server.UnreferencedCopyright © 2000-2012 CreamTec LLC. All Rights Reserved.