Class ServiceStatus

java.lang.Object
oracle.tip.pc.services.common.ServiceStatus
All Implemented Interfaces:
Serializable

public class ServiceStatus extends Object implements Serializable
See Also:
  • Constructor Details

    • ServiceStatus

      public ServiceStatus()
      Default constactor
    • ServiceStatus

      public ServiceStatus(boolean running, String statusMessage, int errorCode, String errorMessage)
      ServiceStatus constactor
      Parameters:
      running - a boolean flag, it's true if service running
      statusMessage - a status message
      errorCode - an error code
      errorMessage - an error message
    • ServiceStatus

      public ServiceStatus(Element element) throws ServiceException
      ServiceStatus constactor
      Parameters:
      elementi - an Element
      Throws:
      ServiceException
  • Method Details

    • isRunning

      public boolean isRunning()
      Checks status flag which indicates whether service is running or not
      Returns:
      true if Service is avalible
    • setRunning

      public void setRunning(boolean running)
      Sets ServiceStatus flag which indicates whether service is running or not
      Parameters:
      running - a flag. It is true if Service is running, else false
    • getStatusMessage

      public String getStatusMessage()
      Gets status message
      Returns:
      status message
    • setStatusMessage

      public void setStatusMessage(String statusMessage)
      Sets status message
      Parameters:
      statusMessage - a status message
    • getErrorCode

      public int getErrorCode()
      Gets error code
      Returns:
      error code
    • setErrorCode

      public void setErrorCode(int errorCode)
      Sets error code
      Parameters:
      errorCode - an error code
    • getErrorMessage

      public String getErrorMessage()
      Gets error message
      Returns:
      error message
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Sets error message
      Parameters:
      errorMessage - an error message
    • toNode

      public Element toNode(String namespace)