|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sdsc.grid.io.GeneralFileSystem
public abstract class GeneralFileSystem
The GeneralFileSystem class is the common superclass for connection implementations to any file system. It provides the framework to support specific file system semantics. Specifically, the functions needed to interact with a file system are provided abstractly by GeneralFileSystem and concretely by its subclass(es).
| Field Summary | |
|---|---|
protected GeneralAccount |
account
The account info for connecting to the server. |
protected static int |
DEBUG
A positive debug value turns on debugging. |
static int |
DEFAULT_RECORDS_WANTED
Default number of records returned by a query |
static java.lang.String |
PATH_SEPARATOR
Standard path separator character represented as a string for convenience. |
protected static java.lang.String[] |
roots
Store the abstract pathnames for the root directories of this file system. |
| Constructor Summary | |
|---|---|
GeneralFileSystem()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
abstract boolean |
equals(java.lang.Object obj)
Tests this filesystem object for equality with the given object. |
protected void |
finalize()
Finalizes the object by explicitly letting go of each of its internally held values. |
GeneralAccount |
getAccount()
Returns a copy of the account object used by this GeneralFileSystem. |
java.lang.String |
getHomeDirectory()
Returns the homeDirectory used by this account on GeneralFileSystem. |
abstract java.lang.String[] |
getRootDirectories()
Returns the rootDirectory used by this file system. |
abstract MetaDataRecordList[] |
query(MetaDataCondition[] conditions,
MetaDataSelect[] selects)
|
abstract MetaDataRecordList[] |
query(MetaDataCondition[] conditions,
MetaDataSelect[] selects,
int numberOfRecordsWanted)
|
protected abstract void |
setAccount(GeneralAccount account)
Sets the account object, the info used to connect to the file system. |
java.lang.String |
toString()
Returns a string representation of this file system object. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String PATH_SEPARATOR
GeneralFile.PATH_SEPARATOR_CHAR.
protected static java.lang.String[] roots
public static final int DEFAULT_RECORDS_WANTED
protected static int DEBUG
protected GeneralAccount account
| Constructor Detail |
|---|
public GeneralFileSystem()
| Method Detail |
|---|
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
protected abstract void setAccount(GeneralAccount account)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public GeneralAccount getAccount()
throws java.lang.NullPointerException
java.lang.NullPointerExceptionpublic java.lang.String getHomeDirectory()
public abstract java.lang.String[] getRootDirectories()
public abstract MetaDataRecordList[] query(MetaDataCondition[] conditions,
MetaDataSelect[] selects)
throws java.io.IOException
java.io.IOException
public abstract MetaDataRecordList[] query(MetaDataCondition[] conditions,
MetaDataSelect[] selects,
int numberOfRecordsWanted)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object clone()
clone in class java.lang.Objectpublic abstract boolean equals(java.lang.Object obj)
true if and only if the argument is not
null and both are filesystem objects connected to the
same filesystem using the same account information.
equals in class java.lang.Objectobj - The object to be compared with this abstract pathname
true if and only if the objects are the same;
false otherwisepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||