public interface PlatformContext
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(ClusterNode node)
Sends node info to native platform, if necessary.
|
PlatformCacheEntryFilter |
createCacheEntryFilter(Object filter,
long ptr)
Create cache entry filter.
|
PlatformCacheEntryProcessor |
createCacheEntryProcessor(Object proc,
long ptr)
Create cache entry processor.
|
PlatformJob |
createClosureJob(Object task,
long ptr,
Object job)
Create closure job.
|
PlatformClusterNodeFilter |
createClusterNodeFilter(Object filter)
Create cluster node filter.
|
PlatformContinuousQuery |
createContinuousQuery(long ptr,
boolean hasFilter,
@Nullable Object filter) |
PlatformContinuousQueryFilter |
createContinuousQueryFilter(Object filter)
Create continuous query filter to be deployed on remote node.
|
PlatformJob |
createJob(Object task,
long ptr,
@Nullable Object job)
Create job.
|
PlatformEventFilterListener |
createLocalEventFilter(long hnd)
Create local event filter.
|
PlatformNativeException |
createNativeException(Object cause)
Create native exception.
|
PlatformEventFilterListener |
createRemoteEventFilter(Object pred,
int... types)
Create remote event filter.
|
PlatformMessageFilter |
createRemoteMessageFilter(Object filter,
long ptr)
Create remote message filter.
|
PlatformStreamReceiver |
createStreamReceiver(Object rcv,
long ptr,
boolean keepBinary)
Create stream receiver.
|
void |
disableThreadLocalForPlatformCacheUpdate()
Disables thread-local optimization for platform cache update.
|
void |
enableThreadLocalForPlatformCacheUpdate()
Enables thread-local optimization for platform cache update.
|
PlatformCallbackGateway |
gateway()
Gets platform callback gateway.
|
boolean |
isEventTypeSupported(int evtTyp)
Check whether the given event type is supported.
|
boolean |
isPlatformCacheSupported()
Gets a value indicating whether current platform supports native cache.
|
GridKernalContext |
kernalContext()
Gets kernal context.
|
PlatformMemoryManager |
memory()
Gets platform memory manager.
|
String |
platform()
Gets the current platform name.
|
void |
processMetadata(BinaryRawReaderEx reader)
Process metadata from the platform.
|
BinaryRawReaderEx |
reader(PlatformInputStream in)
Get memory reader.
|
BinaryRawReaderEx |
reader(PlatformMemory mem)
Get memory reader.
|
void |
updatePlatformCache(int cacheId,
byte[] keyBytes,
byte[] valBytes,
int part,
AffinityTopologyVersion ver)
Updates the platform cache cache.
|
void |
writeAllMetadata(BinaryRawWriterEx writer)
Write all available metadata.
|
void |
writeClusterMetrics(BinaryRawWriterEx writer,
@Nullable ClusterMetrics metrics)
Write cluster metrics.
|
void |
writeEvent(BinaryRawWriterEx writer,
Event evt)
Write event.
|
void |
writeMetadata(BinaryRawWriterEx writer,
int typeId,
boolean includeSchemas)
Write metadata for the given type ID.
|
void |
writeNode(BinaryRawWriterEx writer,
ClusterNode node)
Writes a node id to a stream and sends node info to native platform, if necessary.
|
void |
writeNodes(BinaryRawWriterEx writer,
Collection<ClusterNode> nodes)
Writes multiple node ids to a stream and sends node info to native platform, if necessary.
|
BinaryRawWriterEx |
writer(PlatformMemory mem)
Get memory writer.
|
BinaryRawWriterEx |
writer(PlatformOutputStream out)
Get memory writer.
|
void |
writeSchema(BinaryRawWriterEx writer,
int typeId,
int schemaId)
Write schema for the given type ID and schema ID.
|
GridKernalContext kernalContext()
PlatformMemoryManager memory()
PlatformCallbackGateway gateway()
BinaryRawReaderEx reader(PlatformMemory mem)
mem - Memory.BinaryRawReaderEx reader(PlatformInputStream in)
in - Input.BinaryRawWriterEx writer(PlatformMemory mem)
mem - Memory.BinaryRawWriterEx writer(PlatformOutputStream out)
out - Output.void addNode(ClusterNode node)
node - Node.void writeNode(BinaryRawWriterEx writer, ClusterNode node)
writer - Writer.node - Node.void writeNodes(BinaryRawWriterEx writer, Collection<ClusterNode> nodes)
writer - Writer.nodes - Nodes.void processMetadata(BinaryRawReaderEx reader)
reader - Reader.void writeMetadata(BinaryRawWriterEx writer, int typeId, boolean includeSchemas)
writer - Writer.typeId - Type ID.includeSchemas - Whether to include binary object schemas into the result.void writeAllMetadata(BinaryRawWriterEx writer)
writer - Writer.void writeSchema(BinaryRawWriterEx writer, int typeId, int schemaId)
writer - Writer.typeId - Type ID.schemaId - Schema ID.void writeClusterMetrics(BinaryRawWriterEx writer, @Nullable @Nullable ClusterMetrics metrics)
writer - Writer.metrics - Metrics.PlatformContinuousQuery createContinuousQuery(long ptr, boolean hasFilter, @Nullable @Nullable Object filter)
ptr - Pointer to continuous query deployed on the platform.hasFilter - Whether filter exists.filter - Filter.PlatformContinuousQueryFilter createContinuousQueryFilter(Object filter)
filter - Native filter.PlatformMessageFilter createRemoteMessageFilter(Object filter, long ptr)
filter - Native filter.ptr - Pointer of deployed native filter.boolean isEventTypeSupported(int evtTyp)
evtTyp - Event type.True if supported.void writeEvent(BinaryRawWriterEx writer, Event evt)
writer - Writer.evt - Event.PlatformEventFilterListener createLocalEventFilter(long hnd)
hnd - Native handle.PlatformEventFilterListener createRemoteEventFilter(Object pred, int... types)
pred - Native predicate.types - Event types.PlatformNativeException createNativeException(Object cause)
cause - Native cause.PlatformJob createJob(Object task, long ptr, @Nullable @Nullable Object job)
task - Task.ptr - Pointer.job - Native job.PlatformJob createClosureJob(Object task, long ptr, Object job)
task - Native task.ptr - Pointer.job - Native job.PlatformCacheEntryProcessor createCacheEntryProcessor(Object proc, long ptr)
proc - Native processor.ptr - Pointer.PlatformCacheEntryFilter createCacheEntryFilter(Object filter, long ptr)
filter - Native filter.ptr - Pointer.PlatformStreamReceiver createStreamReceiver(Object rcv, long ptr, boolean keepBinary)
rcv - Native receiver.ptr - Pointer.keepBinary - Keep binary flag.PlatformClusterNodeFilter createClusterNodeFilter(Object filter)
filter - Native filter.String platform()
boolean isPlatformCacheSupported()
void updatePlatformCache(int cacheId,
byte[] keyBytes,
byte[] valBytes,
int part,
AffinityTopologyVersion ver)
cacheId - Cache id.keyBytes - Serialized key to update.valBytes - Serialized value.part - Key partition.ver - Key version.void enableThreadLocalForPlatformCacheUpdate()
void disableThreadLocalForPlatformCacheUpdate()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020