public class PlatformCache extends PlatformAbstractTarget
ERROR, FALSE, log, platformCtx, TRUE
Constructor and Description |
---|
PlatformCache(PlatformContext platformCtx,
IgniteCache cache,
boolean keepBinary)
Constructor.
|
PlatformCache(PlatformContext platformCtx,
IgniteCache cache,
boolean keepBinary,
PlatformCacheExtension[] exts)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Exception |
convertException(Exception e)
Convert caught exception.
|
long |
processInLongOutLong(int type,
long val)
Process IN operation.
|
long |
processInStreamOutLong(int type,
BinaryRawReaderEx reader,
PlatformMemory mem)
Process IN operation.
|
PlatformTarget |
processInStreamOutObject(int type,
BinaryRawReaderEx reader)
Process IN-OUT operation.
|
PlatformTarget |
processOutObject(int type)
Process OUT operation.
|
void |
processOutStream(int type,
BinaryRawWriterEx writer)
Process OUT operation.
|
IgniteCache |
rawCache() |
static void |
writeCacheMetrics(BinaryRawWriter writer,
CacheMetrics metrics)
Writes cache metrics.
|
long |
writeResult(PlatformMemory mem,
Object obj)
Writes the result to reused stream, if any.
|
long |
writeResult(PlatformMemory mem,
Object obj,
PlatformWriterClosure clo)
Writes the result to reused stream, if any.
|
platformContext, processInObjectStreamOutObjectStream, processInStreamAsync, processInStreamOutLong, processInStreamOutStream, readAndListenFuture, readAndListenFuture, readAndListenFuture, readAndListenFuture, wrapListenable
public static final int OP_CLEAR
public static final int OP_CLEAR_ALL
public static final int OP_CONTAINS_KEY
public static final int OP_CONTAINS_KEYS
public static final int OP_GET
public static final int OP_GET_ALL
public static final int OP_GET_AND_PUT
public static final int OP_GET_AND_PUT_IF_ABSENT
public static final int OP_GET_AND_REMOVE
public static final int OP_GET_AND_REPLACE
public static final int OP_GET_NAME
public static final int OP_INVOKE
public static final int OP_INVOKE_ALL
public static final int OP_IS_LOCAL_LOCKED
public static final int OP_LOAD_CACHE
public static final int OP_LOC_EVICT
public static final int OP_LOC_LOAD_CACHE
public static final int OP_LOCAL_CLEAR
public static final int OP_LOCAL_CLEAR_ALL
public static final int OP_LOCK
public static final int OP_LOCK_ALL
public static final int OP_LOCAL_METRICS
public static final int OP_PUT_IF_ABSENT
public static final int OP_QRY_CONTINUOUS
public static final int OP_QRY_SCAN
public static final int OP_QRY_SQL
public static final int OP_QRY_SQL_FIELDS
public static final int OP_QRY_TXT
public static final int OP_REMOVE_ALL
public static final int OP_REMOVE_BOOL
public static final int OP_REMOVE_OBJ
public static final int OP_REPLACE_2
public static final int OP_REPLACE_3
public static final int OP_GET_CONFIG
public static final int OP_LOAD_ALL
public static final int OP_CLEAR_CACHE
public static final int OP_WITH_PARTITION_RECOVER
public static final int OP_REMOVE_ALL2
public static final int OP_WITH_KEEP_BINARY
public static final int OP_WITH_EXPIRY_POLICY
public static final int OP_WITH_NO_RETRIES
public static final int OP_WITH_SKIP_STORE
public static final int OP_SIZE
public static final int OP_ITERATOR
public static final int OP_LOC_ITERATOR
public static final int OP_ENTER_LOCK
public static final int OP_EXIT_LOCK
public static final int OP_TRY_ENTER_LOCK
public static final int OP_CLOSE_LOCK
public static final int OP_REBALANCE
public static final int OP_SIZE_LOC
public static final int OP_PUT_ASYNC
public static final int OP_CLEAR_CACHE_ASYNC
public static final int OP_CLEAR_ALL_ASYNC
public static final int OP_REMOVE_ALL2_ASYNC
public static final int OP_SIZE_ASYNC
public static final int OP_CLEAR_ASYNC
public static final int OP_LOAD_CACHE_ASYNC
public static final int OP_LOC_LOAD_CACHE_ASYNC
public static final int OP_PUT_ALL_ASYNC
public static final int OP_REMOVE_ALL_ASYNC
public static final int OP_GET_ASYNC
public static final int OP_CONTAINS_KEY_ASYNC
public static final int OP_CONTAINS_KEYS_ASYNC
public static final int OP_REMOVE_BOOL_ASYNC
public static final int OP_REMOVE_OBJ_ASYNC
public static final int OP_GET_ALL_ASYNC
public static final int OP_GET_AND_PUT_ASYNC
public static final int OP_GET_AND_PUT_IF_ABSENT_ASYNC
public static final int OP_GET_AND_REMOVE_ASYNC
public static final int OP_GET_AND_REPLACE_ASYNC
public static final int OP_REPLACE_2_ASYNC
public static final int OP_REPLACE_3_ASYNC
public static final int OP_INVOKE_ASYNC
public static final int OP_INVOKE_ALL_ASYNC
public static final int OP_PUT_IF_ABSENT_ASYNC
public static final int OP_EXTENSION
public static final int OP_GLOBAL_METRICS
public static final int OP_GET_LOST_PARTITIONS
public PlatformCache(PlatformContext platformCtx, IgniteCache cache, boolean keepBinary)
platformCtx
- Context.cache
- Underlying cache.keepBinary
- Keep binary flag.public PlatformCache(PlatformContext platformCtx, IgniteCache cache, boolean keepBinary, PlatformCacheExtension[] exts)
platformCtx
- Context.cache
- Underlying cache.keepBinary
- Keep binary flag.exts
- Extensions.public IgniteCache rawCache()
public long processInStreamOutLong(int type, BinaryRawReaderEx reader, PlatformMemory mem) throws IgniteCheckedException
processInStreamOutLong
in interface PlatformTarget
processInStreamOutLong
in class PlatformAbstractTarget
type
- Type.reader
- Binary reader.IgniteCheckedException
- In case of exception.public long writeResult(PlatformMemory mem, Object obj)
public long writeResult(PlatformMemory mem, Object obj, PlatformWriterClosure clo)
public PlatformTarget processInStreamOutObject(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamOutObject
in interface PlatformTarget
processInStreamOutObject
in class PlatformAbstractTarget
type
- Type.reader
- Binary reader.IgniteCheckedException
- In case of exception.public void processOutStream(int type, BinaryRawWriterEx writer) throws IgniteCheckedException
processOutStream
in interface PlatformTarget
processOutStream
in class PlatformAbstractTarget
type
- Type.writer
- Binary writer.IgniteCheckedException
- In case of exception.public PlatformTarget processOutObject(int type) throws IgniteCheckedException
processOutObject
in interface PlatformTarget
processOutObject
in class PlatformAbstractTarget
type
- Type.IgniteCheckedException
- In case of exception.public long processInLongOutLong(int type, long val) throws IgniteCheckedException
processInLongOutLong
in interface PlatformTarget
processInLongOutLong
in class PlatformAbstractTarget
type
- Type.val
- Value.IgniteCheckedException
- In case of exception.public Exception convertException(Exception e)
convertException
in interface PlatformTarget
convertException
in class PlatformAbstractTarget
e
- Exception to convert.public static void writeCacheMetrics(BinaryRawWriter writer, CacheMetrics metrics)
writer
- Writer.metrics
- Metrics.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017