public interface ResourceManager extends SagaObject, Async
NO_WAIT, WAIT_FOREVER
Modifier and Type | Method and Description |
---|---|
Compute |
acquireCompute(ComputeDescription description)
Acquire compute resource matching from requirements
|
Compute |
acquireCompute(String id)
Return resource handle for some known compute resource.
|
Task<ResourceManager,Compute> |
acquireCompute(TaskMode mode,
ComputeDescription description)
Creates a task that acquires compute resource matching from requirements.
|
Task<ResourceManager,Compute> |
acquireCompute(TaskMode mode,
String id)
Creates a task that returns resource handle for some known compute resource.
|
Network |
acquireNetwork(NetworkDescription description)
Acquire network resource matching from requirements
|
Network |
acquireNetwork(String id)
Return resource handle for some known network resource.
|
Task<ResourceManager,Network> |
acquireNetwork(TaskMode mode,
NetworkDescription description)
Creates a task that acquires network resource matching from requirements.
|
Task<ResourceManager,Network> |
acquireNetwork(TaskMode mode,
String id)
Creates a task that returns resource handle for some known network resource.
|
Storage |
acquireStorage(StorageDescription description)
Acquire storage resource matching from requirements
|
Storage |
acquireStorage(String id)
Return resource handle for some known storage resource.
|
Task<ResourceManager,Storage> |
acquireStorage(TaskMode mode,
StorageDescription description)
Creates a task that acquires storage resource matching from requirements.
|
Task<ResourceManager,Storage> |
acquireStorage(TaskMode mode,
String id)
Creates a task that returns resource handle for some known storage resource.
|
ResourceDescription |
getTemplate(String id)
Human readable description of template
|
Task<ResourceManager,ResourceDescription> |
getTemplate(TaskMode mode,
String id)
Creates a task that returns human readable description of template.
|
Task<ResourceManager,List<String>> |
listResources(TaskMode mode,
Type type)
Creates a task that obtains the list of pilot/vm/ar (etc.) instances
that are currently known to the resource manager.
|
List<String> |
listResources(Type type)
Obtains the list of pilot/vm/ar (etc.) instances that are currently
known to the resource manager.
|
Task<ResourceManager,List<String>> |
listTemplates(TaskMode mode,
Type type)
Creates a task that obtains the list of available templates.
|
List<String> |
listTemplates(Type type)
List available templates.
|
void |
releaseCompute(String id)
Close compute resource, even if it is not drained.
|
void |
releaseCompute(String id,
boolean drain)
Close compute resource
|
Task<ResourceManager,Void> |
releaseCompute(TaskMode mode,
String id)
Creates a task that closes compute resource, even if it is not drained.
|
Task<ResourceManager,Void> |
releaseCompute(TaskMode mode,
String id,
boolean drain)
Creates a task that closes compute resource.
|
void |
releaseNetwork(String id)
Close network resource
|
Task<ResourceManager,Void> |
releaseNetwork(TaskMode mode,
String id)
Creates a task that closes network resource.
|
void |
releaseStorage(String id)
Close storage resource
|
Task<ResourceManager,Void> |
releaseStorage(TaskMode mode,
String id)
Creates a task that closes storage resource.
|
clone, getId, getSession
List<String> listResources(Type type) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, TimeoutException, NoSuccessException
type
- the resource type (default = any)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.List<String> listTemplates(Type type) throws NotImplementedException, TimeoutException, NoSuccessException
type
- the resource type (default = any)NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.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.ResourceDescription getTemplate(String id) throws NotImplementedException, BadParameterException, DoesNotExistException, TimeoutException, NoSuccessException
id
- the template identifierNotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.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 manager cannot parse the template id.DoesNotExistException
- is thrown when the resource manager can handle the template id,
but the referenced template is not found.Compute acquireCompute(ComputeDescription description) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, TimeoutException, NoSuccessException
description
- the 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.Compute acquireCompute(String id) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, DoesNotExistException, TimeoutException, NoSuccessException
id
- the resource identifier (can also be an old fashioned JobService URL)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.BadParameterException
- is thrown when the resource manager cannot parse the resource id.DoesNotExistException
- is thrown when the resource manager can handle the resource id,
but the referenced resource is not alive.void releaseCompute(String id) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, DoesNotExistException, TimeoutException, NoSuccessException, IncorrectStateException
id
- the resource identifierNotImplementedException
- 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 manager cannot parse the resource id.DoesNotExistException
- is thrown when the resource manager can handle the resource id,
but the referenced resource is not alive.IncorrectStateException
void releaseCompute(String id, boolean drain) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, DoesNotExistException, TimeoutException, NoSuccessException, IncorrectStateException
id
- the resource identifierdrain
- true if the resource must be drained, else falseNotImplementedException
- 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 manager cannot parse the resource id.DoesNotExistException
- is thrown when the resource manager can handle the resource id,
but the referenced resource is not alive.IncorrectStateException
Network acquireNetwork(NetworkDescription description) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, TimeoutException, NoSuccessException
description
- the 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.Network acquireNetwork(String id) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, DoesNotExistException, TimeoutException, NoSuccessException
id
- the resource identifierNotImplementedException
- 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 manager cannot parse the resource id.DoesNotExistException
- is thrown when the resource manager can handle the resource id,
but the referenced resource is not alive.void releaseNetwork(String id) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, DoesNotExistException, TimeoutException, NoSuccessException, IncorrectStateException
id
- the resource identifierNotImplementedException
- 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 manager cannot parse the resource id.DoesNotExistException
- is thrown when the resource manager can handle the resource id,
but the referenced resource is not alive.IncorrectStateException
Storage acquireStorage(StorageDescription description) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, TimeoutException, NoSuccessException
description
- the 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.Storage acquireStorage(String id) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, DoesNotExistException, TimeoutException, NoSuccessException
id
- the resource identifierNotImplementedException
- 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 manager cannot parse the resource id.DoesNotExistException
- is thrown when the resource manager can handle the resource id,
but the referenced resource is not alive.void releaseStorage(String id) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, BadParameterException, DoesNotExistException, TimeoutException, NoSuccessException, IncorrectStateException
id
- the resource identifierNotImplementedException
- 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 manager cannot parse the resource id.DoesNotExistException
- is thrown when the resource manager can handle the resource id,
but the referenced resource is not alive.IncorrectStateException
Task<ResourceManager,List<String>> listResources(TaskMode mode, Type type) throws NotImplementedException
mode
- the task mode.type
- the resource type (default = any)NotImplementedException
- is thrown when the task version of this method is not implemented.Task<ResourceManager,List<String>> listTemplates(TaskMode mode, Type type) throws NotImplementedException
mode
- the task mode.type
- the resource type (default = any)NotImplementedException
- is thrown when the task version of this method is not implemented.Task<ResourceManager,ResourceDescription> getTemplate(TaskMode mode, String id) throws NotImplementedException
mode
- the task mode.id
- the template identifierNotImplementedException
- is thrown when the task version of this method is not implemented.Task<ResourceManager,Compute> acquireCompute(TaskMode mode, ComputeDescription description) throws NotImplementedException
mode
- the task mode.description
- the resource description.NotImplementedException
- is thrown when the task version of this method is not implemented.Task<ResourceManager,Compute> acquireCompute(TaskMode mode, String id) throws NotImplementedException
mode
- the task mode.id
- the resource identifier (can also be an old fashioned JobService URL).NotImplementedException
- is thrown when the task version of this method is not implemented.Task<ResourceManager,Void> releaseCompute(TaskMode mode, String id) throws NotImplementedException
mode
- the task mode.id
- the resource identifier.NotImplementedException
- is thrown when the task version of this method is not implemented.Task<ResourceManager,Void> releaseCompute(TaskMode mode, String id, boolean drain) throws NotImplementedException
mode
- the task mode.id
- the resource identifier.drain
- true if the resource must be drained, else falseNotImplementedException
- is thrown when the task version of this method is not implemented.Task<ResourceManager,Network> acquireNetwork(TaskMode mode, NetworkDescription description) throws NotImplementedException
mode
- the task mode.description
- the resource descriptionNotImplementedException
Task<ResourceManager,Network> acquireNetwork(TaskMode mode, String id) throws NotImplementedException
mode
- the task mode.id
- the resource identifierNotImplementedException
Task<ResourceManager,Void> releaseNetwork(TaskMode mode, String id) throws NotImplementedException
mode
- the task mode.id
- the resource identifierNotImplementedException
Task<ResourceManager,Storage> acquireStorage(TaskMode mode, StorageDescription description) throws NotImplementedException
mode
- the task mode.description
- the resource descriptionNotImplementedException
Task<ResourceManager,Storage> acquireStorage(TaskMode mode, String id) throws NotImplementedException
mode
- the task mode.id
- the resource identifierNotImplementedException
Task<ResourceManager,Void> releaseStorage(TaskMode mode, String id) throws NotImplementedException
mode
- the task mode.id
- the resource identifierNotImplementedException
Copyright © 2016 Open Grid Forum. All rights reserved.