public class PlatformCallbackGateway extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
envPtr
Environment pointer.
|
| Constructor and Description |
|---|
PlatformCallbackGateway(long envPtr)
Native gateway.
|
| Modifier and Type | Method and Description |
|---|---|
void |
affinityFunctionAssignPartitions(long memPtr)
Assigns the affinity partitions.
|
void |
affinityFunctionDestroy(long ptr)
Destroys the affinity function.
|
long |
affinityFunctionInit(long memPtr,
PlatformTargetProxy baseFunc)
Initializes affinity function.
|
int |
affinityFunctionPartition(long memPtr)
Gets the partition from affinity function.
|
void |
affinityFunctionRemoveNode(long memPtr)
Removes the node from affinity function.
|
protected void |
block()
Block gateway.
|
int |
cacheEntryFilterApply(long memPtr) |
long |
cacheEntryFilterCreate(long memPtr)
Creates cache entry filter and returns a pointer.
|
void |
cacheEntryFilterDestroy(long ptr) |
void |
cacheInvoke(long memPtr)
Invoke cache entry processor.
|
long |
cacheStoreCreate(long memPtr)
Create cache store.
|
void |
cacheStoreDestroy(long objPtr) |
int |
cacheStoreInvoke(long memPtr) |
long |
cacheStoreSessionCreate()
Creates cache store session.
|
int |
clusterNodeFilterApply(long memPtr)
Invokes cluster node filter.
|
void |
computeJobCancel(long jobPtr)
Cancel the job.
|
long |
computeJobCreate(long memPtr)
Create job in native platform.
|
void |
computeJobDestroy(long ptr)
Destroy the job.
|
void |
computeJobExecute(long memPtr)
Execute native job on a node other than where it was created.
|
void |
computeJobExecuteLocal(long jobPtr,
long cancel)
Execute native job on a node other than where it was created.
|
int |
computeJobSerialize(long jobPtr,
long memPtr)
Serialize native job.
|
void |
computeTaskComplete(long taskPtr,
long memPtr)
Complete task with native error.
|
int |
computeTaskJobResult(long memPtr)
Perform native task job result notification.
|
int |
computeTaskLocalJobResult(long taskPtr,
long jobPtr)
Perform native task job result notification.
|
void |
computeTaskMap(long memPtr)
Perform native task map.
|
void |
computeTaskReduce(long taskPtr)
Perform native task reduce.
|
static void |
consoleWrite(String str,
boolean isErr)
Redirects the console output to platform.
|
long |
continuousQueryFilterApply(long memPtr)
Invoke remote filter.
|
long |
continuousQueryFilterCreate(long memPtr)
Create filter in native platform.
|
void |
continuousQueryFilterRelease(long filterPtr)
Release remote filter.
|
void |
continuousQueryListenerApply(long memPtr)
Invoke local callback.
|
void |
dataStreamerStreamReceiverInvoke(long ptr,
PlatformTargetProxy cache,
long memPtr,
boolean keepBinary)
Invoke stream receiver.
|
void |
dataStreamerTopologyUpdate(long ptr,
long topVer,
int topSize)
Notify native data streamer about topology update.
|
protected void |
enter()
Enter gateway.
|
long |
environmentPointer()
Get environment pointer.
|
int |
eventFilterApply(long ptr,
long memPtr) |
long |
eventFilterCreate(long memPtr)
Creates event filter and returns a pointer.
|
void |
eventFilterDestroy(long ptr) |
long |
extensionCallbackInLongLongOutLong(int typ,
long arg1,
long arg2)
Extension callback accepting two long arguments and returning long result.
|
long |
extensionCallbackInLongOutLong(int typ,
long arg1)
Extension callback accepting single long argument and returning long result.
|
void |
futureBoolResult(long futPtr,
long res)
Notify future with boolean result.
|
void |
futureByteResult(long futPtr,
long res)
Notify future with byte result.
|
void |
futureCharResult(long futPtr,
long res)
Notify future with byte result.
|
void |
futureDoubleResult(long futPtr,
long res)
Notify future with double result.
|
void |
futureError(long futPtr,
long memPtr)
Notify future with error.
|
void |
futureFloatResult(long futPtr,
long res)
Notify future with float result.
|
void |
futureIntResult(long futPtr,
long res)
Notify future with int result.
|
void |
futureLongResult(long futPtr,
long res)
Notify future with long result.
|
void |
futureNullResult(long futPtr)
Notify future with null result.
|
void |
futureObjectResult(long futPtr,
long memPtr)
Notify future with object result.
|
void |
futureShortResult(long futPtr,
long res)
Notify future with short result.
|
protected void |
leave()
Leave gateway.
|
void |
lifecycleEvent(long ptr,
int evt)
Lifecycle event callback.
|
boolean |
loggerIsLevelEnabled(int level)
Gets a value indicating whether native logger has specified level enabled.
|
void |
loggerLog(int level,
String message,
String category,
String errorInfo,
long memPtr)
Logs to the platform.
|
void |
memoryReallocate(long memPtr,
int cap)
Re-allocate external memory chunk.
|
int |
messagingFilterApply(long ptr,
long memPtr) |
long |
messagingFilterCreate(long memPtr)
Creates message filter and returns a pointer.
|
void |
messagingFilterDestroy(long ptr) |
void |
nodeInfo(long memPtr)
Sends node info to native target.
|
void |
onClientDisconnected()
Notifies platform about client disconnect.
|
void |
onClientReconnected(boolean clusterRestarted)
Notifies platform about client reconnect.
|
void |
onStart(Object proc,
long memPtr)
Kernal start callback.
|
void |
onStop()
Kernal stop callback.
|
long |
pluginCallback(long callbackId,
PlatformMemory outMem,
PlatformMemory inMem)
Invoke plugin callback by id.
|
void |
pluginProcessorIgniteStop(boolean cancel)
Notifies plugin processor about Ignite stop.
|
void |
pluginProcessorStop(boolean cancel)
Stops plugin processor.
|
void |
serviceCancel(long memPtr)
Cancels native service.
|
void |
serviceExecute(long memPtr)
Executes native service.
|
long |
serviceInit(long memPtr)
Initializes native service.
|
void |
serviceInvokeMethod(long memPtr)
Invokes service method.
|
public PlatformCallbackGateway(long envPtr)
envPtr - Environment pointer.public long environmentPointer()
public long cacheStoreCreate(long memPtr)
memPtr - Memory pointer.public int cacheStoreInvoke(long memPtr)
memPtr - Memory pointer.public void cacheStoreDestroy(long objPtr)
objPtr - Object pointer.public long cacheStoreSessionCreate()
public long cacheEntryFilterCreate(long memPtr)
memPtr - Memory pointer.public int cacheEntryFilterApply(long memPtr)
memPtr - Memory pointer.public void cacheEntryFilterDestroy(long ptr)
ptr - Pointer.public void cacheInvoke(long memPtr)
memPtr - Memory pointer.public void computeTaskMap(long memPtr)
memPtr - Memory pointer.public int computeTaskLocalJobResult(long taskPtr,
long jobPtr)
taskPtr - Task pointer.jobPtr - Job pointer.public int computeTaskJobResult(long memPtr)
memPtr - Memory pointer.public void computeTaskReduce(long taskPtr)
taskPtr - Task pointer.public void computeTaskComplete(long taskPtr,
long memPtr)
taskPtr - Task pointer.memPtr - Memory pointer with exception data or 0 in case of success.public int computeJobSerialize(long jobPtr,
long memPtr)
jobPtr - Job pointer.memPtr - Memory pointer.True if serialization succeeded.public long computeJobCreate(long memPtr)
memPtr - Memory pointer.public void computeJobExecuteLocal(long jobPtr,
long cancel)
jobPtr - Job pointer.cancel - Cancel flag.public void computeJobExecute(long memPtr)
memPtr - Memory pointer.public void computeJobCancel(long jobPtr)
jobPtr - Job pointer.public void computeJobDestroy(long ptr)
ptr - Pointer.public void continuousQueryListenerApply(long memPtr)
memPtr - Memory pointer.public long continuousQueryFilterCreate(long memPtr)
memPtr - Memory pointer.public long continuousQueryFilterApply(long memPtr)
memPtr - Memory pointer.public void continuousQueryFilterRelease(long filterPtr)
filterPtr - Filter pointer.public void dataStreamerTopologyUpdate(long ptr,
long topVer,
int topSize)
ptr - Data streamer native pointer.topVer - Topology version.topSize - Topology size.public void dataStreamerStreamReceiverInvoke(long ptr,
PlatformTargetProxy cache,
long memPtr,
boolean keepBinary)
cache - Cache object.memPtr - Stream pointer.public void futureByteResult(long futPtr,
long res)
futPtr - Future pointer.res - Result.public void futureBoolResult(long futPtr,
long res)
futPtr - Future pointer.res - Result.public void futureShortResult(long futPtr,
long res)
futPtr - Future pointer.res - Result.public void futureCharResult(long futPtr,
long res)
futPtr - Future pointer.res - Result.public void futureIntResult(long futPtr,
long res)
futPtr - Future pointer.res - Result.public void futureFloatResult(long futPtr,
long res)
futPtr - Future pointer.res - Result.public void futureLongResult(long futPtr,
long res)
futPtr - Future pointer.res - Result.public void futureDoubleResult(long futPtr,
long res)
futPtr - Future pointer.res - Result.public void futureObjectResult(long futPtr,
long memPtr)
futPtr - Future pointer.memPtr - Memory pointer.public void futureNullResult(long futPtr)
futPtr - Future pointer.public void futureError(long futPtr,
long memPtr)
futPtr - Future pointer.memPtr - Pointer to memory with error information.public long messagingFilterCreate(long memPtr)
memPtr - Memory pointer.public int messagingFilterApply(long ptr,
long memPtr)
ptr - Pointer.memPtr - Memory pointer.public void messagingFilterDestroy(long ptr)
ptr - Pointer.public long eventFilterCreate(long memPtr)
memPtr - Memory pointer.public int eventFilterApply(long ptr,
long memPtr)
ptr - Pointer.memPtr - Memory pointer.public void eventFilterDestroy(long ptr)
ptr - Pointer.public void nodeInfo(long memPtr)
memPtr - Ptr to a stream with serialized node.public void onStart(Object proc, long memPtr)
proc - Platform processor.memPtr - Memory pointer.public void lifecycleEvent(long ptr,
int evt)
ptr - Holder pointer.evt - Event.public void memoryReallocate(long memPtr,
int cap)
memPtr - Cross-platform pointer.cap - Capacity.public long serviceInit(long memPtr)
throws IgniteCheckedException
memPtr - Pointer.IgniteCheckedException - In case of error.public void serviceExecute(long memPtr)
throws IgniteCheckedException
memPtr - Stream pointer.IgniteCheckedException - In case of error.public void serviceCancel(long memPtr)
throws IgniteCheckedException
memPtr - Stream pointer.IgniteCheckedException - In case of error.public void serviceInvokeMethod(long memPtr)
throws IgniteCheckedException
memPtr - Memory pointer.IgniteCheckedException - In case of error.public int clusterNodeFilterApply(long memPtr)
memPtr - Stream pointer.public long extensionCallbackInLongOutLong(int typ,
long arg1)
typ - Operation type.arg1 - Argument 1.public long extensionCallbackInLongLongOutLong(int typ,
long arg1,
long arg2)
typ - Operation type.arg1 - Argument 1.arg2 - Argument 2.public void onClientDisconnected()
public void onClientReconnected(boolean clusterRestarted)
clusterRestarted - Cluster restarted flag.public void loggerLog(int level,
String message,
String category,
String errorInfo,
long memPtr)
level - Log level.message - Message.category - Category.errorInfo - Error info.memPtr - Pointer to optional payload (serialized exception).public boolean loggerIsLevelEnabled(int level)
level - Log level.public void onStop()
public long affinityFunctionInit(long memPtr,
PlatformTargetProxy baseFunc)
memPtr - Pointer to a stream with serialized affinity function.baseFunc - Optional func for base calls.public int affinityFunctionPartition(long memPtr)
memPtr - Pointer to a stream with data.public void affinityFunctionAssignPartitions(long memPtr)
memPtr - Pointer to a stream.public void affinityFunctionRemoveNode(long memPtr)
memPtr - Pointer to a stream.public void affinityFunctionDestroy(long ptr)
ptr - Affinity function pointer.public void pluginProcessorStop(boolean cancel)
public void pluginProcessorIgniteStop(boolean cancel)
public static void consoleWrite(String str, boolean isErr)
str - String to write.isErr - Whether this is stdErr or stdOut.public long pluginCallback(long callbackId,
PlatformMemory outMem,
PlatformMemory inMem)
callbackId - Id of a callback registered in Platform.outMem - Out memory (Java writes, platform reads).inMem - In memory (platform writes, Java reads).protected void enter()
protected void leave()
protected void block()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017