public abstract class PlatformAbstractTarget extends Object implements PlatformTarget
Modifier and Type | Field and Description |
---|---|
protected static int |
ERROR
Constant: ERROR.
|
protected static int |
FALSE
Constant: FALSE.
|
protected IgniteLogger |
log
Logger.
|
protected PlatformContext |
platformCtx
Context.
|
protected static int |
TRUE
Constant: TRUE.
|
Modifier | Constructor and Description |
---|---|
protected |
PlatformAbstractTarget(PlatformContext platformCtx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Exception |
convertException(Exception e)
Convert caught exception.
|
PlatformContext |
platformContext() |
long |
processInLongOutLong(int type,
long val)
Process IN operation.
|
PlatformTarget |
processInObjectStreamOutObjectStream(int type,
PlatformTarget arg,
BinaryRawReaderEx reader,
BinaryRawWriterEx writer)
Process IN-OUT operation.
|
PlatformAsyncResult |
processInStreamAsync(int type,
BinaryRawReaderEx reader)
Process asynchronous operation.
|
long |
processInStreamOutLong(int type,
BinaryRawReaderEx reader)
Process IN operation.
|
long |
processInStreamOutLong(int type,
BinaryRawReaderEx reader,
PlatformMemory mem)
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.
|
PlatformTarget |
processOutObject(int type)
Process OUT operation.
|
void |
processOutStream(int type,
BinaryRawWriterEx writer)
Process OUT operation.
|
protected PlatformListenable |
readAndListenFuture(BinaryRawReader reader,
IgniteFuture fut)
Reads future information and listens.
|
protected PlatformListenable |
readAndListenFuture(BinaryRawReader reader,
IgniteFuture fut,
PlatformFutureUtils.Writer writer)
Reads future information and listens.
|
protected PlatformListenable |
readAndListenFuture(BinaryRawReader reader,
IgniteInternalFuture fut)
Reads future information and listens.
|
protected PlatformListenable |
readAndListenFuture(BinaryRawReader reader,
IgniteInternalFuture fut,
PlatformFutureUtils.Writer writer)
Reads future information and listens.
|
protected PlatformTarget |
wrapListenable(PlatformListenable listenable)
Wraps a listenable to be returned to platform.
|
protected static final int TRUE
protected static final int FALSE
protected static final int ERROR
protected final PlatformContext platformCtx
protected final IgniteLogger log
protected PlatformAbstractTarget(PlatformContext platformCtx)
platformCtx
- Context.public PlatformContext platformContext()
public Exception convertException(Exception e)
convertException
in interface PlatformTarget
e
- Exception to convert.public long processInLongOutLong(int type, long val) throws IgniteCheckedException
processInLongOutLong
in interface PlatformTarget
type
- Type.val
- Value.IgniteCheckedException
- In case of exception.public long processInStreamOutLong(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamOutLong
in interface PlatformTarget
type
- Type.reader
- Binary reader.IgniteCheckedException
- In case of exception.public long processInStreamOutLong(int type, BinaryRawReaderEx reader, PlatformMemory mem) throws IgniteCheckedException
processInStreamOutLong
in interface PlatformTarget
type
- Type.reader
- Binary reader.IgniteCheckedException
- In case of exception.public void processInStreamOutStream(int type, BinaryRawReaderEx reader, BinaryRawWriterEx writer) throws IgniteCheckedException
processInStreamOutStream
in interface PlatformTarget
type
- Type.reader
- Binary reader.writer
- Binary writer.IgniteCheckedException
- In case of exception.public PlatformTarget processInStreamOutObject(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamOutObject
in interface PlatformTarget
type
- Type.reader
- Binary reader.IgniteCheckedException
- In case of exception.public PlatformTarget processInObjectStreamOutObjectStream(int type, @Nullable PlatformTarget arg, BinaryRawReaderEx reader, BinaryRawWriterEx writer) throws IgniteCheckedException
processInObjectStreamOutObjectStream
in interface PlatformTarget
type
- Type.arg
- Argument.reader
- Binary reader.writer
- Binary writer.IgniteCheckedException
- In case of exception.public void processOutStream(int type, BinaryRawWriterEx writer) throws IgniteCheckedException
processOutStream
in interface PlatformTarget
type
- Type.writer
- Binary writer.IgniteCheckedException
- In case of exception.public PlatformTarget processOutObject(int type) throws IgniteCheckedException
processOutObject
in interface PlatformTarget
type
- Type.IgniteCheckedException
- In case of exception.public PlatformAsyncResult processInStreamAsync(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamAsync
in interface PlatformTarget
type
- Type.reader
- Binary reader.IgniteCheckedException
- In case of exception.protected PlatformListenable readAndListenFuture(BinaryRawReader reader, IgniteInternalFuture fut, PlatformFutureUtils.Writer writer) throws IgniteCheckedException
reader
- Reader.fut
- Future.writer
- Writer.IgniteCheckedException
- In case of error.protected PlatformListenable readAndListenFuture(BinaryRawReader reader, IgniteFuture fut, PlatformFutureUtils.Writer writer) throws IgniteCheckedException
reader
- Reader.fut
- Future.writer
- Writer.IgniteCheckedException
- In case of error.protected PlatformListenable readAndListenFuture(BinaryRawReader reader, IgniteInternalFuture fut) throws IgniteCheckedException
reader
- Reader.fut
- Future.IgniteCheckedException
- In case of error.protected PlatformListenable readAndListenFuture(BinaryRawReader reader, IgniteFuture fut) throws IgniteCheckedException
reader
- Reader.fut
- Future.IgniteCheckedException
- In case of error.protected PlatformTarget wrapListenable(PlatformListenable listenable)
listenable
- Listenable.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017