public interface Resource<R,RD> extends ResourceTask, Async, AsyncAttributes<R>
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS
Attribute name: list of access URLs
|
static String |
MANAGER_ID
Attribute name: URL representation of the resource manager
|
static String |
RESOURCE_DESCRIPTION
Attribute name: human readable description of the resource
|
static String |
RESOURCE_ID
Attribute name: SAGA representation of the resource identifier
|
static String |
RESOURCE_TYPE
Attribute name: the resource type
|
RESOURCE_STATE, RESOURCE_STATEDETAIL
NO_WAIT, WAIT_FOREVER
Modifier and Type | Method and Description |
---|---|
String[] |
getAccess() |
RD |
getDescription()
Retrieves the resource description that was used to create this resource instance.
|
ResourceManager |
getManager() |
Type |
getType() |
void |
reconfigure(RD description)
Reconfigure
|
void |
release()
Release resource
|
getState, waitFor, waitFor, waitFor, waitFor
clone, getId, getSession
addCallback, getMetric, listMetrics, removeCallback
existsAttribute, findAttributes, getAttribute, getVectorAttribute, isReadOnlyAttribute, isRemovableAttribute, isVectorAttribute, isWritableAttribute, listAttributes, removeAttribute, setAttribute, setVectorAttribute
existsAttribute, findAttributes, getAttribute, getVectorAttribute, isReadOnlyAttribute, isRemovableAttribute, isVectorAttribute, isWritableAttribute, listAttributes, removeAttribute, setAttribute, setVectorAttribute
static final String RESOURCE_TYPE
static final String RESOURCE_ID
static final String MANAGER_ID
static final String ACCESS
static final String RESOURCE_DESCRIPTION
Type getType() throws NotImplementedException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.ResourceManager getManager() throws NotImplementedException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.String[] getAccess() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, TimeoutException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.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.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.RD getDescription() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, DoesNotExistException, TimeoutException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.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.DoesNotExistException
- is thrown in cases where the resource description is not available,
for instance when the resource was not created through SAGA and the
resource was obtained using the ResourceManager.acquire() call.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.void reconfigure(RD description) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, TimeoutException, NoSuccessException
description
- the new resource descriptionNotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.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.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.BadParameterException
- is thrown when the resource description contains invalid values.void release() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, DoesNotExistException, TimeoutException, IncorrectStateException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.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.NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.IncorrectStateException
- is thrown when the resource is in such a state that it cannot be releasedDoesNotExistException
- is thrown when the resource is not alive.Copyright © 2016 Open Grid Forum. All rights reserved.