public class PlatformCompute extends PlatformAbstractTarget
| Modifier and Type | Class and Description |
|---|---|
protected class |
PlatformCompute.ComputeConvertingFuture
Wraps ComputeTaskFuture as IgniteInternalFuture.
|
| Modifier and Type | Field and Description |
|---|---|
protected ThreadLocal<IgniteInternalFuture> |
curFut
Future for previous asynchronous operation.
|
FALSE, log, platformCtx, TRUE| Constructor and Description |
|---|
PlatformCompute(PlatformContext platformCtx,
ClusterGroup grp,
String platformAttr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected IgniteCompute |
computeForTask(Collection<UUID> nodeIds)
Get compute object for the given node IDs.
|
protected IgniteInternalFuture |
currentFuture()
|
protected Object |
executeJavaTask(BinaryRawReaderEx reader,
boolean async)
Execute task taking arguments from the given reader.
|
PlatformListenable |
executeNative(long taskPtr,
long topVer)
Execute native full-fledged task.
|
protected Object |
processInStreamOutObject(int type,
BinaryRawReaderEx reader)
Process IN operation with managed object as result.
|
protected void |
processInStreamOutStream(int type,
BinaryRawReaderEx reader,
BinaryRawWriterEx writer)
Process IN-OUT operation.
|
protected Collection<UUID> |
readNodeIds(BinaryRawReaderEx reader)
Read node IDs.
|
void |
withNoFailover()
Set "withNoFailover" state.
|
void |
withTimeout(long timeout)
Set "withTimeout" state.
|
convertException, futureWriter, inObjectStreamOutStream, inStreamOutLong, inStreamOutObject, inStreamOutStream, listenFuture, listenFutureAndGet, listenFutureForOperation, listenFutureForOperationAndGet, outLong, outObject, outStream, platformContext, processInObjectStreamOutStream, processInStreamOutLong, processOutLong, processOutObject, processOutStream, throwUnsupportedprotected ThreadLocal<IgniteInternalFuture> curFut
public PlatformCompute(PlatformContext platformCtx, ClusterGroup grp, String platformAttr)
platformCtx - Context.grp - Cluster group.protected Object processInStreamOutObject(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamOutObject in class PlatformAbstractTargettype - Type.reader - Binary reader.IgniteCheckedException - In case of exception.protected void processInStreamOutStream(int type,
BinaryRawReaderEx reader,
BinaryRawWriterEx writer)
throws IgniteCheckedException
processInStreamOutStream in class PlatformAbstractTargettype - Type.reader - Binary reader.writer - Binary writer.IgniteCheckedException - In case of exception.public PlatformListenable executeNative(long taskPtr, long topVer)
taskPtr - Pointer to the task.topVer - Topology version.public void withTimeout(long timeout)
timeout - Timeout (milliseconds).public void withNoFailover()
protected IgniteInternalFuture currentFuture() throws IgniteCheckedException
currentFuture in class PlatformAbstractTargetIgniteCheckedExceptionprotected Object executeJavaTask(BinaryRawReaderEx reader, boolean async)
reader - Reader.protected Collection<UUID> readNodeIds(BinaryRawReaderEx reader)
reader - Reader.protected IgniteCompute computeForTask(Collection<UUID> nodeIds)
nodeIds - Node IDs.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016