|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.creamtec.ajaxswing.core.AjaxSwingRegistryManager
public class AjaxSwingRegistryManager
Manages RMI registry. For the main (servlet) process, the registry is created in-process. For client agent JVMs, the registry is expected to be running on the configured port.
Constructor Summary | |
---|---|
AjaxSwingRegistryManager()
|
Method Summary | |
---|---|
static void |
execProcess(java.lang.String procName,
java.lang.String param)
Executes the script with the given name from the bin directory. |
static int |
getActivePort()
|
static java.rmi.registry.Registry |
getRegistry(int port,
int portRange)
Locates the registry on the given port. |
static void |
shutdownRegistry()
Shuts down the registry, if it was created in this process |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AjaxSwingRegistryManager()
Method Detail |
---|
public static java.rmi.registry.Registry getRegistry(int port, int portRange) throws java.lang.Exception
port
- initial registry portattemptRunningExternal
- if true, an attempt will be made to run registry externally
java.lang.Exception
public static void execProcess(java.lang.String procName, java.lang.String param) throws java.lang.Exception
procName
- script name, such as "runRegistry"param
- command line parameters to the script
java.lang.Exception
public static void shutdownRegistry()
public static int getActivePort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |