Console.error(Console.MESSAGES.failed("JVM Status ")+serverName, caught.getMessage());
}
@Override
public void onSuccess(CompositeVMMetric result) {
getView().setHeap(new Metric(
result.getHeap().getMax(),
result.getHeap().getUsed(),
result.getHeap().getCommitted(),
result.getHeap().getInit()
));
getView().setNonHeap(new Metric(
result.getNonHeap().getMax(),
result.getNonHeap().getUsed(),
result.getNonHeap().getCommitted(),
result.getNonHeap().getInit()
));
getView().setOSMetric(result.getOs());
getView().setRuntimeMetric(result.getRuntime());
getView().setThreads(
new Metric(
result.getThreads().getCount(),
result.getThreads().getDaemonCount()
)
);
}