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 void
Deprecated.Tries to lookup the server.protected void
createAndRegister
(String serviceName) Deprecated.Creates the registry and registers the server.protected void
createReqistry
(String serviceName) Deprecated.Try to create the registry.protected void
registerServer
(String serviceName) Deprecated.Try to rebind the server.void
run()
Deprecated.Tries to lookup the server.void
setCacheEventLogger
(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
-
-