public interface GridPortableProcessor extends GridProcessor
GridComponent.DiscoveryDataExchangeType| 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.
|
addAttributescollectDiscoveryData, discoveryDataType, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, validateNodevoid onCacheProcessorStarted()
int typeId(String typeName)
typeName - Type name.int typeId(Object obj)
obj - Object to get type ID for.ByteBuffer marshal(@Nullable Object obj, boolean trim) throws IgniteException
obj - Object to marshal.trim - If true trims result byte buffer.IgniteException - In case of error.Object unmarshal(byte[] arr, int off) throws IgniteException
arr - Byte array.off - Offset.IgniteException - In case of error.Object unmarshal(long ptr, boolean forceHeap) throws IgniteException
ptr - Offheap pointer.forceHeap - If true creates heap-based object.IgniteException - In case of error.@Nullable Object unwrapTemporary(@Nullable Object obj) throws IgniteException
obj - Object.IgniteException - In case of error.Object marshalToPortable(@Nullable Object obj) throws IgniteException
obj - Object to marshal.IgniteException - In case of error.Object detachPortable(@Nullable Object obj)
obj - Object (portable or not).@Nullable GridClientMarshaller portableMarshaller()
null if it's not
supported (in case of OS edition).boolean isPortable(GridClientMarshaller marsh)
marsh - Client marshaller.boolean portableEnabled(ClusterNode node, String cacheName)
node - Node to check.cacheName - Cache name to check.True if portable enabled for the specified cache, false otherwise.boolean isPortableObject(Object obj)
obj - Object to check.True if object is already a portable object, false otherwise.Object affinityKey(Object obj)
obj - Object to get affinity key for.Object field(Object obj, String fieldName)
obj - Portable object to get field from.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015