- 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 forDistributedCallableBatch
's that do not support monitoring/partial results.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DistributedCommandBatch()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
execute(DistributedCallableContextBatch ctx)
Subclasses must override to provide an execution implementationMonitoredCallable<T>
init(DistributedCallableContextBatch ctx)
Implementation of init that returns a callable whosecall
method invokesexecute(DistributedCallableContextBatch)
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.pervasive.datarush.cal.ResultMerger
merge
-
-
-
-
Method Detail
-
init
public final MonitoredCallable<T> init(DistributedCallableContextBatch ctx)
Implementation of init that returns a callable whosecall
method invokesexecute(DistributedCallableContextBatch)
.- Specified by:
init
in interfaceDistributedCallableBatch<T>
- Parameters:
ctx
- a remote context containing all of the contexts for thisphysicalNodeID
.- Returns:
- the actual callable to invoke.
-
execute
protected abstract T execute(DistributedCallableContextBatch ctx) throws Exception
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
-
-