Package org.netxms.client.events
Class EventProcessingPolicy
java.lang.Object
org.netxms.client.events.EventProcessingPolicy
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd chain to registryfindChain(int chainId) Find chain by IDFind chain by GUIDGet rules of all loaded chains (main chain first)voidReplace registry entry of a chain with given object (same chain ID), or add it if not presentvoidremoveChain(int chainId) Remove chain from registry
-
Constructor Details
-
EventProcessingPolicy
public EventProcessingPolicy()
-
-
Method Details
-
addChain
Add chain to registry- Parameters:
chain- chain to add
-
putChain
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
- Returns:
- all chains readable by current user
-
getMainChain
- Returns:
- the main chain, or null if it is not readable by current user
-
findChain
Find chain by ID- Parameters:
chainId- chain ID- Returns:
- chain or null
-
findChain
Find chain by GUID- Parameters:
guid- chain GUID- Returns:
- chain or null
-
getLoadedRules
Get rules of all loaded chains (main chain first)- Returns:
- rules of all loaded chains
-