public class PlatformCompute extends PlatformAbstractTarget
Modifier and Type | Class and Description |
---|---|
protected class |
PlatformCompute.ComputeConvertingFuture
Wraps ComputeTaskFuture as IgniteInternalFuture.
|
ERROR, 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 Object |
executeJavaTask(BinaryRawReaderEx reader,
boolean async)
Execute task taking arguments from the given reader.
|
long |
processInLongOutLong(int type,
long val)
Process IN operation.
|
PlatformTarget |
processInStreamOutObject(int type,
BinaryRawReaderEx reader)
Process IN-OUT operation.
|
void |
processInStreamOutStream(int type,
BinaryRawReaderEx reader,
BinaryRawWriterEx writer)
Process IN-OUT operation.
|
protected Collection<UUID> |
readNodeIds(BinaryRawReaderEx reader)
Read node IDs.
|
convertException, platformContext, processInObjectStreamOutObjectStream, processInStreamAsync, processInStreamOutLong, processInStreamOutLong, processOutObject, processOutStream, readAndListenFuture, readAndListenFuture, readAndListenFuture, readAndListenFuture, wrapListenable
public PlatformCompute(PlatformContext platformCtx, ClusterGroup grp, String platformAttr)
platformCtx
- Context.grp
- Cluster group.public PlatformTarget processInStreamOutObject(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamOutObject
in interface PlatformTarget
processInStreamOutObject
in class PlatformAbstractTarget
type
- Type.reader
- Binary reader.IgniteCheckedException
- In case of exception.public long processInLongOutLong(int type, long val) throws IgniteCheckedException
processInLongOutLong
in interface PlatformTarget
processInLongOutLong
in class PlatformAbstractTarget
type
- Type.val
- Value.IgniteCheckedException
- In case of exception.public void processInStreamOutStream(int type, BinaryRawReaderEx reader, BinaryRawWriterEx writer) throws IgniteCheckedException
processInStreamOutStream
in interface PlatformTarget
processInStreamOutStream
in class PlatformAbstractTarget
type
- Type.reader
- Binary reader.writer
- Binary writer.IgniteCheckedException
- In case of exception.protected Object executeJavaTask(BinaryRawReaderEx reader, boolean async) throws IgniteCheckedException
reader
- Reader.async
- Execute asynchronously flag.IgniteCheckedException
- On error.protected Collection<UUID> readNodeIds(BinaryRawReaderEx reader)
reader
- Reader.protected IgniteCompute computeForTask(Collection<UUID> nodeIds)
nodeIds
- Node IDs.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017