public interface AsyncMonitorable<T> extends Monitorable
Monitorable
interface. Needed for streams.Modifier and Type | Method and Description |
---|---|
Task<T,Integer> |
addCallback(TaskMode mode,
String name,
Callback cb)
Creates a task that adds a callback to the specified metric.
|
Task<T,Metric> |
getMetric(TaskMode mode,
String name)
Creates a task that obtains a metric instance, identified by name.
|
Task<T,String[]> |
listMetrics(TaskMode mode)
Creates a task that lists all metrics associated with the object.
|
Task<T,Void> |
removeCallback(TaskMode mode,
String name,
int cookie)
Creates a task that removes the specified callback.
|
addCallback, getMetric, listMetrics, removeCallback
Task<T,String[]> listMetrics(TaskMode mode) throws NotImplementedException
mode
- the task mode.NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<T,Metric> getMetric(TaskMode mode, String name) throws NotImplementedException
mode
- the task mode.name
- the name of the metric to be returned.NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<T,Integer> addCallback(TaskMode mode, String name, Callback cb) throws NotImplementedException
mode
- the task mode.name
- identifier the metric to which the callback is to be added.cb
- the callback to be added.NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<T,Void> removeCallback(TaskMode mode, String name, int cookie) throws NotImplementedException
mode
- the task mode.name
- identifier the metric from which the callback is to be
removed.cookie
- identifies the callback to be removed.NotImplementedException
- is thrown when the task version of this method is not
implemented.Copyright © 2016 Open Grid Forum. All rights reserved.