edu.sdsc.grid.io
Class GeneralAccount

java.lang.Object
  extended by edu.sdsc.grid.io.GeneralAccount
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
LocalAccount, RemoteAccount

public abstract class GeneralAccount
extends java.lang.Object
implements java.lang.Cloneable

An object to hold the user information used when connecting to a file system. This class does not actually connect to a filesystem. It only hold user connection information. Setting or getting this information only refers to the contents of the object.


Field Summary
protected  java.lang.String homeDirectory
          The home directory on the server
 
Constructor Summary
GeneralAccount(java.lang.String homeDir)
          Constructs an object to hold the user information used when connecting to a file system.
 
Method Summary
 java.lang.Object clone()
           
abstract  boolean equals(java.lang.Object obj)
           
protected  void finalize()
          Finalizes the object by explicitly letting go of each of its internally held values.
 java.lang.String getHomeDirectory()
          Returns the homeDirectory used by this GeneralAccount.
abstract  void setHomeDirectory(java.lang.String homeDir)
          Sets the home directory of this GeneralAccount.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

homeDirectory

protected java.lang.String homeDirectory
The home directory on the server

Constructor Detail

GeneralAccount

public GeneralAccount(java.lang.String homeDir)
Constructs an object to hold the user information used when connecting to a file system.

Parameters:
homeDirectory - home directory on the SRB
Method Detail

finalize

protected void finalize()
Finalizes the object by explicitly letting go of each of its internally held values.

Overrides:
finalize in class java.lang.Object

setHomeDirectory

public abstract void setHomeDirectory(java.lang.String homeDir)
Sets the home directory of this GeneralAccount.


getHomeDirectory

public java.lang.String getHomeDirectory()
                                  throws java.lang.NullPointerException
Returns the homeDirectory used by this GeneralAccount.

Returns:
homeDirectory
Throws:
java.lang.NullPointerException

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object
Returns:
a copy of this account object.

equals

public abstract boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object