public class PlatformCompute extends PlatformAbstractTarget
| Modifier and Type | Field and Description |
|---|---|
protected ThreadLocal<IgniteFuture<?>> |
curFut
Future for previous asynchronous operation.
|
FALSE, log, platformCtx, TRUE| Constructor and Description |
|---|
PlatformCompute(PlatformContext platformCtx,
IgniteComputeImpl compute)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected IgniteCompute |
computeForTask(Collection<UUID> nodeIds)
Get compute object for the given node IDs.
|
protected IgniteFuture |
currentFuture()
|
protected Object |
executeJavaTask(BinaryRawReaderEx reader,
boolean async)
Execute task taking arguments from the given reader.
|
void |
executeNative(long taskPtr,
long topVer)
Execute native full-fledged task.
|
protected long |
processInStreamOutLong(int type,
BinaryRawReaderEx reader)
Process IN operation.
|
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, currentFutureWrapped, futureWriter, inObjectStreamOutStream, inStreamOutLong, inStreamOutObject, inStreamOutStream, listenFuture, listenFutureForOperation, outLong, outObject, outStream, platformContext, processInObjectStreamOutStream, processInStreamOutObject, processOutLong, processOutObject, processOutStream, throwUnsupportedprotected ThreadLocal<IgniteFuture<?>> curFut
public PlatformCompute(PlatformContext platformCtx, IgniteComputeImpl compute)
platformCtx - Context.compute - Compute instance.protected long processInStreamOutLong(int type,
BinaryRawReaderEx reader)
throws IgniteCheckedException
processInStreamOutLong in class PlatformAbstractTargettype - Type.reader - Portable reader.IgniteCheckedException - In case of exception.protected void processInStreamOutStream(int type,
BinaryRawReaderEx reader,
BinaryRawWriterEx writer)
throws IgniteCheckedException
processInStreamOutStream in class PlatformAbstractTargettype - Type.reader - Portable reader.writer - Portable writer.IgniteCheckedException - In case of exception.public void 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 IgniteFuture 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.5.0-b1 Release Date : December 1 2015