java.lang.Object
com.pervasive.datarush.cal.DistributedCommandBatch<T>
- Type Parameters:
T- the result type.
- All Implemented Interfaces:
DistributedCallableBatch<T>,ResultMerger<T>,Serializable
public abstract class DistributedCommandBatch<T>
extends Object
implements DistributedCallableBatch<T>
Convenient base class for
DistributedCallableBatch'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(DistributedCallableContextBatch).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.ResultMerger
merge
-
Constructor Details
-
DistributedCommandBatch
public DistributedCommandBatch()
-
-
Method Details
-
init
Implementation of init that returns a callable whosecallmethod invokesexecute(DistributedCallableContextBatch).- Specified by:
initin interfaceDistributedCallableBatch<T>- Parameters:
ctx- a remote context containing all of the contexts for thisphysicalNodeID.- Returns:
- the actual callable to invoke.
-
execute
Subclasses must override to provide an execution implementation- Parameters:
ctx- the context that was passed toinit(DistributedCallableContextBatch).- Returns:
- the result
- Throws:
Exception- if an exception occurred while processing
-