|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject com.creamtec.ajaxswing.JVMProcess
public class JVMProcess
Represents a standalone JVM process. The main method of this class is called by the startup script to initialize the JVM.
Constructor Summary | |
---|---|
JVMProcess(java.lang.String appName,
int rmiPort)
Initializes an instance and registers it with the factory. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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.Exception
Method Detail |
---|
public ClientAgentRemote createClientAgent(java.lang.String agentName) throws java.lang.Exception
createClientAgent
in interface JVMProcessRemote
agentName
- agent name
java.lang.Exception
public void shutdownClientAgent(ClientAgentRemote clientAgent)
shutdownClientAgent
in interface JVMProcessRemote
clientAgent
- ClientAgentRemotepublic void shutdown()
shutdown
in interface JVMProcessRemote
public void ping()
public static JVMProcess getInstance()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void unreferenced()
unreferenced
in interface java.rmi.server.Unreferenced
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |