private static ModelNode getDetypedMonitorInfo(final MonitorInfo monitorInfo) { final ModelNode result = getDetypedLockInfo(monitorInfo); if (monitorInfo != null) { result.get(PlatformMBeanConstants.LOCKED_STACK_DEPTH).set(monitorInfo.getLockedStackDepth()); final ModelNode frame = getDetypedStackTraceElement(monitorInfo.getLockedStackFrame()); result.get(PlatformMBeanConstants.LOCKED_STACK_FRAME).set(frame); } return result; }
private static ModelNode getDetypedMonitorInfo(final MonitorInfo monitorInfo) { final ModelNode result = getDetypedLockInfo(monitorInfo); if (monitorInfo != null) { result.get(PlatformMBeanConstants.LOCKED_STACK_DEPTH).set(monitorInfo.getLockedStackDepth()); final ModelNode frame = getDetypedStackTraceElement(monitorInfo.getLockedStackFrame()); result.get(PlatformMBeanConstants.LOCKED_STACK_FRAME).set(frame); } return result; }
private static ModelNode getDetypedMonitorInfo(final MonitorInfo monitorInfo) { final ModelNode result = getDetypedLockInfo(monitorInfo); if (monitorInfo != null) { result.get(PlatformMBeanConstants.LOCKED_STACK_DEPTH).set(monitorInfo.getLockedStackDepth()); final ModelNode frame = getDetypedStackTraceElement(monitorInfo.getLockedStackFrame()); result.get(PlatformMBeanConstants.LOCKED_STACK_FRAME).set(frame); } return result; }
result.get(PlatformMBeanConstants.WAITED_TIME).set(threadInfo.getWaitedTime()); result.get(PlatformMBeanConstants.WAITED_COUNT).set(threadInfo.getWaitedCount()); result.get(PlatformMBeanConstants.LOCK_INFO).set(getDetypedLockInfo(threadInfo.getLockInfo())); nullSafeSet(result.get(PlatformMBeanConstants.LOCK_NAME), threadInfo.getLockName()); result.get(PlatformMBeanConstants.LOCK_OWNER_ID).set(threadInfo.getLockOwnerId()); synchronizers.setEmptyList(); for (LockInfo lock : threadInfo.getLockedSynchronizers()) { synchronizers.add(getDetypedLockInfo(lock));
result.get(PlatformMBeanConstants.WAITED_TIME).set(threadInfo.getWaitedTime()); result.get(PlatformMBeanConstants.WAITED_COUNT).set(threadInfo.getWaitedCount()); result.get(PlatformMBeanConstants.LOCK_INFO).set(getDetypedLockInfo(threadInfo.getLockInfo())); nullSafeSet(result.get(PlatformMBeanConstants.LOCK_NAME), threadInfo.getLockName()); result.get(PlatformMBeanConstants.LOCK_OWNER_ID).set(threadInfo.getLockOwnerId()); synchronizers.setEmptyList(); for (LockInfo lock : threadInfo.getLockedSynchronizers()) { synchronizers.add(getDetypedLockInfo(lock));
result.get(PlatformMBeanConstants.WAITED_TIME).set(threadInfo.getWaitedTime()); result.get(PlatformMBeanConstants.WAITED_COUNT).set(threadInfo.getWaitedCount()); result.get(PlatformMBeanConstants.LOCK_INFO).set(getDetypedLockInfo(threadInfo.getLockInfo())); nullSafeSet(result.get(PlatformMBeanConstants.LOCK_NAME), threadInfo.getLockName()); result.get(PlatformMBeanConstants.LOCK_OWNER_ID).set(threadInfo.getLockOwnerId()); synchronizers.setEmptyList(); for (LockInfo lock : threadInfo.getLockedSynchronizers()) { synchronizers.add(getDetypedLockInfo(lock));