Class AbstractNodeTask
- java.lang.Object
-
- org.opends.guitools.controlpanel.browser.AbstractNodeTask
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
NodeRefresher
public abstract class AbstractNodeTask extends Object implements Runnable
This is an abstract class that is extended to search for nodes or to refresh the contents of the nodes.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractNodeTask(BasicNode node)The constructor of the node searcher.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancels the searching/refreshing process.BasicNodegetNode()Returns the node that is being searched/refreshed.booleanisCanceled()Tells whether the search/refresh operation is cancelled.abstract voidrun()The method that is called to refresh/search the node.
-
-
-
Constructor Detail
-
AbstractNodeTask
protected AbstractNodeTask(BasicNode node)
The constructor of the node searcher.- Parameters:
node- the node to be searched/refreshed.
-
-
Method Detail
-
getNode
public BasicNode getNode()
Returns the node that is being searched/refreshed.- Returns:
- the node that is being searched/refreshed.
-
cancel
public void cancel()
Cancels the searching/refreshing process.
-
isCanceled
public boolean isCanceled()
Tells whether the search/refresh operation is cancelled.- Returns:
trueif the operation is cancelled andfalseotherwise.
-
-