public class GridOsPortableProcessor extends GridProcessorAdapter implements GridPortableProcessor
GridPortableProcessor.GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
GridOsPortableProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
Object |
affinityKey(Object obj)
Gets affinity key of portable object.
|
Object |
detachPortable(Object obj) |
Object |
field(Object obj,
String fieldName) |
boolean |
hasField(Object obj,
String fieldName)
Checks whether field is set in the object.
|
boolean |
isPortable(GridClientMarshaller marsh) |
boolean |
isPortableObject(Object obj)
Checks whether object is portable object.
|
ByteBuffer |
marshal(Object obj,
boolean trim) |
Object |
marshalToPortable(Object obj) |
void |
onCacheProcessorStarted() |
boolean |
portableEnabled(ClusterNode node,
String cacheName) |
GridClientMarshaller |
portableMarshaller() |
int |
typeId(Object obj) |
int |
typeId(String typeName) |
Object |
unmarshal(byte[] arr,
int off) |
Object |
unmarshal(long ptr,
boolean forceHeap) |
Object |
unwrapTemporary(Object obj)
Converts temporary offheap object to heap-based.
|
addAttributes, assertParameter, collectDiscoveryData, discoveryDataType, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, toString, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttributescollectDiscoveryData, discoveryDataType, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, validateNodepublic GridOsPortableProcessor(GridKernalContext ctx)
ctx - Kernal context.public void onCacheProcessorStarted()
onCacheProcessorStarted in interface GridPortableProcessorpublic int typeId(String typeName)
typeId in interface GridPortableProcessortypeName - Type name.public ByteBuffer marshal(@Nullable Object obj, boolean trim) throws IgniteException
marshal in interface GridPortableProcessorobj - Object to marshal.trim - If true trims result byte buffer.IgniteException - In case of error.@Nullable public Object unmarshal(byte[] arr, int off) throws IgniteException
unmarshal in interface GridPortableProcessorarr - Byte array.off - Offset.IgniteException - In case of error.public Object unmarshal(long ptr, boolean forceHeap) throws IgniteException
unmarshal in interface GridPortableProcessorptr - Offheap pointer.forceHeap - If true creates heap-based object.IgniteException - In case of error.public Object unwrapTemporary(Object obj) throws IgniteException
unwrapTemporary in interface GridPortableProcessorobj - Object.IgniteException - In case of error.@Nullable public Object marshalToPortable(@Nullable Object obj) throws IgniteException
marshalToPortable in interface GridPortableProcessorobj - Object to marshal.IgniteException - In case of error.public Object detachPortable(@Nullable Object obj)
detachPortable in interface GridPortableProcessorobj - Object (portable or not).@Nullable public GridClientMarshaller portableMarshaller()
portableMarshaller in interface GridPortableProcessornull if it's not
supported (in case of OS edition).public boolean isPortable(GridClientMarshaller marsh)
isPortable in interface GridPortableProcessormarsh - Client marshaller.public boolean portableEnabled(ClusterNode node, String cacheName)
portableEnabled in interface GridPortableProcessornode - Node to check.cacheName - Cache name to check.True if portable enabled for the specified cache, false otherwise.public boolean isPortableObject(Object obj)
isPortableObject in interface GridPortableProcessorobj - Object to check.True if object is already a portable object, false otherwise.public Object affinityKey(Object obj)
affinityKey in interface GridPortableProcessorobj - Object to get affinity key for.public int typeId(Object obj)
typeId in interface GridPortableProcessorobj - Object to get type ID for.public Object field(Object obj, String fieldName)
field in interface GridPortableProcessorobj - Portable object to get field from.public boolean hasField(Object obj, String fieldName)
hasField in interface GridPortableProcessorobj - Object.fieldName - Field name.true if field is set.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015