Package org.netxms.client
Class AgentPolicy
java.lang.Object
org.netxms.client.AgentPolicy
Generic agent policy object
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionAgentPolicy(String name, String type) Create policy object from scratch.AgentPolicy(NXCPMessage msg) Create from NXCP message.AgentPolicy(NXCPMessage msg, long baseId) Create from NXCP message.AgentPolicy(AgentPolicy src) Create copy of given policy object.
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with polic data.intgetFlags()getGuid()getName()voidsetContent(String content) voidsetFlags(int flags) voidvoidtoString()voidupdate(AgentPolicy src) Update all fields from given policy object.
- 
Field Details- 
AGENT_CONFIG- See Also:
 
- 
FILE_DELIVERY- See Also:
 
- 
LOG_PARSER- See Also:
 
- 
SUPPORT_APPLICATION- See Also:
 
- 
EXPAND_MACROpublic static final long EXPAND_MACRO- See Also:
 
 
- 
- 
Constructor Details- 
AgentPolicyCreate from NXCP message.- Parameters:
- msg- NXCP message
 
- 
AgentPolicyCreate policy object from scratch.- Parameters:
- name- policy name
- type- policy type
 
- 
AgentPolicyCreate from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base field ID
 
- 
AgentPolicyCreate copy of given policy object. All fields except GUID will be copied, and GUID will be set to null.- Parameters:
- src- source policy object
 
 
- 
- 
Method Details- 
updateUpdate all fields from given policy object.- Parameters:
- src- source policy object
 
- 
fillMessageFill NXCP message with polic data.- Parameters:
- msg- NXCP message
 
- 
getPolicyType- Returns:
- the policyType
 
- 
getGuid- Returns:
- the guid
 
- 
getName- Returns:
- the name
 
- 
getContent- Returns:
- the content
 
- 
setName- Parameters:
- name- the name to set
 
- 
setContent- Parameters:
- content- the content to set
 
- 
setGuid- Parameters:
- newObjectGuid- the new object GUID to set
 
- 
getFlagspublic int getFlags()- Returns:
- the flags
 
- 
setFlagspublic void setFlags(int flags) - Parameters:
- flags- the flags to set
 
- 
toString
 
-