com.sun.faban.harness
Interface RemoteCallable<V extends Serializable>
- All Superinterfaces:
- Serializable
public interface RemoteCallable<V extends Serializable>
- extends Serializable
An interface used for executing a piece of code remotely.
Notes:
- The class that implements this interface needs to be cautious about
platform path differences. A path passed to this class to executed on a
remote system with different OS styles, especially a Windows master and
Unix agents, will need to be converted. This can be done by calling
Utilities.convertPath from inside the implementation of the call method.
The path conversion should be called no matter the actual platform. The
path conversion call does nothing if no conversion is needed.
- The only RunContext methods available to the code block are the local
exec and java calls. All other calls to RunContext will result in a
NullPointerException.
- See Also:
Utilities.convertPath(java.lang.String)
Method Summary |
V |
call()
Computes a result, or throws an exception if unable to do so. |
call
V call()
throws Exception
- Computes a result, or throws an exception if unable to do so.
Note that The only RunContext methods available to the call
implementation are the local exec and java calls. All other
calls to RunContext will result in a NullPointerException.
- Returns:
- computed result
- Throws:
Exception
- if unable to compute a result