|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
creamtec.webcream.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 JVMProcessRemoteagentName - agent name
java.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.Unreferenced
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||