Class PlatformTargetProxyImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl
-
- All Implemented Interfaces:
PlatformTargetProxy
public class PlatformTargetProxyImpl extends Object implements PlatformTargetProxy
Platform target that is invoked via JNI and propagates calls to underlyingPlatformTarget.
-
-
Field Summary
Fields Modifier and Type Field Description protected PlatformContextplatformCtxContext.
-
Constructor Summary
Constructors Constructor Description PlatformTargetProxyImpl(PlatformTarget target, PlatformContext platformCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longinLongOutLong(int type, long val)Operation accepting long value and returning long value.ObjectinObjectStreamOutObjectStream(int type, Object arg, long inMemPtr, long outMemPtr)Operation accepting an object and a memory stream and returning result to another memory stream and an object.voidinStreamAsync(int type, long memPtr)Asynchronous operation accepting memory stream.longinStreamOutLong(int type, long memPtr)Operation accepting memory stream and returning long value.ObjectinStreamOutObject(int type, long memPtr)Operation accepting memory stream and returning object.ObjectinStreamOutObjectAsync(int type, long memPtr)Asynchronous operation accepting memory stream and returning PlatformListenableTarget.voidinStreamOutStream(int type, long inMemPtr, long outMemPtr)Operation accepting one memory stream and returning result to another memory stream.ObjectoutObject(int type)Operation returning object result.voidoutStream(int type, long memPtr)Operation returning result to memory stream.PlatformTargetunwrap()Returns the underlying target.
-
-
-
Field Detail
-
platformCtx
protected final PlatformContext platformCtx
Context.
-
-
Constructor Detail
-
PlatformTargetProxyImpl
public PlatformTargetProxyImpl(PlatformTarget target, PlatformContext platformCtx)
- Parameters:
target- Platform target.platformCtx- Platform context.
-
-
Method Detail
-
inLongOutLong
public long inLongOutLong(int type, long val) throws ExceptionOperation accepting long value and returning long value.- Specified by:
inLongOutLongin interfacePlatformTargetProxy- Parameters:
type- Operation type.val- Value.- Returns:
- Result.
- Throws:
Exception- If case of failure.
-
inStreamOutLong
public long inStreamOutLong(int type, long memPtr) throws ExceptionOperation accepting memory stream and returning long value.- Specified by:
inStreamOutLongin interfacePlatformTargetProxy- Parameters:
type- Operation type.memPtr- Memory pointer.- Returns:
- Result.
- Throws:
Exception- If case of failure.
-
inStreamOutObject
public Object inStreamOutObject(int type, long memPtr) throws Exception
Operation accepting memory stream and returning object.- Specified by:
inStreamOutObjectin interfacePlatformTargetProxy- Parameters:
type- Operation type.memPtr- Memory pointer.- Returns:
- Result.
- Throws:
Exception- If case of failure.
-
outStream
public void outStream(int type, long memPtr) throws ExceptionOperation returning result to memory stream.- Specified by:
outStreamin interfacePlatformTargetProxy- Parameters:
type- Operation type.memPtr- Memory pointer.- Throws:
Exception- In case of failure.
-
outObject
public Object outObject(int type) throws Exception
Operation returning object result.- Specified by:
outObjectin interfacePlatformTargetProxy- Parameters:
type- Operation type.- Returns:
- Result.
- Throws:
Exception- If failed.
-
inStreamAsync
public void inStreamAsync(int type, long memPtr) throws ExceptionAsynchronous operation accepting memory stream.- Specified by:
inStreamAsyncin interfacePlatformTargetProxy- Parameters:
type- Operation type.memPtr- Memory pointer.- Throws:
Exception- If case of failure.
-
inStreamOutObjectAsync
public Object inStreamOutObjectAsync(int type, long memPtr) throws Exception
Asynchronous operation accepting memory stream and returning PlatformListenableTarget. Supports cancellable async operations.- Specified by:
inStreamOutObjectAsyncin interfacePlatformTargetProxy- Parameters:
type- Operation type.memPtr- Memory pointer.- Returns:
- Result.
- Throws:
Exception- If case of failure.
-
inStreamOutStream
public void inStreamOutStream(int type, long inMemPtr, long outMemPtr) throws ExceptionOperation accepting one memory stream and returning result to another memory stream.- Specified by:
inStreamOutStreamin interfacePlatformTargetProxy- Parameters:
type- Operation type.inMemPtr- Input memory pointer.outMemPtr- Output memory pointer.- Throws:
Exception- In case of failure.
-
inObjectStreamOutObjectStream
public Object inObjectStreamOutObjectStream(int type, Object arg, long inMemPtr, long outMemPtr) throws Exception
Operation accepting an object and a memory stream and returning result to another memory stream and an object.- Specified by:
inObjectStreamOutObjectStreamin interfacePlatformTargetProxy- Parameters:
type- Operation type.arg- Argument (optional).inMemPtr- Input memory pointer.outMemPtr- Output memory pointer.- Returns:
- Result.
- Throws:
Exception- In case of failure.
-
unwrap
public PlatformTarget unwrap()
Returns the underlying target.- Specified by:
unwrapin interfacePlatformTargetProxy- Returns:
- Underlying target.
-
-