org.gridbus.broker.util
Class FileResolver

java.lang.Object
  extended by org.gridbus.broker.util.FileResolver
Direct Known Subclasses:
GsiftpFileResolver, LfnFileResolver, SrbFileResolver

public abstract class FileResolver
extends java.lang.Object

Abtract class for FileResolver types

Author:
Ding Choon Hoong (chd@students.cs.mu.oz.au)

Constructor Summary
FileResolver()
           
 
Method Summary
 void extractFiles()
          Extracts the physical locations of the files from the logical file names This method is to be implemented by different file-resolver subclass types
abstract  void extractFiles(java.lang.String dataFilter)
          Extracts the physical locations of the files from the logical file names This method is to be implemented by different file-resolver subclass types
 java.util.Collection getDatafiles()
           
 java.util.Hashtable getDatahosts()
           
 int getLimit()
          Returns the upper limit of the # of files returned by the query
 void setDataFilter(java.lang.String dataFilter)
           
 void setLimit(int fileLimit)
          Limits the number of query results
 void setLimit(java.lang.Integer fileLimit)
          Limits the number of query results
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResolver

public FileResolver()
Method Detail

extractFiles

public void extractFiles()
                  throws java.lang.Exception
Extracts the physical locations of the files from the logical file names This method is to be implemented by different file-resolver subclass types

Throws:
java.lang.Exception

extractFiles

public abstract void extractFiles(java.lang.String dataFilter)
                           throws java.lang.Exception
Extracts the physical locations of the files from the logical file names This method is to be implemented by different file-resolver subclass types

Parameters:
dataFilter -
Throws:
java.lang.Exception

setLimit

public void setLimit(java.lang.Integer fileLimit)
Limits the number of query results

Parameters:
fileLimit -

setLimit

public void setLimit(int fileLimit)
Limits the number of query results

Parameters:
fileLimit -

getLimit

public int getLimit()
Returns the upper limit of the # of files returned by the query

Returns:

getDatafiles

public java.util.Collection getDatafiles()
Returns:
Returns the datafiles.

getDatahosts

public java.util.Hashtable getDatahosts()
Returns:
Returns the datahosts.

setDataFilter

public void setDataFilter(java.lang.String dataFilter)
Parameters:
dataFilter - The dataFilter to set.