Class BusinessServiceCheck
java.lang.Object
org.netxms.client.businessservices.BusinessServiceCheck
- All Implemented Interfaces:
NodeItemPair
Business service check
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorBusinessServiceCheck(NXCPMessage msg, long baseId) Constructor to create check from messageCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill messagelonggetDciId()Get DCI idlonggetId()longGet node IDlonglongGet ID of business service check from business service prototype this check was created from.longGet ID of business service prototype this check was created from.longgetState()Get check state.intvoidsetCheckType(BusinessServiceCheckType checkType) voidsetDciId(long dciId) voidsetDescription(String description) voidsetId(long id) voidsetObjectId(long objectId) voidvoidsetThreshold(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:NodeItemPairGet DCI id- Specified by:
getDciIdin 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:NodeItemPairGet node ID- Specified by:
getNodeIdin interfaceNodeItemPair- Returns:
- node id
- See Also:
-
setId
public void setId(long id) - Parameters:
id- the id to set
-