Class BusinessServiceCheck
java.lang.Object
org.netxms.client.businessservices.BusinessServiceCheck
- All Implemented Interfaces:
NodeItemPair
Business service check
-
Constructor Summary
ConstructorDescriptionDefault constructorBusinessServiceCheck
(NXCPMessage msg, long baseId) Constructor to create check from messageCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg) Fill messagelong
getDciId()
Get DCI idlong
getId()
long
Get node IDlong
long
Get ID of business service check from business service prototype this check was created from.long
Get ID of business service prototype this check was created from.long
getState()
Get check state.int
void
setCheckType
(BusinessServiceCheckType checkType) void
setDciId
(long dciId) void
setDescription
(String description) void
setId
(long id) void
setObjectId
(long objectId) void
void
setThreshold
(int threshold)
-
Constructor Details
-
BusinessServiceCheck
public BusinessServiceCheck()Default constructor -
BusinessServiceCheck
Copy constructor- Parameters:
src
- check to copy
-
BusinessServiceCheck
Constructor to create check from message- Parameters:
msg
- NXCPmessage from server with databaseId
- base field ID for check
-
-
Method Details
-
fillMessage
Fill message- Parameters:
msg
- NXCPMessage to fill data
-
getCheckType
- Returns:
- the checkType
-
getScript
- Returns:
- the script
-
getThreshold
public int getThreshold()- Returns:
- the threshold
-
getFailureReason
- Returns:
- the failureReason
-
getId
public long getId()- Returns:
- the id
-
getServiceId
public long getServiceId()- Returns:
- the serviceId
-
getPrototypeServiceId
public long getPrototypeServiceId()Get ID of business service prototype this check was created from. Will be equal to owning service ID if check was created by instance discovery.- Returns:
- ID of business service prototype or 0
-
getPrototypeCheckId
public long getPrototypeCheckId()Get ID of business service check from business service prototype this check was created from.- Returns:
- ID of business service check from business service prototype or 0
-
getDescription
- Returns:
- the description
-
getObjectId
public long getObjectId()- Returns:
- the objectId
-
getDciId
public long getDciId()Description copied from interface:NodeItemPair
Get DCI id- Specified by:
getDciId
in interfaceNodeItemPair
- Returns:
- the dciId
-
getState
Get check state.- Returns:
- check state
-
setCheckType
- Parameters:
checkType
- the checkType to set
-
setDescription
- Parameters:
description
- the description to set
-
setScript
- Parameters:
script
- the script to set
-
setObjectId
public void setObjectId(long objectId) - Parameters:
objectId
- the objectId to set
-
setDciId
public void setDciId(long dciId) - Parameters:
dciId
- the dciId to set
-
setThreshold
public void setThreshold(int threshold) - Parameters:
threshold
- the threshold to set
-
getNodeId
public long getNodeId()Description copied from interface:NodeItemPair
Get node ID- Specified by:
getNodeId
in interfaceNodeItemPair
- Returns:
- node id
- See Also:
-
setId
public void setId(long id) - Parameters:
id
- the id to set
-