Package oracle.tip.pc.services.common
Class ServiceStatus
java.lang.Object
oracle.tip.pc.services.common.ServiceStatus
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constactorServiceStatus(boolean running, String statusMessage, int errorCode, String errorMessage) ServiceStatus constactorServiceStatus(Element element) ServiceStatus constactor -
Method Summary
Modifier and TypeMethodDescriptionintGets error codeGets error messageGets status messagebooleanChecks status flag which indicates whether service is running or notvoidsetErrorCode(int errorCode) Sets error codevoidsetErrorMessage(String errorMessage) Sets error messagevoidsetRunning(boolean running) Sets ServiceStatus flag which indicates whether service is running or notvoidsetStatusMessage(String statusMessage) Sets status message
-
Constructor Details
-
ServiceStatus
public ServiceStatus()Default constactor -
ServiceStatus
ServiceStatus constactor- Parameters:
running- a boolean flag, it's true if service runningstatusMessage- a status messageerrorCode- an error codeerrorMessage- an error message
-
ServiceStatus
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
Gets status message- Returns:
- status message
-
setStatusMessage
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
Gets error message- Returns:
- error message
-
setErrorMessage
Sets error message- Parameters:
errorMessage- an error message
-
toNode
-