org.gridbus.broker.util
Class FileResolver

java.lang.Object
  |
  +--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 varName, 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
static java.util.Collection getCatalogs()
           
 java.util.Collection getDataFileList()
           
static java.util.Collection getDatafiles()
           
 java.lang.String getDataFilter()
           
static java.util.Hashtable getDatahosts()
           
 java.util.Hashtable getDataHostTable()
          Returns the dataHostTable.
 int getLimit()
          Returns the upper limit of the # of files returned by the query
 java.lang.String getVarName()
           
static void setCatalogs(java.util.Collection catalogs)
          The catalog services are queried by the fileResolver.
 void setDataFileList(java.util.Collection dataFileList)
          Sets the dataFile List
static void setDatafiles(java.util.Collection datafiles)
           
 void setDataFilter(java.lang.String dataFilter)
           
static void setDatahosts(java.util.Hashtable datahosts)
           
 void setDataHostTable(java.util.Hashtable dataHostTable)
          Sets the dataHostTable.
 void setLimit(int fileLimit)
          Limits the number of query results
 void setLimit(java.lang.Integer fileLimit)
          Limits the number of query results
 void setVarName(java.lang.String varName)
           
 
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 varName,
                                  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:
varName -
dataFilter -
Throws:
java.lang.Exception

getDataFileList

public java.util.Collection getDataFileList()
Returns:
Returns the dataFileList.

getDataHostTable

public java.util.Hashtable getDataHostTable()
Returns the dataHostTable.

Returns:
the dataHostTable.

setDataHostTable

public void setDataHostTable(java.util.Hashtable dataHostTable)
Sets the dataHostTable.

Parameters:
dataHostTable - The dataHostTable to set.

setDataFileList

public void setDataFileList(java.util.Collection dataFileList)
Sets the dataFile List

Parameters:
dataFileList -

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:

getDataFilter

public java.lang.String getDataFilter()
Returns:
Returns the dataFilter.

setDataFilter

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

getVarName

public java.lang.String getVarName()
Returns:
Returns the varName.

setVarName

public void setVarName(java.lang.String varName)
Parameters:
varName - The varName to set.

getCatalogs

public static java.util.Collection getCatalogs()
Returns:
Returns the catalogs, which are queried.

setCatalogs

public static void setCatalogs(java.util.Collection catalogs)
The catalog services are queried by the fileResolver.

Parameters:
catalogs - The catalogs to set.

getDatafiles

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

setDatafiles

public static void setDatafiles(java.util.Collection datafiles)
Parameters:
datafiles - The datafiles to set.

getDatahosts

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

setDatahosts

public static void setDatahosts(java.util.Hashtable datahosts)
Parameters:
datahosts - The datahosts to set.