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 Summary
ConstructorsConstructorDescriptionRegistryKeepAliveRunner(String registryHost, int registryPort, String serviceName) Deprecated. -
Method Summary
Modifier 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
-
RegistryKeepAliveRunner
Deprecated.- Parameters:
registryHost- - Hostname of the registryregistryPort- - the port on which to start the registryserviceName-
-
-
Method Details
-
run
Deprecated.Tries to lookup the server. If unsuccessful it will rebind the server using the factory rebind method. -
checkAndRestoreIfNeeded
Deprecated.Tries to lookup the server. If unsuccessful it will rebind the server using the factory rebind method. -
createAndRegister
Deprecated.Creates the registry and registers the server.- Parameters:
serviceName- the service name
-
createReqistry
Deprecated.Try to create the registry. Log errors- Parameters:
serviceName- the service name
-
registerServer
Deprecated.Try to rebind the server.- Parameters:
serviceName- the service name
-
setCacheEventLogger
Deprecated.Allows it to be injected.- Parameters:
cacheEventLogger-
-