PageLockTrackerManager implements LifecycleAware { public PageLockListener createPageLockTracker(String name) { if (!trackingEnable) return DataStructure.NOOP_LSNR; return sharedPageLockTracker.registrateStructure(name); } PageLockTrackerManager(IgniteLogger log);  PageLockTrackerManager(IgniteLogger log, String managerNameId); PageLockListener createPageLockTracker(String name); String dumpLocks(); void dumpLocksToLog(); String dumpLocksToFile(); String dumpLocksToFile(String path); PageLockTrackerMXBean mxBean(); long getHeapOverhead(); long getOffHeapOverhead(); long getTotalOverhead(); @Override void start(); @Override void stop();  }
@Test public void testDisableTracking() { System.setProperty("IGNITE_PAGE_LOCK_TRACKER_TYPE", String.valueOf(-1)); try { PageLockTrackerManager mgr = new PageLockTrackerManager(new ListeningTestLogger()); PageLockListener pll = mgr.createPageLockTracker("test"); Assert.assertNotNull(pll); Assert.assertSame(pll, DataStructure.NOOP_LSNR); } finally { System.clearProperty("IGNITE_PAGE_LOCK_TRACKER_TYPE"); } System.setProperty("IGNITE_PAGE_LOCK_TRACKER_TYPE", String.valueOf(HEAP_LOG)); try { PageLockTrackerManager mgr = new PageLockTrackerManager(new ListeningTestLogger()); PageLockListener pll = mgr.createPageLockTracker("test"); Assert.assertNotNull(pll); Assert.assertNotSame(pll, DataStructure.NOOP_LSNR); } finally { System.clearProperty("IGNITE_PAGE_LOCK_TRACKER_TYPE"); } }