it.jnrpe
Class ReturnValue
java.lang.Object
it.jnrpe.ReturnValue
public class ReturnValue
- extends Object
This class is just a container for the plugin result
- Author:
- Massimiliano Ziccardi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReturnValue
public ReturnValue()
ReturnValue
public ReturnValue(String sMessage)
ReturnValue
public ReturnValue(int iReturnCode,
String sMessage)
withReturnCode
public ReturnValue withReturnCode(int iReturnCode)
- Sets the return code and returns 'this' so that
the calls can be cascaded
- Parameters:
iReturnCode -
- Returns:
withMessage
public ReturnValue withMessage(String sMessage)
- Sets the message and returns 'this' so that
the calls can be cascaded
- Parameters:
sMessage -
- Returns:
getReturnCode
public int getReturnCode()
getMessage
public String getMessage()
Copyright © 2012. All Rights Reserved.