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)
VMStatPrintDelegategetLatestStats in interface VMStatPrintDelegateref - - the VM whose statistics to returntimestamp - - the earliest time stamp to return statistics forpublic List<String> getHeaders(TimeStampedPojo stat)
VMStatPrintDelegategetHeaders in interface VMStatPrintDelegatestat - - the first stat returned by VMStatPrintDelegate.getLatestStats(VmRef, long)public List<String> getStatRow(TimeStampedPojo stat)
VMStatPrintDelegateVMStatPrintDelegate.getHeaders(TimeStampedPojo).getStatRow in interface VMStatPrintDelegatestat - - the statistic to generate output forpublic int getOrderValue()
OrderedOrdered.ORDER_DEFAULT_GROUP.getOrderValue in interface OrderedCopyright © 2013. All Rights Reserved.