net.sf.xbus.technical.as400
Class AS400ProgramCaller
java.lang.Object
net.sf.xbus.technical.as400.AS400ProgramCaller
- All Implemented Interfaces:
- Callable
public class AS400ProgramCaller
- extends java.lang.Object
- implements Callable
Used by AS400ProgramSender.execute(String, Object)
together with
TimedCallable
to be able to stop
the execution of the program after a timeout.
Constructor Summary |
AS400ProgramCaller(com.ibm.as400.access.AS400 as400,
java.lang.String programName,
com.ibm.as400.access.ProgramParameter[] parameters,
com.ibm.as400.access.CharConverter converter)
|
Method Summary |
java.lang.Object |
call()
Calling the AS400 program. |
void |
stop()
Stopping the execution of the program by disconnecting from the AS400. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AS400ProgramCaller
public AS400ProgramCaller(com.ibm.as400.access.AS400 as400,
java.lang.String programName,
com.ibm.as400.access.ProgramParameter[] parameters,
com.ibm.as400.access.CharConverter converter)
call
public java.lang.Object call()
throws XException
- Calling the AS400 program.
- Specified by:
call
in interface Callable
- Throws:
XException
stop
public void stop()
- Stopping the execution of the program by disconnecting from the AS400.
- Specified by:
stop
in interface Callable