Package org.netxms.client
Class AgentPolicy
java.lang.Object
org.netxms.client.AgentPolicy
Generic agent policy object
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAgentPolicy
(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 Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg) Fill NXCP message with polic data.int
getFlags()
getGuid()
getName()
void
setContent
(String content) void
setFlags
(int flags) void
void
toString()
void
update
(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_MACRO
public static final long EXPAND_MACRO- See Also:
-
-
Constructor Details
-
AgentPolicy
Create from NXCP message.- Parameters:
msg
- NXCP message
-
AgentPolicy
Create policy object from scratch.- Parameters:
name
- policy nametype
- policy type
-
AgentPolicy
Create from NXCP message.- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
AgentPolicy
Create 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
-
update
Update all fields from given policy object.- Parameters:
src
- source policy object
-
fillMessage
Fill 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
-
getFlags
public int getFlags()- Returns:
- the flags
-
setFlags
public void setFlags(int flags) - Parameters:
flags
- the flags to set
-
toString
-