public class GridCacheEventManager<K,V> extends GridCacheManagerAdapter<K,V>
cctx, log| Constructor and Description |
|---|
GridCacheEventManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(int part,
K key,
GridCacheTx tx,
GridCacheMvccCandidate<K> owner,
int type,
V newVal,
boolean hasNewVal,
V oldVal,
boolean hasOldVal,
UUID subjId) |
void |
addEvent(int part,
K key,
UUID evtNodeId,
GridCacheMvccCandidate<K> owner,
int type,
V newVal,
boolean hasNewVal,
V oldVal,
boolean hasOldVal,
UUID subjId) |
void |
addEvent(int part,
K key,
UUID nodeId,
GridCacheTx tx,
GridCacheMvccCandidate<K> owner,
int type,
V newVal,
boolean hasNewVal,
V oldVal,
boolean hasOldVal,
UUID subjId) |
void |
addEvent(int part,
K key,
UUID evtNodeId,
GridUuid xid,
Object lockId,
int type,
V newVal,
boolean hasNewVal,
V oldVal,
boolean hasOldVal,
UUID subjId) |
void |
addListener(GridLocalEventListener lsnr,
int... evts)
Adds local event listener.
|
void |
addPreloadEvent(int part,
int type,
GridNode discoNode,
int discoType,
long discoTs)
Adds preloading event.
|
void |
addUnloadEvent(int part)
Adds partition unload event.
|
boolean |
isRecordable(int type) |
void |
printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.).
|
void |
removeListener(GridLocalEventListener lsnr)
Removes local event listener.
|
void |
start0() |
context, kernalStartInfo, kernalStopInfo, log, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, start, startInfo, stop, stop0, stopInfo, toStringpublic void start0()
start0 in class GridCacheManagerAdapter<K,V>public void addListener(GridLocalEventListener lsnr, int... evts)
lsnr - Listener.evts - Types of events.public void removeListener(GridLocalEventListener lsnr)
lsnr - Local event listener.public void addEvent(int part,
K key,
GridCacheTx tx,
@Nullable
GridCacheMvccCandidate<K> owner,
int type,
@Nullable
V newVal,
boolean hasNewVal,
@Nullable
V oldVal,
boolean hasOldVal,
UUID subjId)
part - Partition.key - Key for the event.tx - Possible surrounding transaction.owner - Possible surrounding lock.type - Event type.newVal - New value.hasNewVal - Whether new value is present or not.oldVal - Old value.hasOldVal - Whether old value is present or not.public void addEvent(int part,
K key,
UUID nodeId,
GridCacheTx tx,
GridCacheMvccCandidate<K> owner,
int type,
V newVal,
boolean hasNewVal,
V oldVal,
boolean hasOldVal,
UUID subjId)
part - Partition.key - Key for the event.nodeId - Node ID.tx - Possible surrounding transaction.owner - Possible surrounding lock.type - Event type.newVal - New value.hasNewVal - Whether new value is present or not.oldVal - Old value.hasOldVal - Whether old value is present or not.public void addEvent(int part,
K key,
UUID evtNodeId,
@Nullable
GridCacheMvccCandidate<K> owner,
int type,
@Nullable
V newVal,
boolean hasNewVal,
V oldVal,
boolean hasOldVal,
UUID subjId)
part - Partition.key - Key for the event.evtNodeId - Node ID.owner - Possible surrounding lock.type - Event type.newVal - New value.hasNewVal - Whether new value is present or not.oldVal - Old value.hasOldVal - Whether old value is present or not.public void addEvent(int part,
K key,
UUID evtNodeId,
@Nullable
GridUuid xid,
@Nullable
Object lockId,
int type,
@Nullable
V newVal,
boolean hasNewVal,
@Nullable
V oldVal,
boolean hasOldVal,
UUID subjId)
part - Partition.key - Key for the event.evtNodeId - Event node ID.xid - Transaction ID.lockId - Lock ID.type - Event type.newVal - New value.hasNewVal - Whether new value is present or not.oldVal - Old value.hasOldVal - Whether old value is present or not.public void addPreloadEvent(int part,
int type,
GridNode discoNode,
int discoType,
long discoTs)
part - Partition.type - Event type.discoNode - Discovery node.discoType - Discovery event type.discoTs - Discovery event timestamp.public void addUnloadEvent(int part)
part - Partition.public boolean isRecordable(int type)
type - Event type.True if event is recordable.public void printMemoryStats()
printMemoryStats in interface GridCacheManager<K,V>printMemoryStats in class GridCacheManagerAdapter<K,V>Copyright © 2014. All rights reserved.