uk.org.ogsadai.client.toolkit.resource
Class ResourceFactory
java.lang.Object
uk.org.ogsadai.client.toolkit.resource.ResourceFactory
public class ResourceFactory
- extends java.lang.Object
Factory to create data sources and sinkks by submitting workflows to a DRER.
- Author:
- The OGSA-DAI Project Team.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceFactory
public ResourceFactory()
createDataSource
public static DataSourceResource createDataSource(Server server,
DataRequestExecutionResource drer)
throws ServerCommsException,
ServerException,
ResourceUnknownException,
ClientException,
RequestException,
ClientToolkitException,
ClientServerCompatibilityException,
ResourceCreationException
- Create a data source.
- Parameters:
server - Server proxy.drer - DRER proxy to which workflow to create data source is to be
sent.
- Returns:
- data source proxy.
- Throws:
ServerCommsException - If there is a problem in communicating with the server.
ServerException - If there is a problem on the server.
ResourceUnknownException - If the DRER is unknown.
ClientException - If there is a problem with the client request.
RequestException - If there is a problem with the workflow e.g. the server does
not allow data sources to be created.
ClientToolkitException - If there is a problem with the client toolkit.
ClientServerCompatibilityException - If the server is incompatible with the client toolkit.
ResourceCreationException - If the data source is created but the proxy cannot be created.
createDataSink
public static DataSinkResource createDataSink(Server server,
DataRequestExecutionResource drer)
throws ServerCommsException,
ServerException,
ResourceUnknownException,
ClientException,
RequestException,
ClientToolkitException,
ClientServerCompatibilityException,
ResourceCreationException
- Create a data sink.
- Parameters:
server - Server proxy.drer - DRER proxy to which workflow to create data sink is to be
sent.
- Returns:
- data sink proxy.
- Throws:
ServerCommsException - If there is a problem in communicating with the server.
ServerException - If there is a problem on the server.
ResourceUnknownException - If the DRER is unknown.
ClientException - If there is a problem with the client request.
RequestException - If there is a problem with the workflow e.g. the server does
not allow data sinks to be created.
ClientToolkitException - If there is a problem with the client toolkit.
ClientServerCompatibilityException - If the server is incompatible with the client toolkit.
ResourceCreationException - If the data sink is created but the proxy cannot be created.