Class PlatformServices
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.PlatformAbstractTarget
-
- org.apache.ignite.internal.processors.platform.services.PlatformServices
-
- All Implemented Interfaces:
PlatformTarget
public class PlatformServices extends PlatformAbstractTarget
Interop services.
-
-
Field Summary
Fields Modifier and Type Field Description static bytePLATFORM_DOTNETstatic bytePLATFORM_JAVA-
Fields inherited from class org.apache.ignite.internal.processors.platform.PlatformAbstractTarget
ERROR, FALSE, log, platformCtx, TRUE
-
-
Constructor Summary
Constructors Constructor Description PlatformServices(PlatformContext platformCtx, IgniteServices services, boolean srvKeepBinary)Ctor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidconvertArrayArgs(Object[] args, Method mtd)Convert Object[] to T[] when required: Ignite loses array item types when passing arguments through GridServiceProxy.static MethodgetMethod(Class<?> clazz, String mthdName, Object[] args)Finds a suitable method in a class.longprocessInLongOutLong(int type, long val)Process IN operation.PlatformTargetprocessInObjectStreamOutObjectStream(int type, PlatformTarget arg, BinaryRawReaderEx reader, BinaryRawWriterEx writer)Process IN-OUT operation.longprocessInStreamOutLong(int type, BinaryRawReaderEx reader)Process IN operation.PlatformTargetprocessInStreamOutObject(int type, BinaryRawReaderEx reader)Process IN-OUT operation.voidprocessInStreamOutStream(int type, BinaryRawReaderEx reader, BinaryRawWriterEx writer)Process IN-OUT operation.PlatformTargetprocessOutObject(int type)Process OUT operation.voidprocessOutStream(int type, BinaryRawWriterEx writer)Process OUT operation.-
Methods inherited from class org.apache.ignite.internal.processors.platform.PlatformAbstractTarget
convertException, platformContext, processInStreamAsync, processInStreamOutLong, readAndListenFuture, readAndListenFuture, readAndListenFuture, throwUnsupported, wrapListenable
-
-
-
-
Field Detail
-
PLATFORM_JAVA
public static final byte PLATFORM_JAVA
- See Also:
- Constant Field Values
-
PLATFORM_DOTNET
public static final byte PLATFORM_DOTNET
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlatformServices
public PlatformServices(PlatformContext platformCtx, IgniteServices services, boolean srvKeepBinary)
Ctor.- Parameters:
platformCtx- Context.services- Services facade.srvKeepBinary- Server keep binary flag.
-
-
Method Detail
-
processInStreamOutLong
public long processInStreamOutLong(int type, BinaryRawReaderEx reader) throws IgniteCheckedExceptionProcess IN operation.- Specified by:
processInStreamOutLongin interfacePlatformTarget- Overrides:
processInStreamOutLongin classPlatformAbstractTarget- Parameters:
type- Type.reader- Binary reader.- Returns:
- Result.
- Throws:
IgniteCheckedException- In case of exception.
-
processInStreamOutStream
public void processInStreamOutStream(int type, BinaryRawReaderEx reader, BinaryRawWriterEx writer) throws IgniteCheckedExceptionProcess IN-OUT operation.- Specified by:
processInStreamOutStreamin interfacePlatformTarget- Overrides:
processInStreamOutStreamin classPlatformAbstractTarget- Parameters:
type- Type.reader- Binary reader.writer- Binary writer.- Throws:
IgniteCheckedException- In case of exception.
-
processInObjectStreamOutObjectStream
public PlatformTarget processInObjectStreamOutObjectStream(int type, PlatformTarget arg, BinaryRawReaderEx reader, BinaryRawWriterEx writer) throws IgniteCheckedException
Process IN-OUT operation.- Specified by:
processInObjectStreamOutObjectStreamin interfacePlatformTarget- Overrides:
processInObjectStreamOutObjectStreamin classPlatformAbstractTarget- Parameters:
type- Type.arg- Argument.reader- Binary reader.writer- Binary writer.- Throws:
IgniteCheckedException- In case of exception.
-
processOutStream
public void processOutStream(int type, BinaryRawWriterEx writer) throws IgniteCheckedExceptionProcess OUT operation.- Specified by:
processOutStreamin interfacePlatformTarget- Overrides:
processOutStreamin classPlatformAbstractTarget- Parameters:
type- Type.writer- Binary writer.- Throws:
IgniteCheckedException- In case of exception.
-
processOutObject
public PlatformTarget processOutObject(int type) throws IgniteCheckedException
Process OUT operation.- Specified by:
processOutObjectin interfacePlatformTarget- Overrides:
processOutObjectin classPlatformAbstractTarget- Parameters:
type- Type.- Throws:
IgniteCheckedException- In case of exception.
-
processInLongOutLong
public long processInLongOutLong(int type, long val) throws IgniteCheckedExceptionProcess IN operation.- Specified by:
processInLongOutLongin interfacePlatformTarget- Overrides:
processInLongOutLongin classPlatformAbstractTarget- Parameters:
type- Type.val- Value.- Returns:
- Result.
- Throws:
IgniteCheckedException- In case of exception.
-
processInStreamOutObject
public PlatformTarget processInStreamOutObject(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
Process IN-OUT operation.- Specified by:
processInStreamOutObjectin interfacePlatformTarget- Overrides:
processInStreamOutObjectin classPlatformAbstractTarget- Parameters:
type- Type.reader- Binary reader.- Throws:
IgniteCheckedException- In case of exception.
-
getMethod
public static Method getMethod(Class<?> clazz, String mthdName, Object[] args) throws NoSuchMethodException
Finds a suitable method in a class.- Parameters:
clazz- Class.mthdName- Name.args- Args.- Returns:
- Method.
- Throws:
NoSuchMethodException- On error.
-
-