Class BusinessServiceCheck

java.lang.Object
org.netxms.client.businessservices.BusinessServiceCheck
All Implemented Interfaces:
NodeItemPair

public class BusinessServiceCheck extends Object implements NodeItemPair
Business service check
  • Constructor Details

    • BusinessServiceCheck

      public BusinessServiceCheck()
      Default constructor
    • BusinessServiceCheck

      public BusinessServiceCheck(BusinessServiceCheck src)
      Copy constructor
      Parameters:
      src - check to copy
    • BusinessServiceCheck

      public BusinessServiceCheck(NXCPMessage msg, long baseId)
      Constructor to create check from message
      Parameters:
      msg - NXCPmessage from server with data
      baseId - base field ID for check
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg)
      Fill message
      Parameters:
      msg - NXCPMessage to fill data
    • getCheckType

      public BusinessServiceCheckType getCheckType()
      Returns:
      the checkType
    • getScript

      public String getScript()
      Returns:
      the script
    • getThreshold

      public int getThreshold()
      Returns:
      the threshold
    • getFailureReason

      public String 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

      public String 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 interface NodeItemPair
      Returns:
      the dciId
    • getState

      public BusinessServiceState getState()
      Get check state.
      Returns:
      check state
    • setCheckType

      public void setCheckType(BusinessServiceCheckType checkType)
      Parameters:
      checkType - the checkType to set
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • setScript

      public void setScript(String script)
      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 interface NodeItemPair
      Returns:
      node id
      See Also:
    • setId

      public void setId(long id)
      Parameters:
      id - the id to set