|
||||||||||
| 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(String registryHost,
int registryPort,
String serviceName)
|
|
| Method Summary | |
|---|---|
protected void |
checkAndRestoreIfNeeded()
Tries to lookup the server. |
protected void |
createAndRegister(String registry)
Creates the registry and registers the server. |
protected void |
createReqistry(String registry)
Try to create the registry. |
protected void |
registerServer(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(String registryHost,
int registryPort,
String serviceName)
registryHost - - Hostname of the registryregistryPort - - the port on which to start the registryserviceName - | Method Detail |
|---|
public void run()
run in interface Runnableprotected void checkAndRestoreIfNeeded()
protected void createAndRegister(String registry)
registry - protected void createReqistry(String registry)
registry - protected void registerServer(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 | |||||||||