Class AbstractRefreshHandler

java.lang.Object
org.jppf.client.monitoring.AbstractRefreshHandler

public abstract class AbstractRefreshHandler extends Object
Instances of this class hold information about the associations between JPPF drivers and their attached nodes, for management and monitoring purposes.
Since:
5.0
Author:
Laurent Cohen
  • Constructor Details

    • AbstractRefreshHandler

      public AbstractRefreshHandler(String name, long refreshInterval)
      Initialize this node handler.
      Parameters:
      refreshInterval - interval in milliseconds between refreshes.
      name - the name given to this refresher and its timer thread.
  • Method Details

    • refresh

      public void refresh()
      Refresh the tree structure asynchronously (not in the AWT event thread).
    • performRefresh

      protected abstract void performRefresh()
      Refresh the refresh.
    • stopRefreshTimer

      public void stopRefreshTimer()
      Stop the automatic refresh of the nodes state through a timer.
    • startRefreshTimer

      public void startRefreshTimer()
      Start the automatic refresh of the nodes state through a timer.
    • isSuspended

      public boolean isSuspended()
      Determine whether refreshes are currently suspended.
      Returns:
      true if refreshes are suspended, false otherwise.
      Since:
      5.1
    • setSuspended

      public void setSuspended(boolean suspended)
      Specify whether refreshes are currently suspended.
      Parameters:
      suspended - true to suspend refreshes, false to resume them.
      Since:
      5.1