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, unexportObject
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
public ClientAgentRemote createClientAgent(java.lang.String agentName) throws java.lang.Exception
createClientAgent
in interface JVMProcessRemote
agentName
- agent namejava.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
Copyright © 2000-2012 CreamTec LLC. All Rights Reserved.