|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.remote.server.RegistryKeepAliveRunner
public class RegistryKeepAliveRunner
This class tries to keep the resitry alive. If if is able to create a registry, it will also rebind the remote cache server.
Constructor Summary | |
---|---|
RegistryKeepAliveRunner(java.lang.String registryHost,
int registryPort,
java.lang.String serviceName)
|
Method Summary | |
---|---|
protected void |
checkAndRestoreIfNeeded()
Tries to lookup the server. |
protected void |
createAndRegister(java.lang.String registry)
Creates the registry and registers the server. |
protected void |
createReqistry(java.lang.String registry)
Try to create the registry. |
protected void |
registerServer(java.lang.String registry)
Try to rebind the server. |
void |
run()
Tries to lookup the server. |
void |
setCacheEventLogger(ICacheEventLogger cacheEventLogger)
Allows it to be injected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryKeepAliveRunner(java.lang.String registryHost, int registryPort, java.lang.String serviceName)
registryHost
- - Hostname of the registryregistryPort
- - the port on which to start the registryserviceName
- Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
protected void checkAndRestoreIfNeeded()
protected void createAndRegister(java.lang.String registry)
registry
- protected void createReqistry(java.lang.String registry)
registry
- protected void registerServer(java.lang.String registry)
registry
- public void setCacheEventLogger(ICacheEventLogger cacheEventLogger)
cacheEventLogger
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |