Class BusinessServiceCheck
java.lang.Object
org.netxms.client.businessservices.BusinessServiceCheck
- All Implemented Interfaces:
- NodeItemPair
Business service check
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructorBusinessServiceCheck(NXCPMessage msg, long baseId) Constructor to create check from messageCopy constructor
- 
Method SummaryModifier 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- 
BusinessServiceCheckpublic BusinessServiceCheck()Default constructor
- 
BusinessServiceCheckCopy constructor- Parameters:
- src- check to copy
 
- 
BusinessServiceCheckConstructor to create check from message- Parameters:
- msg- NXCPmessage from server with data
- baseId- base field ID for check
 
 
- 
- 
Method Details- 
fillMessageFill message- Parameters:
- msg- NXCPMessage to fill data
 
- 
getCheckType- Returns:
- the checkType
 
- 
getScript- Returns:
- the script
 
- 
getThresholdpublic int getThreshold()- Returns:
- the threshold
 
- 
getFailureReason- Returns:
- the failureReason
 
- 
getIdpublic long getId()- Returns:
- the id
 
- 
getServiceIdpublic long getServiceId()- Returns:
- the serviceId
 
- 
getPrototypeServiceIdpublic 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
 
- 
getPrototypeCheckIdpublic 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
 
- 
getObjectIdpublic long getObjectId()- Returns:
- the objectId
 
- 
getDciIdpublic long getDciId()Description copied from interface:NodeItemPairGet DCI id- Specified by:
- getDciIdin interface- NodeItemPair
- Returns:
- the dciId
 
- 
getStateGet 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
 
- 
setObjectIdpublic void setObjectId(long objectId) - Parameters:
- objectId- the objectId to set
 
- 
setDciIdpublic void setDciId(long dciId) - Parameters:
- dciId- the dciId to set
 
- 
setThresholdpublic void setThreshold(int threshold) - Parameters:
- threshold- the threshold to set
 
- 
getNodeIdpublic long getNodeId()Description copied from interface:NodeItemPairGet node ID- Specified by:
- getNodeIdin interface- NodeItemPair
- Returns:
- node id
- See Also:
 
- 
setIdpublic void setId(long id) - Parameters:
- id- the id to set
 
 
-