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 |
|---|---|
int |
threadLimits |
int |
timeOutWorkerInterval |
| 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 final int threadLimits
public final int timeOutWorkerInterval
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 PageLockListenerstructureId - Cache ID.pageId - Page ID.page - Page pointer.public void onWriteLock(int structureId,
long pageId,
long page,
long pageAddr)
onWriteLock in interface PageLockListenerstructureId - 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 PageLockListenerstructureId - Cache ID.pageId - Page ID.page - Page pointer.pageAddr - Page address.public void onBeforeReadLock(int structureId,
long pageId,
long page)
onBeforeReadLock in interface PageLockListenerstructureId - Cache ID.pageId - Page ID.page - Page pointer.public void onReadLock(int structureId,
long pageId,
long page,
long pageAddr)
onReadLock in interface PageLockListenerstructureId - 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 PageLockListenerstructureId - 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 LifecycleAwareIgniteException - If failed.public void stop()
throws IgniteException
stop in interface LifecycleAwareIgniteException - 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.9.1 Release Date : December 9 2020