public class InvocationRequestPayload
extends java.lang.Object
implements java.io.Externalizable
The invocation targets can be any external program, procedure or function which can be found
in the user's propath; it is possible to also emulate a IN handle
clause when
targeting a procedure or function, by specifying the handle of an external program which was
previously executed in persistent mode.
Modifier and Type | Class and Description |
---|---|
static class |
InvocationRequestPayload.InvokeType
The invocation types.
|
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
arguments
A map with the arguments to be passed to the caller.
|
long |
handle
The handle ID.
|
java.lang.String |
name
The call target name; depending on the
type , this is a name of an external program,
procedure or function. |
boolean |
noError
Flag indicating if this call should set the NO-ERROR mode on.
|
boolean |
persistent
When invoking an
InvocationRequestPayload.InvokeType.EXTERNAL_PROGRAM , this flag will specify if the program
will be ran persistent or not. |
InvocationRequestPayload.InvokeType |
type
The call type.
|
Constructor and Description |
---|
InvocationRequestPayload()
Default constructor
|
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 boolean noError
public java.lang.String name
type
, this is a name of an external program,
procedure or function.public long handle
public InvocationRequestPayload.InvokeType type
InvocationRequestPayload.InvokeType
for the supported types.public java.util.Map<java.lang.String,java.lang.String> arguments
name_map.xml
file, and the values
hold the string-representation of the argument's value. At invocation, the values will be
converted to a value with the type specific to that argument.public boolean persistent
InvocationRequestPayload.InvokeType.EXTERNAL_PROGRAM
, this flag will specify if the program
will be ran persistent or not.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.