Activity - deliverFromFile

Activity Type: Delivery

Description

Retrieve data from a file on the container's local filesystem.

Example

<deliverFromFile name="retrieval">
  <fromFile blockSizeInBytes="1024">c:/temp/file.ext</fromFile>
  <toLocal name="dataSink"/>
</deliverFromFile>

Specification

Element deliverFromFile:

Warning to Service Deployers

This activity can be used by clients to potentially access any file on your server. This activity is provided for developing and testing OGSA-DAI applications.

If you intend to use files as data resources then you should support access and manipulation of these only via the file activities.

Warning to Service Users

If the attribute blockSizeInBytes is not specified then the entire contents of the file is retrieved into memory - this may cause the server's Java Virtual Machine to run out of memory.

XML Schema

OGSA-DAI/schema/ogsadai/xsd/activities/deliver_from_file.xsd

Implementation

OGSA-DAI/src/java/activities/uk/org/ogsadai/activity/delivery/DeliverFromFileActivity.java