public class AdaptorGridResources extends Object implements IAdaptorResources
AttachedGridResource instances that are to be supplied
to an WorkflowGridAdaptor. The resources that are provided must comply to some restrictions. These are:
- There must be exactly one resource of type AttachedGridResource.ResourceType.JDL. In subsequent
versions there will be an option available to submit more JDL files that will be submitted with the "collection"
attribute
- There can be at most 1 resource of type AttachedGridResource.ResourceType.Config
- There must be exactly one resource of type AttachedGridResource.ResourceType.UserProxy| Modifier and Type | Field and Description |
|---|---|
Set<AttachedGridResource> |
Resources
The contained Resources
|
| Constructor and Description |
|---|
AdaptorGridResources() |
| Modifier and Type | Method and Description |
|---|---|
AttachedGridResource |
GetConfigResource()
Gets the config resource.
|
Set<AttachedGridResource> |
GetInDataResources()
Gets the in data resources.
|
AttachedGridResource |
GetJDLResource()
Gets the JDL resource.
|
Set<AttachedGridResource> |
GetOutDataResources()
Gets the out data resources.
|
AttachedGridResource |
GetResource(String ResourceKey)
Retrieves the resource with the provided key
|
AttachedGridResource |
GetScopeResource() |
AttachedGridResource |
GetUserProxyResource()
Gets the user proxy resource.
|
boolean |
ResourceExists(String ResourceKey)
Checks if a resource exists.
|
void |
StoreResources(Set<AttachedGridResource.ResourceType> ResourcesToStore,
gr.uoa.di.madgik.environment.hint.EnvHintCollection Hints)
Stores the resource in the storage system
|
void |
Validate()
Validate that the provided resources are the ones that must be present
|
public Set<AttachedGridResource> Resources
public void Validate()
throws WorkflowValidationException
WorkflowValidationException - A validation error occurredpublic boolean ResourceExists(String ResourceKey)
ResourceKey - the resource keypublic AttachedGridResource GetResource(String ResourceKey)
ResourceKey - the resource keypublic void StoreResources(Set<AttachedGridResource.ResourceType> ResourcesToStore, gr.uoa.di.madgik.environment.hint.EnvHintCollection Hints) throws Exception
ResourcesToStore - the resources to storeException - the exceptionpublic AttachedGridResource GetScopeResource()
public AttachedGridResource GetJDLResource()
public AttachedGridResource GetConfigResource()
public AttachedGridResource GetUserProxyResource()
public Set<AttachedGridResource> GetInDataResources()
public Set<AttachedGridResource> GetOutDataResources()
Copyright © 2014. All Rights Reserved.