Package org.jppf.admin.web.filter
Class TopologyFilter
java.lang.Object
org.jppf.admin.web.filter.TopologyFilter
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TopologyFilterListener listener) Add a listener to this filter.org.jppf.node.policy.ExecutionPolicybooleanisActive()load()Load the settings with the persistence handler.voidremoveListener(TopologyFilterListener listener) Remove a listener from this filter.voidsave()Save the settings with the persistence handler.voidsetActive(boolean active) Set the active state of the filter.voidsetXmlPolicy(String xmlPolicy) Set the xml policy.
-
Constructor Details
-
TopologyFilter
Initialize with the specified user.- Parameters:
user- th euser name.
-
-
Method Details
-
load
Load the settings with the persistence handler.- Returns:
- these user settings.
-
save
public void save()Save the settings with the persistence handler. -
getXmlPolicy
- Returns:
- the XML policy as loaded from the persistent store.
-
setXmlPolicy
Set the xml policy.- Parameters:
xmlPolicy- the xml policy as a string.
-
getPolicy
public org.jppf.node.policy.ExecutionPolicy getPolicy()- Returns:
- the execution policy used for actual filtering.
-
isActive
public boolean isActive()- Returns:
- dhether the filter is active.
-
setActive
public void setActive(boolean active) Set the active state of the filter.- Parameters:
active-trueto activate,falseto deactivate.
-
addListener
Add a listener to this filter.- Parameters:
listener- the listener to add.
-
removeListener
Remove a listener from this filter.- Parameters:
listener- the listener to remove.
-