org.globus.cog.abstraction.interfaces
Interface FileOperationSpecification

All Superinterfaces:
Specification
All Known Implementing Classes:
FileOperationSpecificationImpl

public interface FileOperationSpecification
extends Specification

Specification document for performing a file operation task


Field Summary
static String CD
          Changes the current working directory
static String CHMOD
          Changes the file permissions of a remote file
static String EXISTS
          Indicates whether a file with a given name exists
static String GETDIR
          Transfers the entire directory from the remote resource to the local machine
static String GETFILE
          Transfers the file from the remote resource to the local machine
static String ISDIRECTORY
          Indicated whether a file with the given name is a directory on the remote resource
static String LS
          Lists all the files in the current working directory
static String MGET
          Transfers multiple files from the remote resource to the local machine
static String MKDIR
          Creates a new directory on the remote resource
static String MPUT
          Transfers multiple files from the local machine to the remote resource
static String PUTDIR
          Transfers the entire directory from the local machine to the remote resource
static String PUTFILE
          Transfers the file from the local machine to the remote resource
static String PWD
          Gets the present working directory on the remote resource
static String RENAME
          Renames a file on the remote resource
static String RMDIR
          Deletes the directory on the remote resource
static String RMFILE
          Deletes the file on the remote resource
static String START
          Initializes and starts the remote FileResource
static String STOP
          Stops the remote FileResource
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.Specification
FILE_OPERATION, FILE_TRANSFER, JOB_SUBMISSION
 
Method Summary
 int addArgument(String argument)
          Adds an argument for the file operation at the tail of the ordered list of arguments.
 Enumeration getAllAttributes()
          Returns all the attributes
 String getArgument(int n)
          Returns the nth argument for the file operation
 Collection getArguments()
          Returns all the arguments for the file operation
 int getArgumentSize()
          Returns the number of arguments
 Object getAttribute(String name)
          Get attribute value accociated with the given attribute name
 String getOperation()
          Returns the file operation for this specification
 void setArgument(String arguments, int index)
          Sets the arguments for the file operation associated with this specification at the given index.
 void setAttribute(String name, Object value)
          Sets any additional information through attributes
 void setOperation(String operation)
          Sets the operation to be executed on the remote file resource.
 
Methods inherited from interface org.globus.cog.abstraction.interfaces.Specification
getSpecification, getType, setSpecification, setType
 

Field Detail

START

public static final String START
Initializes and starts the remote FileResource

See Also:
Constant Field Values

STOP

public static final String STOP
Stops the remote FileResource

See Also:
Constant Field Values

PWD

public static final String PWD
Gets the present working directory on the remote resource

See Also:
Constant Field Values

CD

public static final String CD
Changes the current working directory

See Also:
Constant Field Values

LS

public static final String LS
Lists all the files in the current working directory

See Also:
Constant Field Values

MKDIR

public static final String MKDIR
Creates a new directory on the remote resource

See Also:
Constant Field Values

RMDIR

public static final String RMDIR
Deletes the directory on the remote resource

See Also:
Constant Field Values

RMFILE

public static final String RMFILE
Deletes the file on the remote resource

See Also:
Constant Field Values

GETFILE

public static final String GETFILE
Transfers the file from the remote resource to the local machine

See Also:
Constant Field Values

PUTFILE

public static final String PUTFILE
Transfers the file from the local machine to the remote resource

See Also:
Constant Field Values

GETDIR

public static final String GETDIR
Transfers the entire directory from the remote resource to the local machine

See Also:
Constant Field Values

PUTDIR

public static final String PUTDIR
Transfers the entire directory from the local machine to the remote resource

See Also:
Constant Field Values

MGET

public static final String MGET
Transfers multiple files from the remote resource to the local machine

See Also:
Constant Field Values

MPUT

public static final String MPUT
Transfers multiple files from the local machine to the remote resource

See Also:
Constant Field Values

RENAME

public static final String RENAME
Renames a file on the remote resource

See Also:
Constant Field Values

CHMOD

public static final String CHMOD
Changes the file permissions of a remote file

See Also:
Constant Field Values

EXISTS

public static final String EXISTS
Indicates whether a file with a given name exists

See Also:
Constant Field Values

ISDIRECTORY

public static final String ISDIRECTORY
Indicated whether a file with the given name is a directory on the remote resource

See Also:
Constant Field Values
Method Detail

setOperation

public void setOperation(String operation)
Sets the operation to be executed on the remote file resource. Valid operations include START, STOP, PWD, CD, LS, MKDIR, RMDIR, RMFILE, GETFILE, PUTFILE, GETDIR, PUTDIR, MGET, MPUT, RENAME, CHMOD, EXISTS, ISDIRECTORY


getOperation

public String getOperation()
Returns the file operation for this specification


setArgument

public void setArgument(String arguments,
                        int index)
Sets the arguments for the file operation associated with this specification at the given index.


addArgument

public int addArgument(String argument)
Adds an argument for the file operation at the tail of the ordered list of arguments.


getArguments

public Collection getArguments()
Returns all the arguments for the file operation


getArgument

public String getArgument(int n)
Returns the nth argument for the file operation


getArgumentSize

public int getArgumentSize()
Returns the number of arguments


setAttribute

public void setAttribute(String name,
                         Object value)
Sets any additional information through attributes


getAttribute

public Object getAttribute(String name)
Get attribute value accociated with the given attribute name


getAllAttributes

public Enumeration getAllAttributes()
Returns all the attributes