net.sf.xbus.technical.misc
Class ProgramCaller

java.lang.Object
  extended by net.sf.xbus.technical.misc.ProgramCaller
All Implemented Interfaces:
Callable

public class ProgramCaller
extends java.lang.Object
implements Callable

Used by ProgramSender.execute(String, String)together with the TimedCallableto be able to stop the execution of the program after a timeout.


Constructor Summary
ProgramCaller(XBUSSystem destination, java.lang.String callData)
          Stores the destination.
 
Method Summary
 java.lang.Object call()
          Calls an external program.
 void stop()
          Stopping the execution of the program by destroying the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramCaller

public ProgramCaller(XBUSSystem destination,
                     java.lang.String callData)
Stores the destination.

Parameters:
destination - name of the interface definition
callData - ignored
Method Detail

call

public java.lang.Object call()
                      throws XException
Calls an external program. Program name and parameters are read out of the configuration.

Specified by:
call in interface Callable
Throws:
XException

stop

public void stop()
Stopping the execution of the program by destroying the program.

Specified by:
stop in interface Callable