Modifier and Type | Method and Description |
---|---|
Task<T,Boolean> |
addMetric(TaskMode mode,
Metric metric)
Creates a task that adds a metric instance to the application instance.
|
Task<T,Void> |
fireMetric(TaskMode mode,
String name)
Creates a task that pushes a new metric value to the backend.
|
Task<T,Void> |
removeMetric(TaskMode mode,
String name)
Creates a task that removes a metric instance.
|
addMetric, fireMetric, removeMetric
Task<T,Boolean> addMetric(TaskMode mode, Metric metric) throws NotImplementedException
mode
- the task mode.metric
- the metric instance to be added.NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<T,Void> removeMetric(TaskMode mode, String name) throws NotImplementedException
mode
- the task mode.name
- the name of the metric to be removed.NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<T,Void> fireMetric(TaskMode mode, String name) throws NotImplementedException
mode
- the task mode.name
- the name of the metric to be fired.NotImplementedException
- is thrown when the task version of this method is not
implemented.Copyright © 2016 Open Grid Forum. All rights reserved.