private static ModelNode getDetypedStackTraceElement(final StackTraceElement stackTraceElement) { final ModelNode result = new ModelNode(); if (stackTraceElement != null) { nullSafeSet(result.get(PlatformMBeanConstants.FILE_NAME), stackTraceElement.getFileName()); result.get(PlatformMBeanConstants.LINE_NUMBER).set(stackTraceElement.getLineNumber()); result.get(PlatformMBeanConstants.CLASS_NAME).set(stackTraceElement.getClassName()); result.get(PlatformMBeanConstants.METHOD_NAME).set(stackTraceElement.getMethodName()); result.get(PlatformMBeanConstants.NATIVE_METHOD).set(stackTraceElement.isNativeMethod()); } return result; }
private static ModelNode getDetypedStackTraceElement(final StackTraceElement stackTraceElement) { final ModelNode result = new ModelNode(); if (stackTraceElement != null) { nullSafeSet(result.get(PlatformMBeanConstants.FILE_NAME), stackTraceElement.getFileName()); result.get(PlatformMBeanConstants.LINE_NUMBER).set(stackTraceElement.getLineNumber()); result.get(PlatformMBeanConstants.CLASS_NAME).set(stackTraceElement.getClassName()); result.get(PlatformMBeanConstants.METHOD_NAME).set(stackTraceElement.getMethodName()); result.get(PlatformMBeanConstants.NATIVE_METHOD).set(stackTraceElement.isNativeMethod()); } return result; }
private static ModelNode getDetypedStackTraceElement(final StackTraceElement stackTraceElement) { final ModelNode result = new ModelNode(); if (stackTraceElement != null) { nullSafeSet(result.get(PlatformMBeanConstants.FILE_NAME), stackTraceElement.getFileName()); result.get(PlatformMBeanConstants.LINE_NUMBER).set(stackTraceElement.getLineNumber()); result.get(PlatformMBeanConstants.CLASS_NAME).set(stackTraceElement.getClassName()); result.get(PlatformMBeanConstants.METHOD_NAME).set(stackTraceElement.getMethodName()); result.get(PlatformMBeanConstants.NATIVE_METHOD).set(stackTraceElement.isNativeMethod()); } return result; }
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()); nullSafeSet(result.get(PlatformMBeanConstants.LOCK_OWNER_NAME), threadInfo.getLockOwnerName()); final ModelNode stack = result.get(PlatformMBeanConstants.STACK_TRACE); stack.setEmptyList();
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()); nullSafeSet(result.get(PlatformMBeanConstants.LOCK_OWNER_NAME), threadInfo.getLockOwnerName()); final ModelNode stack = result.get(PlatformMBeanConstants.STACK_TRACE); stack.setEmptyList();
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()); nullSafeSet(result.get(PlatformMBeanConstants.LOCK_OWNER_NAME), threadInfo.getLockOwnerName()); final ModelNode stack = result.get(PlatformMBeanConstants.STACK_TRACE); stack.setEmptyList();