public class VmCpuStatPrintDelegate extends Object implements VMStatPrintDelegate
ORDER_CPU_GROUP, ORDER_DEFAULT_GROUP, ORDER_IO_GROUP, ORDER_MEMORY_GROUP, ORDER_NETWORK_GROUP, ORDER_THREAD_GROUP, ORDER_USER_GROUP
Constructor and Description |
---|
VmCpuStatPrintDelegate(VmCpuStatDAO cpuStatDAO) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getHeaders(TimeStampedPojo stat)
Returns header names for columns this plug-in wishes to add to the
vm-stat command.
|
List<? extends TimeStampedPojo> |
getLatestStats(VmRef ref,
long timestamp)
Returns statistics gathered by this plug-in newer than the specified
time stamp.
|
int |
getOrderValue()
Defines a value to be used for assigning an order to
services.
|
List<String> |
getStatRow(TimeStampedPojo stat)
Returns a row of data for the specified statistic that corresponds to
the columns returned by
VMStatPrintDelegate.getHeaders(TimeStampedPojo) . |
public VmCpuStatPrintDelegate(VmCpuStatDAO cpuStatDAO)
public List<? extends TimeStampedPojo> getLatestStats(VmRef ref, long timestamp)
VMStatPrintDelegate
getLatestStats
in interface VMStatPrintDelegate
ref
- - the VM whose statistics to returntimestamp
- - the earliest time stamp to return statistics forpublic List<String> getHeaders(TimeStampedPojo stat)
VMStatPrintDelegate
getHeaders
in interface VMStatPrintDelegate
stat
- - the first stat returned by VMStatPrintDelegate.getLatestStats(VmRef, long)
public List<String> getStatRow(TimeStampedPojo stat)
VMStatPrintDelegate
VMStatPrintDelegate.getHeaders(TimeStampedPojo)
.getStatRow
in interface VMStatPrintDelegate
stat
- - the statistic to generate output forpublic int getOrderValue()
Ordered
Ordered.ORDER_DEFAULT_GROUP
.getOrderValue
in interface Ordered
Copyright © 2014. All rights reserved.