public abstract class MonitoringFactory extends Object
Constructor and Description |
---|
MonitoringFactory() |
Modifier and Type | Method and Description |
---|---|
static Metric |
createMetric(String name,
String desc,
String mode,
String unit,
String type,
String value)
Constructs a
Metric object with the specified parameters. |
static Metric |
createMetric(String sagaFactoryClassname,
String name,
String desc,
String mode,
String unit,
String type,
String value)
Constructs a
Metric object with the specified parameters. |
protected abstract Metric |
doCreateMetric(String name,
String desc,
String mode,
String unit,
String type,
String value)
Constructs a
Metric object with the specified parameters. |
protected abstract Metric doCreateMetric(String name, String desc, String mode, String unit, String type, String value) throws NotImplementedException, BadParameterException, TimeoutException, NoSuccessException
Metric
object with the specified parameters.
This method is to be provided by the factory.name
- name of the metric.desc
- description of the metric.mode
- mode of the metric.unit
- unit of the metric value.type
- type of the metric.value
- value of the metric.NotImplementedException
BadParameterException
TimeoutException
NoSuccessException
public static Metric createMetric(String name, String desc, String mode, String unit, String type, String value) throws NotImplementedException, BadParameterException, TimeoutException, NoSuccessException
Metric
object with the specified parameters.name
- name of the metric.desc
- description of the metric.mode
- mode of the metric.unit
- unit of the metric value.type
- type of the metric.value
- value of the metric.NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.BadParameterException
- is thrown on incorrectly formatted 'value' parameter, invalid 'mode'
or 'type' parameter, and empty required parameter (all but 'unit').NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.public static Metric createMetric(String sagaFactoryClassname, String name, String desc, String mode, String unit, String type, String value) throws NotImplementedException, BadParameterException, TimeoutException, NoSuccessException
Metric
object with the specified parameters.sagaFactoryClassname
- the class name of the Saga factory to be used.name
- name of the metric.desc
- description of the metric.mode
- mode of the metric.unit
- unit of the metric value.type
- type of the metric.value
- value of the metric.NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.BadParameterException
- is thrown on incorrectly formatted 'value' parameter, invalid 'mode'
or 'type' parameter, and empty required parameter (all but 'unit').NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Copyright © 2016 Open Grid Forum. All rights reserved.