Class RegistryKeepAliveRunner

java.lang.Object
org.apache.commons.jcs3.auxiliary.remote.server.RegistryKeepAliveRunner
All Implemented Interfaces:
Runnable

@Deprecated public class RegistryKeepAliveRunner extends Object implements 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 Details

    • RegistryKeepAliveRunner

      public RegistryKeepAliveRunner(String registryHost, int registryPort, String serviceName)
      Deprecated.
      Parameters:
      registryHost - - Hostname of the registry
      registryPort - - the port on which to start the registry
      serviceName -
  • Method Details

    • run

      public void run()
      Deprecated.
      Tries to lookup the server. If unsuccessful it will rebind the server using the factory rebind method.

      Specified by:
      run in interface Runnable
    • checkAndRestoreIfNeeded

      protected void checkAndRestoreIfNeeded()
      Deprecated.
      Tries to lookup the server. If unsuccessful it will rebind the server using the factory rebind method.
    • createAndRegister

      protected void createAndRegister(String serviceName)
      Deprecated.
      Creates the registry and registers the server.

      Parameters:
      serviceName - the service name
    • createReqistry

      protected void createReqistry(String serviceName)
      Deprecated.
      Try to create the registry. Log errors

      Parameters:
      serviceName - the service name
    • registerServer

      protected void registerServer(String serviceName)
      Deprecated.
      Try to rebind the server.

      Parameters:
      serviceName - the service name
    • setCacheEventLogger

      public void setCacheEventLogger(ICacheEventLogger cacheEventLogger)
      Deprecated.
      Allows it to be injected.

      Parameters:
      cacheEventLogger -