Class EventProcessingPolicy

java.lang.Object
org.netxms.client.events.EventProcessingPolicy

public class EventProcessingPolicy extends Object
Event processing policy: the registry of rule chains readable by the current user. The main chain has ID 0. Rules of each chain are loaded separately.
  • Constructor Details

    • EventProcessingPolicy

      public EventProcessingPolicy()
  • Method Details

    • addChain

      public void addChain(EventProcessingPolicyChain chain)
      Add chain to registry
      Parameters:
      chain - chain to add
    • putChain

      public void putChain(EventProcessingPolicyChain chain)
      Replace registry entry of a chain with given object (same chain ID), or add it if not present
      Parameters:
      chain - chain object
    • removeChain

      public void removeChain(int chainId)
      Remove chain from registry
      Parameters:
      chainId - chain ID
    • getChains

      public List<EventProcessingPolicyChain> getChains()
      Returns:
      all chains readable by current user
    • getMainChain

      public EventProcessingPolicyChain getMainChain()
      Returns:
      the main chain, or null if it is not readable by current user
    • findChain

      public EventProcessingPolicyChain findChain(int chainId)
      Find chain by ID
      Parameters:
      chainId - chain ID
      Returns:
      chain or null
    • findChain

      public EventProcessingPolicyChain findChain(UUID guid)
      Find chain by GUID
      Parameters:
      guid - chain GUID
      Returns:
      chain or null
    • getLoadedRules

      public List<EventProcessingPolicyRule> getLoadedRules()
      Get rules of all loaded chains (main chain first)
      Returns:
      rules of all loaded chains