Class GridClientResponse
- java.lang.Object
-
- org.apache.ignite.internal.processors.rest.client.message.GridClientAbstractMessage
-
- org.apache.ignite.internal.processors.rest.client.message.GridClientResponse
-
- All Implemented Interfaces:
Externalizable,Serializable,GridClientMessage
public class GridClientResponse extends GridClientAbstractMessage
Bean representing client operation result.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATUS_AUTH_FAILUREAuthentication failure.static intSTATUS_FAILEDCommand failed.static intSTATUS_ILLEGAL_ARGUMENTstatic intSTATUS_SECURITY_CHECK_FAILEDOperation security failure.static intSTATUS_SUCCESSCommand succeeded.
-
Constructor Summary
Constructors Constructor Description GridClientResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringerrorMessage()voiderrorMessage(String errorMsg)voidreadExternal(ObjectInput in)Objectresult()voidresult(Object res)intsuccessStatus()voidsuccessStatus(int successStatus)StringtoString()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.apache.ignite.internal.processors.rest.client.message.GridClientAbstractMessage
clientId, clientId, destinationId, destinationId, requestId, requestId, sessionToken, sessionToken
-
-
-
-
Field Detail
-
STATUS_SUCCESS
public static final int STATUS_SUCCESS
Command succeeded.- See Also:
- Constant Field Values
-
STATUS_FAILED
public static final int STATUS_FAILED
Command failed.- See Also:
- Constant Field Values
-
STATUS_AUTH_FAILURE
public static final int STATUS_AUTH_FAILURE
Authentication failure.- See Also:
- Constant Field Values
-
STATUS_SECURITY_CHECK_FAILED
public static final int STATUS_SECURITY_CHECK_FAILED
Operation security failure.- See Also:
- Constant Field Values
-
STATUS_ILLEGAL_ARGUMENT
public static final int STATUS_ILLEGAL_ARGUMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
successStatus
public int successStatus()
- Returns:
Trueif this request was successful.
-
successStatus
public void successStatus(int successStatus)
- Parameters:
successStatus- Whether request was successful.
-
errorMessage
public String errorMessage()
- Returns:
- Error message, if any error occurred, or
null.
-
errorMessage
public void errorMessage(String errorMsg)
- Parameters:
errorMsg- Error message, if any error occurred.
-
result
public Object result()
- Returns:
- Request result.
-
result
public void result(Object res)
- Parameters:
res- Request result.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classGridClientAbstractMessage- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classGridClientAbstractMessage- Throws:
IOExceptionClassNotFoundException
-
toString
public String toString()
- Overrides:
toStringin classGridClientAbstractMessage
-
-