public class PlatformProcessorImpl extends GridProcessorAdapter implements PlatformProcessor, PlatformTarget
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog| Constructor and Description |
|---|
PlatformProcessorImpl(GridKernalContext ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
awaitStart()
Await until platform processor is safe to use (i.e.
|
PlatformContext |
context()
Gets platform context.
|
Exception |
convertException(Exception e)
Convert caught exception.
|
long |
environmentPointer()
Get environment pointer associated with this processor.
|
Ignite |
ignite()
Gets owning Ignite instance.
|
void |
onDisconnected(IgniteFuture<?> reconnectFut)
Client disconnected callback.
|
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
IgniteInternalFuture<?> |
onReconnected(boolean clusterRestarted)
Client reconnected callback.
|
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.
|
void |
registerStore(PlatformCacheStore store,
boolean convertBinary)
Register cache store.
|
void |
releaseStart()
Notify processor that it is safe to use.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, printMemoryStats, toString, validateNode, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcollectGridNodeData, collectJoiningNodeData, discoveryDataType, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, printMemoryStats, validateNode, validateNodepublic PlatformProcessorImpl(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public Ignite ignite()
ignite in interface PlatformProcessorpublic long environmentPointer()
environmentPointer in interface PlatformProcessorpublic void releaseStart()
releaseStart in interface PlatformProcessorpublic void awaitStart()
throws IgniteCheckedException
has been called.awaitStart in interface PlatformProcessorIgniteCheckedException - If failed.public PlatformContext context()
context in interface PlatformProcessorpublic void registerStore(PlatformCacheStore store, boolean convertBinary) throws IgniteCheckedException
registerStore in interface PlatformProcessorstore - Store.convertBinary - Convert binary flag.IgniteCheckedException - If failed.public void onDisconnected(IgniteFuture<?> reconnectFut) throws IgniteCheckedException
onDisconnected in interface GridComponentonDisconnected in class GridProcessorAdapterreconnectFut - Reconnect future.IgniteCheckedException - If failed.public IgniteInternalFuture<?> onReconnected(boolean clusterRestarted) throws IgniteCheckedException
onReconnected in interface GridComponentonReconnected in class GridProcessorAdapterclusterRestarted - Cluster restarted flag.IgniteCheckedException - If failed.public long processInLongOutLong(int type,
long val)
throws IgniteCheckedException
processInLongOutLong in interface PlatformTargettype - Type.val - Value.IgniteCheckedException - In case of exception.public long processInStreamOutLong(int type,
BinaryRawReaderEx reader)
throws IgniteCheckedException
processInStreamOutLong in interface PlatformTargettype - Type.reader - Binary reader.IgniteCheckedException - In case of exception.public long processInStreamOutLong(int type,
BinaryRawReaderEx reader,
PlatformMemory mem)
throws IgniteCheckedException
processInStreamOutLong in interface PlatformTargettype - Type.reader - Binary reader.IgniteCheckedException - In case of exception.public void processInStreamOutStream(int type,
BinaryRawReaderEx reader,
BinaryRawWriterEx writer)
throws IgniteCheckedException
processInStreamOutStream in interface PlatformTargettype - Type.reader - Binary reader.writer - Binary writer.IgniteCheckedException - In case of exception.public PlatformTarget processInStreamOutObject(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamOutObject in interface PlatformTargettype - 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 PlatformTargettype - 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 PlatformTargettype - Type.writer - Binary writer.IgniteCheckedException - In case of exception.public PlatformTarget processOutObject(int type) throws IgniteCheckedException
processOutObject in interface PlatformTargettype - Type.IgniteCheckedException - In case of exception.public PlatformAsyncResult processInStreamAsync(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamAsync in interface PlatformTargettype - Type.reader - Binary reader.IgniteCheckedException - In case of exception.public Exception convertException(Exception e)
convertException in interface PlatformTargete - Exception to convert.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018