java.lang.Object
com.pervasive.datarush.cal.DistributedCommand<T>
- Type Parameters:
T- the result type.
- All Implemented Interfaces:
DistributedCallable<T>,Serializable
Convenient base class for
DistributedCallable's that do not support
monitoring/partial results.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TSubclasses must override to provide an execution implementationfinal MonitoredCallable<T>Implementation of init that returns a callable whosecallmethod invokesexecute(DistributedCallableContext).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pervasive.datarush.cal.DistributedCallable
merge
-
Constructor Details
-
DistributedCommand
public DistributedCommand()
-
-
Method Details
-
init
Implementation of init that returns a callable whosecallmethod invokesexecute(DistributedCallableContext).- Specified by:
initin interfaceDistributedCallable<T>- Parameters:
ctx- a remote context from which the callable can obtain its distributed identity, etc.- Returns:
- the actual callable to invoke.
-
execute
Subclasses must override to provide an execution implementation- Parameters:
ctx- the context that was passed toinit(DistributedCallableContext).- Returns:
- the result
- Throws:
Exception- if an exception occurred while processing
-