|
|||||||||
| 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
edu.sdsc.grid.io.irods.IRODSAccount
public class IRODSAccount
This class extends the RemoteAccount class, adding those values necessary to open a connection to a iRODS server. 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.
edu.sdsc.grid.io.irods.RodsFileSystem| Field Summary | |
|---|---|
protected java.lang.String |
authenticationScheme
The iRODS authorization scheme. |
protected java.lang.String |
defaultStorageResource
The default storage resource. |
static java.lang.String |
IRODS_API_VERSION
iRODS API version "b" |
static java.lang.String |
IRODS_VERSION_0_9
iRODS version 1.0 |
static java.lang.String |
IRODS_VERSION_1_0
iRODS version 1.0 |
protected java.lang.String |
serverDN
The iRODS Server DN string. |
protected static java.lang.String |
version
The iRODS version. |
protected java.lang.String |
zone
The iRODS zone. |
| Fields inherited from class edu.sdsc.grid.io.RemoteAccount |
|---|
host, password, port, userName |
| Fields inherited from class edu.sdsc.grid.io.GeneralAccount |
|---|
homeDirectory |
| Constructor Summary | |
|---|---|
IRODSAccount()
This constructor uses the default info found in the iRODS environment files in the user's local home directory. |
|
IRODSAccount(GeneralFile userInfoDirectory)
Creates an object to hold iRODS account information. |
|
IRODSAccount(GeneralFile envFile,
GeneralFile authFile)
Creates an object to hold iRODS account information. |
|
IRODSAccount(java.lang.String host,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String homeDirectory,
java.lang.String zone,
java.lang.String defaultStorageResource)
Creates an object to hold iRODS account information. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this local file system account object for equality with the given object. |
protected void |
finalize()
Finalizes the object by explicitly letting go of each of its internally held values. |
java.lang.String |
getAuthenticationScheme()
Gets the iRODS options. |
java.lang.String |
getDefaultStorageResource()
Gets the default storage resource. |
java.lang.String |
getServerDN()
|
static java.lang.String |
getVersion()
Gets the iRODS version. |
java.lang.String |
getZone()
|
void |
readAuth(GeneralFile authFile)
Retrieve the Mdas authorization user password |
void |
setAuthenticationScheme(java.lang.String scheme)
Set the type of authentication used. |
void |
setDefaultStorageResource(java.lang.String defaultStorageResource)
Sets the default storage resource. |
void |
setHomeDirectory(java.lang.String homeDirectory)
Sets the home directory of this RemoteAccount. |
void |
setUserInfo(GeneralFile userInfo)
Reads the iRODS enviroment files to set the user info. |
void |
setZone(java.lang.String zone)
|
| Methods inherited from class edu.sdsc.grid.io.RemoteAccount |
|---|
getHost, getPassword, getPort, getUserName, setHost, setPassword, setPort, setUserName |
| Methods inherited from class edu.sdsc.grid.io.GeneralAccount |
|---|
clone, getHomeDirectory |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String IRODS_VERSION_0_9
public static final java.lang.String IRODS_VERSION_1_0
public static final java.lang.String IRODS_API_VERSION
protected java.lang.String defaultStorageResource
protected java.lang.String authenticationScheme
protected java.lang.String serverDN
protected java.lang.String zone
protected static java.lang.String version
| Constructor Detail |
|---|
public IRODSAccount()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public IRODSAccount(GeneralFile userInfoDirectory)
throws java.io.FileNotFoundException,
java.io.IOException
userInfoDirectory - directory holding the .iRODS files
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public IRODSAccount(GeneralFile envFile,
GeneralFile authFile)
throws java.io.FileNotFoundException,
java.io.IOException
envFile - Location of the ".irodsEnv" file.authFile - Location of the ".irodsAuth" file.
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public IRODSAccount(java.lang.String host,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String homeDirectory,
java.lang.String zone,
java.lang.String defaultStorageResource)
host - the iRODS server domain nameport - the port on the iRODS serveruserName - the user namepassword - the passwordhomeDirectory - home directory on the iRODSzone - the IRODS zonedefaultStorageResource - default storage resource| Method Detail |
|---|
protected void finalize()
finalize in class RemoteAccountpublic void setHomeDirectory(java.lang.String homeDirectory)
setHomeDirectory in class GeneralAccountjava.lang.NullPointerException - if homeDirectory is null.public void setDefaultStorageResource(java.lang.String defaultStorageResource)
java.lang.NullPointerException - if defaultStorageResource is null.public void setAuthenticationScheme(java.lang.String scheme)
public void setZone(java.lang.String zone)
public java.lang.String getDefaultStorageResource()
public java.lang.String getAuthenticationScheme()
public static java.lang.String getVersion()
public java.lang.String getServerDN()
public java.lang.String getZone()
public boolean equals(java.lang.Object obj)
true if and only if the argument is not
null and both are account objects for the same
filesystem.
equals in class GeneralAccountobj - The object to be compared with this abstract pathname
true if and only if the objects are the same;
false otherwise
public void setUserInfo(GeneralFile userInfo)
throws java.io.FileNotFoundException,
java.io.IOException
userInfo - The path to the user info file
java.io.FileNotFoundException
java.io.IOException
public void readAuth(GeneralFile authFile)
throws java.io.FileNotFoundException,
java.io.IOException
mdasAuthFile - The file which contains the Mdas authorization
java.io.FileNotFoundException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||