public class GridFTPServer
extends java.lang.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 java.lang.String[] |
GRIDFTPINFO
Array storing the names of the attributes that are stored with the
grid ftp server.
|
private java.util.List |
mBandWidths |
private java.lang.String |
mFreeSize
The free space at the grid ftp server.
|
private java.lang.String |
mGlobusVersion
The version of Globus Toolkit that was used to install the grid ftp server.
|
private java.lang.String |
mStorageDir
The storage mount point for the grid ftp server.
|
private java.lang.String |
mTotalSize
The total storage space at the grid ftp server.
|
private java.lang.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(java.lang.Object o)
Checks if an object is similar to the one referred to by this class.
|
java.util.List |
getGridFTPBandwidthInfo()
Returns a list of
GridFTPBandwidth objects that contain the
bandwidths by which a site is connected to other sites. |
java.lang.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,
java.lang.String value)
Sets an attribute associated with the grid ftp server.
|
java.lang.String |
toMultiLine()
Returns the textual description of the contents of
GridFTPServer
object in the multiline format. |
java.lang.String |
toString()
Returns the textual description of the contents of
LRC
object. |
java.lang.String |
toXML()
Returns the XML description of the contents of
LRC
object. |
public static final java.lang.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 java.lang.String mURL
private java.lang.String mStorageDir
private java.lang.String mGlobusVersion
private java.lang.String mTotalSize
private java.lang.String mFreeSize
private java.util.List mBandWidths
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Objectpublic void setInfo(int key, java.lang.String value) throws java.lang.Exception
key
- the attribute key, which is one of the predefined keys.value
- value of the attribute.java.lang.Exception
- if illegal key defined.public void setGridFTPBandwidthInfo(GridFTPBandwidth bandwidth) throws java.lang.Exception
bandwidth
- the object that is stored in the hash, containing the
information about the gridftp bandwidth between the host
and the destination.java.lang.Exception
public java.util.List getGridFTPBandwidthInfo() throws java.lang.Exception
GridFTPBandwidth
objects that contain the
bandwidths by which a site is connected to other sites.GridFTPBandwidth
objects.java.lang.Exception
public java.lang.String getInfo(int key)
key
- the key/attribute name.java.lang.RuntimeException
- if illegal key defined.public java.lang.String toMultiLine()
GridFTPServer
object in the multiline format.public java.lang.String toString()
LRC
object.toString
in class java.lang.Object
public java.lang.String toXML()
LRC
object.