public class GridFTPServer extends Object
The various attributes that can be associated with the the server are displayed in the following table.
Attribute Name | Attribute Description |
---|---|
url | the url string pointing to gridftp server, consisting of the host and the port. |
globus version | the version of the Globus Toolkit that was used to install the server. |
storage mount point | the storage mount point for the server. |
total size | the total storage space at the grid ftp server. |
free size | the free space at the grid ftp server. |
Modifier and Type | Field and Description |
---|---|
static int |
FREE_SIZE
The constant to be passed to the accessor functions to get or set the
free size.
|
static int |
GLOBUS_VERSION
The constant to be passed to the accessor functions to get or set the
globus version of the grid ftp server.
|
static int |
GRIDFTP_URL
The constant to be passed to the accessor functions to get or set the url.
|
static String[] |
GRIDFTPINFO
Array storing the names of the attributes that are stored with the
grid ftp server.
|
private List |
mBandWidths |
private String |
mFreeSize
The free space at the grid ftp server.
|
private String |
mGlobusVersion
The version of Globus Toolkit that was used to install the grid ftp server.
|
private String |
mStorageDir
The storage mount point for the grid ftp server.
|
private String |
mTotalSize
The total storage space at the grid ftp server.
|
private String |
mURL
The url string of the gridftp that contains the host and the port.
|
static int |
STORAGE_DIR
The constant to be passed to the accessor functions to get or set the
storage directory of the grid ftp server.
|
static int |
TOTAL_SIZE
The constant to be passed to the accessor functions to get or set the
total size.
|
Constructor and Description |
---|
GridFTPServer()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Checks if an object is similar to the one referred to by this class.
|
List |
getGridFTPBandwidthInfo()
Returns a list of
GridFTPBandwidth objects that contain the
bandwidths by which a site is connected to other sites. |
String |
getInfo(int key)
Returns the attribute value of a particular attribute of the server.
|
void |
setGridFTPBandwidthInfo(GridFTPBandwidth bandwidth)
It fills information in the mBandWidths ArrayList.
|
void |
setInfo(int key,
String value)
Sets an attribute associated with the grid ftp server.
|
String |
toMultiLine()
Returns the textual description of the contents of
GridFTPServer
object in the multiline format. |
String |
toString()
Returns the textual description of the contents of
LRC
object. |
String |
toXML()
Returns the XML description of the contents of
LRC
object. |
public static final String[] GRIDFTPINFO
public static final int GRIDFTP_URL
public static final int STORAGE_DIR
public static final int GLOBUS_VERSION
public static final int TOTAL_SIZE
public static final int FREE_SIZE
private String mURL
private String mStorageDir
private String mGlobusVersion
private String mTotalSize
private String mFreeSize
private List mBandWidths
public boolean equals(Object o)
public void setInfo(int key, String value) throws Exception
key
- the attribute key, which is one of the predefined keys.value
- value of the attribute.Exception
- if illegal key defined.public void setGridFTPBandwidthInfo(GridFTPBandwidth bandwidth) throws Exception
bandwidth
- the object that is stored in the hash, containing the
information about the gridftp bandwidth between the host
and the destination.Exception
public List getGridFTPBandwidthInfo() throws Exception
GridFTPBandwidth
objects that contain the
bandwidths by which a site is connected to other sites.GridFTPBandwidth
objects.Exception
public String getInfo(int key)
key
- the key/attribute name.RuntimeException
- if illegal key defined.public String toMultiLine()
GridFTPServer
object in the multiline format.public String toString()
LRC
object.public String toXML()
LRC
object.Copyright © 2011 The University of Southern California. All Rights Reserved.