Groovy Documentation

com.ace.mws.plugins
[Java] Class PluginConstants

java.lang.Object
  com.ace.mws.plugins.PluginConstants

public class PluginConstants
extends Object

This class contains constant values that can be used for reporting resources (i.e. any field that starts with "RESOURCE_" or "METRIC") and custom web services (i.e. WEB_SERVICES_METHOD.

Authors:
bsaville


Field Summary
static List KNOWN_METRICS

A list of known metric names.

static List KNOWN_RESOURCES

A list of known resource names.

static String LOGGER_PREFIX

The prefix (including the period) used for all loggers configured for plugin types and translators.

static String METRIC_CPULOAD

The CPU load metric name.

static String METRIC_CPU_UTILIZATION

The CPU utilization metric name.

static String METRIC_SPEED

The CPU speed metric name.

static String METRIC_VM_COUNT

The VM count metric name.

static String RESOURCE_DISK

The disk resource name.

static String RESOURCE_MEMORY

The memory resource name.

static String RESOURCE_PROCESSORS

The processors resource name.

static String RESOURCE_SWAP

The swap memory resource name.

static SimpleDateFormat STANDARD_DATE_FORMAT

The standard date format to be used when communicating with Moab Web Services.

private static String STANDARD_DATE_FORMAT_STRING

The standard date format String to be used when communicating with Moab Web Services.

static String WEB_SERVICES_METHOD

The key to the map entry for the single custom web services' argument containing the current HTTP method.

 
Constructor Summary
PluginConstants()

 
Method Summary
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

KNOWN_METRICS

public static final List KNOWN_METRICS
A list of known metric names. Other resources in the "metrics" map entries are considered to be generic metrics in Moab Workload Manager.
See Also:
NodeReport.metrics
VirtualMachineReport.metrics


KNOWN_RESOURCES

public static final List KNOWN_RESOURCES
A list of known resource names. Other resources in the ReportResourceMap entries are considered to be generic resources in Moab Workload Manager.
See Also:
NodeReport.resources
VirtualMachineReport.resources
JobReportRequirement.resourcesPerTask


LOGGER_PREFIX

public static final String LOGGER_PREFIX
The prefix (including the period) used for all loggers configured for plugin types and translators. This should be used in custom component loggers to match the generated logger names.

NOTE: The period (.) is appended to the end of this string. i.e. Log log = LogFactory.getLog(LOGGER_PREFIX+test.MyClass.name) will result in a logger called "plugins.test.MyClass".


METRIC_CPULOAD

public static final String METRIC_CPULOAD
The CPU load metric name.
See Also:
NodeReport.metrics
VirtualMachineReport.metrics


METRIC_CPU_UTILIZATION

public static final String METRIC_CPU_UTILIZATION
The CPU utilization metric name. While this is reported as a "generic" metric to MWM, this is provided as a standard to use.


METRIC_SPEED

public static final String METRIC_SPEED
The CPU speed metric name.
See Also:
NodeReport.metrics
VirtualMachineReport.metrics


METRIC_VM_COUNT

public static final String METRIC_VM_COUNT
The VM count metric name. While this is reported as a "generic" metric to MWM, this is provided as a standard to use.


RESOURCE_DISK

public static final String RESOURCE_DISK
The disk resource name.
See Also:
NodeReport.resources
VirtualMachineReport.resources
JobReportRequirement.resourcesPerTask


RESOURCE_MEMORY

public static final String RESOURCE_MEMORY
The memory resource name.
See Also:
NodeReport.resources
VirtualMachineReport.resources
JobReportRequirement.resourcesPerTask


RESOURCE_PROCESSORS

public static final String RESOURCE_PROCESSORS
The processors resource name.
See Also:
NodeReport.resources
VirtualMachineReport.resources
JobReportRequirement.resourcesPerTask


RESOURCE_SWAP

public static final String RESOURCE_SWAP
The swap memory resource name.
See Also:
NodeReport.resources
VirtualMachineReport.resources
JobReportRequirement.resourcesPerTask


STANDARD_DATE_FORMAT

public static final SimpleDateFormat STANDARD_DATE_FORMAT
The standard date format to be used when communicating with Moab Web Services. This may be used to parse out dates from requests in custom web services.

Date date = STANDARD_DATE_FORMAT.parse("2012-01-01 23:11:24 MDT")


STANDARD_DATE_FORMAT_STRING

private static final String STANDARD_DATE_FORMAT_STRING
The standard date format String to be used when communicating with Moab Web Services. This may be used to parse out dates from requests in custom web services.


WEB_SERVICES_METHOD

public static final String WEB_SERVICES_METHOD
The key to the map entry for the single custom web services' argument containing the current HTTP method. The value is a string such as GET, POST, PUT, or DELETE.


 
Constructor Detail

PluginConstants

PluginConstants()


 

Groovy Documentation