Class ClientBase

All Implemented Interfaces:
Runnable, ArooaContextAware, ArooaSessionAware, PropertyChangeNotifier, Iconic, LogEnabled, Resettable, Stateful, Stoppable
Direct Known Subclasses:
JMXClientJob, JMXServiceJob

public abstract class ClientBase extends SimpleService
Shared implementation for JMX clients.
Author:
rob
  • Constructor Details

    • ClientBase

      public ClientBase()
      Construct a new instance.
  • Method Details

    • onStart

      protected void onStart() throws Exception
      Specified by:
      onStart in class SimpleService
      Throws:
      Exception
    • doStart

      protected abstract void doStart(MBeanServerConnection mbsc, ScheduledExecutorService notificationProcessor) throws Exception
      Overridden by subclasses to provide a specific startup.
      Parameters:
      mbsc -
      notificationProcessor -
      Throws:
      Exception
    • onStop

      protected void onStop()
      Description copied from class: SimpleService
      Allow sub classes to do something on stop.
      Overrides:
      onStop in class SimpleService
    • doStop

      protected void doStop(ClientBase.WhyStop why, Exception cause)
    • onStop

      protected abstract void onStop(ClientBase.WhyStop why)
    • setConnection

      public void setConnection(String connection)
      Set naming service url.
      Parameters:
      connection - The name of the remote node in the naming service.
    • getConnection

      public String getConnection()
      Get the JMX service URL.
      Returns:
      The name of the remote node in the naming service.
    • getEnvironment

      public Map<String,?> getEnvironment()
    • setEnvironment

      public void setEnvironment(Map<String,?> environment)
    • getHeartbeat

      public long getHeartbeat()
    • setHeartbeat

      public void setHeartbeat(long heartbeat)