edu.sdsc.grid.io
Class RemoteAccount

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

public abstract class RemoteAccount
extends GeneralAccount

An object to hold the user information used when connecting to a remote file system.


Field Summary
protected  java.lang.String host
          The host to connect to on the server.
protected  java.lang.String password
          Currently, just the text password.
protected  int port
          The port to connect to on the server.
protected  java.lang.String userName
          The user name to send to the server.
 
Fields inherited from class edu.sdsc.grid.io.GeneralAccount
homeDirectory
 
Constructor Summary
RemoteAccount(java.lang.String host, int port, java.lang.String userName, java.lang.String password, java.lang.String homeDir)
          Constructs an object to hold the user information used when connecting to a remote server.
 
Method Summary
protected  void finalize()
          Finalizes the object by explicitly letting go of each of its internally held values.
 java.lang.String getHost()
          Returns the host used by this RemoteAccount.
 java.lang.String getPassword()
          Returns the password used by this RemoteAccount.
 int getPort()
          Returns the port used by this RemoteAccount.
 java.lang.String getUserName()
          Returns the userName used by this RemoteAccount.
 void setHost(java.lang.String host)
          Sets the host of this RemoteAccount.
 void setPassword(java.lang.String password)
          Sets the client password.
 void setPort(int port)
          Sets the port of this RemoteAccount.
 void setUserName(java.lang.String userName)
          Sets the userName of this RemoteAccount.
 
Methods inherited from class edu.sdsc.grid.io.GeneralAccount
clone, equals, getHomeDirectory, setHomeDirectory
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

protected java.lang.String host
The host to connect to on the server.


port

protected int port
The port to connect to on the server.


userName

protected java.lang.String userName
The user name to send to the server.


password

protected java.lang.String password
Currently, just the text password.

Constructor Detail

RemoteAccount

public RemoteAccount(java.lang.String host,
                     int port,
                     java.lang.String userName,
                     java.lang.String password,
                     java.lang.String homeDir)
Constructs an object to hold the user information used when connecting to a remote server.

Parameters:
host - the remote system domain name
port - the port on the remote system
userName - the user name
password - the password
homeDirectory - home directory on the remote system
Method Detail

finalize

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

Overrides:
finalize in class GeneralAccount

setHost

public void setHost(java.lang.String host)
Sets the host of this RemoteAccount.

Throws:
java.lang.NullPointerException - if host is null.

setPort

public void setPort(int port)
Sets the port of this RemoteAccount. Port numbers can not be negative.


setUserName

public void setUserName(java.lang.String userName)
Sets the userName of this RemoteAccount.


setPassword

public void setPassword(java.lang.String password)
Sets the client password.


getHost

public java.lang.String getHost()
Returns the host used by this RemoteAccount.


getPort

public int getPort()
            throws java.lang.IllegalArgumentException
Returns the port used by this RemoteAccount.

Throws:
java.lang.IllegalArgumentException

getUserName

public java.lang.String getUserName()
Returns the userName used by this RemoteAccount.


getPassword

public java.lang.String getPassword()
Returns the password used by this RemoteAccount.