Class RegistryKeepAliveRunner
java.lang.Object
org.apache.commons.jcs3.auxiliary.remote.server.RegistryKeepAliveRunner
- All Implemented Interfaces:
- Runnable
Deprecated.
Functionality moved to RemoteCacheServerFactory
This class tries to keep the registry alive. If if is able to create a registry, it will also
 rebind the remote cache server.
- 
Constructor SummaryConstructorsConstructorDescriptionRegistryKeepAliveRunner(String registryHost, int registryPort, String serviceName) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidDeprecated.Tries to lookup the server.protected voidcreateAndRegister(String serviceName) Deprecated.Creates the registry and registers the server.protected voidcreateReqistry(String serviceName) Deprecated.Try to create the registry.protected voidregisterServer(String serviceName) Deprecated.Try to rebind the server.voidrun()Deprecated.Tries to lookup the server.voidsetCacheEventLogger(ICacheEventLogger cacheEventLogger) Deprecated.Allows it to be injected.
- 
Constructor Details- 
RegistryKeepAliveRunnerDeprecated.- Parameters:
- registryHost- - Hostname of the registry
- registryPort- - the port on which to start the registry
- serviceName-
 
 
- 
- 
Method Details- 
runDeprecated.Tries to lookup the server. If unsuccessful it will rebind the server using the factory rebind method.
- 
checkAndRestoreIfNeededDeprecated.Tries to lookup the server. If unsuccessful it will rebind the server using the factory rebind method.
- 
createAndRegisterDeprecated.Creates the registry and registers the server.- Parameters:
- serviceName- the service name
 
- 
createReqistryDeprecated.Try to create the registry. Log errors- Parameters:
- serviceName- the service name
 
- 
registerServerDeprecated.Try to rebind the server.- Parameters:
- serviceName- the service name
 
- 
setCacheEventLoggerDeprecated.Allows it to be injected.- Parameters:
- cacheEventLogger-
 
 
-