public class InvocationResponsePayload
extends java.lang.Object
implements java.io.Externalizable
The response contains details for the handle ID (in case of an external program ran persistent), values for OUTPUT/INPUTPUT arguments, function (or procedure)'s return value, state of any ERROR, QUIT or STOP conditions.
Modifier and Type | Field and Description |
---|---|
boolean |
error
Flag indicating if the request ended with an ERROR condition.
|
java.lang.String |
errorMessage
If
error flag is true , this represents the error message. |
int |
errorNumber
If
error flag is true , this represents the error number. |
long |
handle
When running an external program in persistent mode, this is the handle ID associated with
the resource of that external program.
|
java.util.Map<java.lang.String,java.lang.String> |
outputArguments
This map holds the string-representation of all OUTPUT or INPUT-OUTPUT arguments, as resulted
after the request was performed.
|
boolean |
quit
Flag indicating if the request ended with a QUIT condition.
|
java.lang.String |
returnValue
In case of functions, this will hold the value returned by the function.
|
boolean |
stop
Flag indicating if the request ended with a STOP condition.
|
Constructor and Description |
---|
InvocationResponsePayload() |
Modifier and Type | Method and Description |
---|---|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
public long handle
public java.util.Map<java.lang.String,java.lang.String> outputArguments
public java.lang.String returnValue
public boolean error
public int errorNumber
error
flag is true
, this represents the error number.public java.lang.String errorMessage
error
flag is true
, this represents the error message.public boolean quit
public boolean stop
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which the fields will be saved.java.io.IOException
- In case of I/O errors.