Package org.jppf.client.monitoring
Class AbstractRefreshHandler
java.lang.Object
org.jppf.client.monitoring.AbstractRefreshHandler
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 Summary
ConstructorsConstructorDescriptionAbstractRefreshHandler(String name, long refreshInterval) Initialize this node handler. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether refreshes are currently suspended.protected abstract voidRefresh the refresh.voidrefresh()Refresh the tree structure asynchronously (not in the AWT event thread).voidsetSuspended(boolean suspended) Specify whether refreshes are currently suspended.voidStart the automatic refresh of the nodes state through a timer.voidStop the automatic refresh of the nodes state through a timer.
-
Constructor Details
-
AbstractRefreshHandler
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:
trueif refreshes are suspended,falseotherwise.- Since:
- 5.1
-
setSuspended
public void setSuspended(boolean suspended) Specify whether refreshes are currently suspended.- Parameters:
suspended-trueto suspend refreshes,falseto resume them.- Since:
- 5.1
-