org.ogf.saga.monitoring
Interface AsyncSteerable<T>

All Superinterfaces:
Steerable
All Known Subinterfaces:
JobSelf

public interface AsyncSteerable<T>
extends Steerable

This interface specifies the Async versions of the methods in Steerable. Needed for job.JobSelf.


Method Summary
 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.
 
Methods inherited from interface org.ogf.saga.monitoring.Steerable
addMetric, fireMetric, removeMetric
 

Method Detail

addMetric

Task<T,Boolean> addMetric(TaskMode mode,
                          Metric metric)
                          throws NotImplementedException
Creates a task that adds a metric instance to the application instance.

Parameters:
mode - the task mode.
metric - the metric instance to be added.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.

removeMetric

Task<T,Void> removeMetric(TaskMode mode,
                          String name)
                          throws NotImplementedException
Creates a task that removes a metric instance.

Parameters:
mode - the task mode.
name - the name of the metric to be removed.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.

fireMetric

Task<T,Void> fireMetric(TaskMode mode,
                        String name)
                        throws NotImplementedException
Creates a task that pushes a new metric value to the backend.

Parameters:
mode - the task mode.
name - the name of the metric to be fired.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.


Copyright © 2014 Open Grid Forum. All rights reserved.