|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.emp.cci.eci.ECIInteraction
An object allowing execution of MTP programs.
The actual program execution is governed by the interaction specifications and the record supplied to this class.
Constructor Summary | |
ECIInteraction(ECIConnection connection)
Establish an interaction over a connection. |
Method Summary | |
void |
clearWarnings()
Clear the warnings for this object. |
void |
close()
Close the interaction. |
Record |
execute(InteractionSpec iSpec,
Record input)
Execute an MTP program. |
boolean |
execute(InteractionSpec iSpec,
Record input,
Record output)
Execute an MTP program. |
Connection |
getConnection()
Get the connection for this interaction. |
ResourceWarning |
getWarnings()
Get the warnings associated this this interaction. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ECIInteraction(ECIConnection connection)
connection
- The connection
NullPointerException
- if the connection is
null
.Method Detail |
public void close() throws ResourceException
close
in interface Interaction
ResourceException
public Connection getConnection()
getConnection
in interface Interaction
public boolean execute(InteractionSpec iSpec, Record input, Record output) throws ResourceException
The program execution is governed by the parameters to this method. The input record data is passed to the executing program, and the output record is populated with any returned data.
execute
in interface Interaction
iSpec
- The interaction specifiaction ( must be an instance of
ECIInteractionSpec
)input
- The input record. (Must be an instance of
Streamable
)output
- The output record. (Must be an instance of
Streamable
)
NullPointerException
- if any of the paramteres is
null
.
ECITransactionAbendException
- if the
transaction abends.
ResourceException
- if the parameters are not of
the correct type.
ResourceException
- if the input record has more
that 32500 bytes in it.
ResourceException
- if any RMI or IO exception
occurs whilst processing the request.
IllegalStateException
- if the interaction
has been closed.ECIInteractionSpec
,
Streamable
public Record execute(InteractionSpec iSpec, Record input) throws ResourceException
The program execution is governed by the parameter to this method. The input record data is passed to the executing program, and the output of the program is used to construct the returned output record.
execute
in interface Interaction
iSpec
- The interaction specifiaction ( must be an instance of
ECIInteractionSpec
)input
- The input record. (Must be an instance of
Streamable
)
GenericRecord
class.
NullPointerException
- if any of the paramteres is
null
.
ECITransactionAbendException
- if the
transaction abends.
ResourceException
- if the parameters are not of
the correct type.
ResourceException
- if the input record has more
that 32500 bytes in it.
ResourceException
- if any RMI or IO exception
occurs whilst processing the request.
IllegalStateException
- if the interaction
has been closed.ECIInteractionSpec
,
GenericRecord
,
Streamable
public ResourceWarning getWarnings() throws ResourceException
There are never any warnings associated with this class.
getWarnings
in interface Interaction
null
ResourceException
public void clearWarnings() throws ResourceException
Since there are never any warnings, this operation does nothing.
clearWarnings
in interface Interaction
ResourceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |