|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Metric
Metrics represent monitorable entities.
Field Summary | |
---|---|
static String |
DESCRIPTION
Attribute name: description of the metric (ReadOnly). |
static String |
MODE
Attribute name: access mode of the metric (ReadOnly). |
static String |
NAME
Attribute name: name of the metric (ReadOnly). |
static String |
TYPE
Attribute name: value type of the metric (ReadOnly). |
static String |
UNIT
Attribute name: unit of the metric (ReadOnly). |
static String |
VALUE
Attribute name: value of the metric (See MODE ). |
Fields inherited from interface org.ogf.saga.SagaObject |
---|
NO_WAIT, WAIT_FOREVER |
Fields inherited from interface org.ogf.saga.attributes.Attributes |
---|
BOOL, ENUM, FALSE, FLOAT, INT, STRING, TIME, TRIGGER, TRUE |
Method Summary | |
---|---|
int |
addCallback(Callback cb)
Adds the specified callback to the metric. |
void |
fire()
Pushes a new metric value to the backend. |
void |
removeCallback(int cookie)
Removes a callback from the metric. |
Methods inherited from interface org.ogf.saga.SagaObject |
---|
clone, getId, getSession |
Methods inherited from interface org.ogf.saga.attributes.Attributes |
---|
existsAttribute, findAttributes, getAttribute, getVectorAttribute, isReadOnlyAttribute, isRemovableAttribute, isVectorAttribute, isWritableAttribute, listAttributes, removeAttribute, setAttribute, setVectorAttribute |
Field Detail |
---|
static final String NAME
static final String DESCRIPTION
static final String MODE
static final String UNIT
static final String TYPE
static final String VALUE
MODE
).
Method Detail |
---|
int addCallback(Callback cb) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, IncorrectStateException, TimeoutException, NoSuccessException
cb
- the callback to add.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
IncorrectStateException
- is thrown if the metric is "Final".
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.void removeCallback(int cookie) throws NotImplementedException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
cookie
- the cookie that identifies the metric.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified cookie does not refer to an
installed callback.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.void fire() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, IncorrectStateException, TimeoutException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
IncorrectStateException
- is thrown when the metric is "Final".
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |