/** * {@inheritDoc} */ @Override public void doRefresh() { ClassLoadingInformationData classLoadingData = (ClassLoadingInformationData) dataAccessService.getLastDataObject(classLoadingObj); CpuInformationData cpuData = (CpuInformationData) dataAccessService.getLastDataObject(cpuObj); CompilationInformationData compilationData = (CompilationInformationData) dataAccessService.getLastDataObject(compilationObj); MemoryInformationData memoryData = (MemoryInformationData) dataAccessService.getLastDataObject(memoryObj); RuntimeInformationData runtimeData = (RuntimeInformationData) dataAccessService.getLastDataObject(runtimeObj); ThreadInformationData threadData = (ThreadInformationData) dataAccessService.getLastDataObject(threadObj); updateLabels(classLoadingData, cpuData, compilationData, memoryData, runtimeData, threadData); }
/** * {@inheritDoc} */ @Override public void doRefresh() { final ClassLoadingInformationData data = (ClassLoadingInformationData) dataAccessService.getLastDataObject(classLoadingObj); if (null != data) { SafeExecutor.asyncExec(new Runnable() { @Override public void run() { // updates the labels int count = data.getCount(); loadedClassCount.setText(NumberFormatter.formatInteger(data.getTotalLoadedClassCount() / count)); totalLoadedClassCount.setText(NumberFormatter.formatLong(data.getTotalTotalLoadedClassCount() / count)); unloadedClassCount.setText(NumberFormatter.formatLong(data.getTotalUnloadedClassCount() / count)); } }, loadedClassCount, totalLoadedClassCount, unloadedClassCount); } }
/** * {@inheritDoc} */ @Override public void doRefresh() { final ThreadInformationData data = (ThreadInformationData) dataAccessService.getLastDataObject(threadObj); if (null != data) { SafeExecutor.asyncExec(new Runnable() { @Override public void run() { // updates the labels int count = data.getCount(); liveThreadCount.setText(NumberFormatter.formatInteger(data.getTotalThreadCount() / count)); daemonThreadCount.setText(NumberFormatter.formatInteger(data.getTotalDaemonThreadCount() / count)); totalStartedThreadCount.setText(NumberFormatter.formatLong(data.getTotalTotalStartedThreadCount() / count)); peakThreadCount.setText(NumberFormatter.formatInteger(data.getTotalPeakThreadCount() / count)); } }, liveThreadCount, daemonThreadCount, totalStartedThreadCount, peakThreadCount); } }
/** * {@inheritDoc} */ @Override public void doRefresh() { final CpuInformationData data = (CpuInformationData) dataAccessService.getLastDataObject(cpuObj); if (null != data) { SafeExecutor.asyncExec(new Runnable() { @Override public void run() { int count = data.getCount(); if (data.getTotalCpuUsage() > 0) { cpuUsage.setText(NumberFormatter.formatCpuPercent(data.getTotalCpuUsage() / count)); } else { cpuUsage.setText(NOT_AVAILABLE); } if (data.getProcessCpuTime() > 0) { processCpuTime.setText(NumberFormatter.formatNanosToSeconds(data.getProcessCpuTime())); } else { processCpuTime.setText(NOT_AVAILABLE); } } }, cpuUsage, processCpuTime); } }
final MemoryInformationData data = (MemoryInformationData) dataAccessService.getLastDataObject(memoryObj);
addSection(parent, toolkit, SECTION_MEMORY); SystemInformationData systemData = (SystemInformationData) dataAccessService.getLastDataObject(systemObj); if (systemData != null) {
rangeAxis.setRangeType(RangeType.POSITIVE); SystemInformationData systemData = (SystemInformationData) dataAccessService.getLastDataObject(systemTemplate);
rangeAxis.setRangeType(RangeType.POSITIVE); SystemInformationData systemData = (SystemInformationData) dataAccessService.getLastDataObject(systemTemplate);
SystemInformationData data = (SystemInformationData) dataAccessService.getLastDataObject(systemObj); int minTitleColumnWidth = 170; int minInformationColumnWidth = 230;