|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sdsc.grid.io.GeneralAccount
edu.sdsc.grid.io.RemoteAccount
public abstract class RemoteAccount
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 |
|---|
protected java.lang.String host
protected int port
protected java.lang.String userName
protected java.lang.String password
| Constructor Detail |
|---|
public RemoteAccount(java.lang.String host,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String homeDir)
host - the remote system domain nameport - the port on the remote systemuserName - the user namepassword - the passwordhomeDirectory - home directory on the remote system| Method Detail |
|---|
protected void finalize()
finalize in class GeneralAccountpublic void setHost(java.lang.String host)
java.lang.NullPointerException - if host is null.public void setPort(int port)
public void setUserName(java.lang.String userName)
public void setPassword(java.lang.String password)
public java.lang.String getHost()
public int getPort()
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic java.lang.String getUserName()
public java.lang.String getPassword()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||