public class SharedPageLockTracker extends Object implements LifecycleAware, PageLockListener, DumpSupported<ThreadPageLocksDumpLock>
Modifier and Type | Class and Description |
---|---|
static class |
SharedPageLockTracker.State |
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_PAGE_LOCK_TRACKER_CHECK_INTERVAL |
int |
threadLimits |
Constructor and Description |
---|
SharedPageLockTracker() |
SharedPageLockTracker(Consumer<Set<SharedPageLockTracker.State>> hangThreadsCallBack,
PageLockTrackerManager.MemoryCalculator memCalc) |
SharedPageLockTracker(int threadLimits,
int timeOutWorkerInterval,
Consumer<Set<SharedPageLockTracker.State>> hangThreadsCallBack,
PageLockTrackerManager.MemoryCalculator memCalc) |
Modifier and Type | Method and Description |
---|---|
boolean |
acquireSafePoint() |
ThreadPageLocksDumpLock |
dump()
Create dump.
|
IgniteFuture<ThreadPageLocksDumpLock> |
dumpSync()
Create dump async.
|
void |
onBeforeReadLock(int structureId,
long pageId,
long page) |
void |
onBeforeWriteLock(int structureId,
long pageId,
long page) |
void |
onReadLock(int structureId,
long pageId,
long page,
long pageAddr) |
void |
onReadUnlock(int structureId,
long pageId,
long page,
long pageAddr) |
void |
onWriteLock(int structureId,
long pageId,
long page,
long pageAddr) |
void |
onWriteUnlock(int structureId,
long pageId,
long page,
long pageAddr) |
PageLockListener |
registrateStructure(String structureName) |
boolean |
releaseSafePoint() |
void |
start()
Starts grid component, called on grid start.
|
void |
stop()
Stops grid component, called on grid shutdown.
|
public static final int DFLT_PAGE_LOCK_TRACKER_CHECK_INTERVAL
public final int threadLimits
public SharedPageLockTracker()
public SharedPageLockTracker(Consumer<Set<SharedPageLockTracker.State>> hangThreadsCallBack, PageLockTrackerManager.MemoryCalculator memCalc)
public SharedPageLockTracker(int threadLimits, int timeOutWorkerInterval, Consumer<Set<SharedPageLockTracker.State>> hangThreadsCallBack, PageLockTrackerManager.MemoryCalculator memCalc)
public PageLockListener registrateStructure(String structureName)
public void onBeforeWriteLock(int structureId, long pageId, long page)
onBeforeWriteLock
in interface PageLockListener
structureId
- Cache ID.pageId
- Page ID.page
- Page pointer.public void onWriteLock(int structureId, long pageId, long page, long pageAddr)
onWriteLock
in interface PageLockListener
structureId
- Cache ID.pageId
- Page ID.page
- Page pointer.pageAddr
- Page address.public void onWriteUnlock(int structureId, long pageId, long page, long pageAddr)
onWriteUnlock
in interface PageLockListener
structureId
- Cache ID.pageId
- Page ID.page
- Page pointer.pageAddr
- Page address.public void onBeforeReadLock(int structureId, long pageId, long page)
onBeforeReadLock
in interface PageLockListener
structureId
- Cache ID.pageId
- Page ID.page
- Page pointer.public void onReadLock(int structureId, long pageId, long page, long pageAddr)
onReadLock
in interface PageLockListener
structureId
- Cache ID.pageId
- Page ID.page
- Page pointer.pageAddr
- Page address.public void onReadUnlock(int structureId, long pageId, long page, long pageAddr)
onReadUnlock
in interface PageLockListener
structureId
- Cache ID.pageId
- Page ID.page
- Page pointer.pageAddr
- Page address.public ThreadPageLocksDumpLock dump()
dump
in interface DumpSupported<ThreadPageLocksDumpLock>
public void start() throws IgniteException
start
in interface LifecycleAware
IgniteException
- If failed.public void stop() throws IgniteException
stop
in interface LifecycleAware
IgniteException
- If failed.public IgniteFuture<ThreadPageLocksDumpLock> dumpSync()
dumpSync
in interface DumpSupported<ThreadPageLocksDumpLock>
public boolean acquireSafePoint()
acquireSafePoint
in interface DumpSupported<ThreadPageLocksDumpLock>
public boolean releaseSafePoint()
releaseSafePoint
in interface DumpSupported<ThreadPageLocksDumpLock>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021