Class TopologyFilter

java.lang.Object
org.jppf.admin.web.filter.TopologyFilter

public class TopologyFilter extends Object
Author:
Laurent Cohen
  • Constructor Details

    • TopologyFilter

      public TopologyFilter(String user)
      Initialize with the specified user.
      Parameters:
      user - th euser name.
  • Method Details

    • load

      public TopologyFilter load()
      Load the settings with the persistence handler.
      Returns:
      these user settings.
    • save

      public void save()
      Save the settings with the persistence handler.
    • getXmlPolicy

      public String getXmlPolicy()
      Returns:
      the XML policy as loaded from the persistent store.
    • setXmlPolicy

      public void setXmlPolicy(String xmlPolicy)
      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 - true to activate, false to deactivate.
    • addListener

      public void addListener(TopologyFilterListener listener)
      Add a listener to this filter.
      Parameters:
      listener - the listener to add.
    • removeListener

      public void removeListener(TopologyFilterListener listener)
      Remove a listener from this filter.
      Parameters:
      listener - the listener to remove.