| |
|
| java.lang.Object org.griphyn.cPlanner.classes.GridFTPServer
GridFTPServer | public class GridFTPServer (Code) | | This is a data class that is used to store information about a grid ftp server.
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. |
author: Gaurang Mehta gmehta@isi.edu author: Karan Vahi vahi@isi.edu version: $Revision: 50 $ |
Field Summary | |
final public static int | FREE_SIZE The constant to be passed to the accessor functions to get or set the
free size. | final public 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. | final public static String | GRIDFTPINFO Array storing the names of the attributes that are stored with the
grid ftp server. | final public static int | GRIDFTP_URL The constant to be passed to the accessor functions to get or set the url. | final public 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. | final public static int | TOTAL_SIZE The constant to be passed to the accessor functions to get or set the
total size. |
Constructor Summary | |
public | GridFTPServer() The default constructor. |
Method Summary | |
public boolean | equals(Object o) Checks if an object is similar to the one referred to by this class. | public List | getGridFTPBandwidthInfo() Returns a list of GridFTPBandwidth objects that contain the
bandwidths by which a site is connected to other sites. | public String | getInfo(int key) Returns the attribute value of a particular attribute of the server.
Parameters: key - the key/attribute name. | public void | setGridFTPBandwidthInfo(GridFTPBandwidth bandwidth) It fills information in the mBandWidths ArrayList. | public void | setInfo(int key, String value) Sets an attribute associated with the grid ftp server. | public String | toMultiLine() Returns the textual description of the contents of GridFTPServer
object in the multiline format. | public String | toString() Returns the textual description of the contents of LRC
object. | public String | toXML() Returns the XML description of the contents of LRC
object. |
FREE_SIZE | final public static int FREE_SIZE(Code) | | The constant to be passed to the accessor functions to get or set the
free size.
|
GLOBUS_VERSION | final public static int GLOBUS_VERSION(Code) | | The constant to be passed to the accessor functions to get or set the
globus version of the grid ftp server.
|
GRIDFTPINFO | final public static String GRIDFTPINFO(Code) | | Array storing the names of the attributes that are stored with the
grid ftp server.
|
GRIDFTP_URL | final public static int GRIDFTP_URL(Code) | | The constant to be passed to the accessor functions to get or set the url.
|
STORAGE_DIR | final public static int STORAGE_DIR(Code) | | The constant to be passed to the accessor functions to get or set the
storage directory of the grid ftp server.
|
TOTAL_SIZE | final public static int TOTAL_SIZE(Code) | | The constant to be passed to the accessor functions to get or set the
total size.
|
GridFTPServer | public GridFTPServer()(Code) | | The default constructor.
|
equals | public boolean equals(Object o)(Code) | | Checks if an object is similar to the one referred to by this class.
We compare the primary key to determine if it is the same or not.
Parameters: o - Object true if the primary key (universe,jobmanager-type,pool) match.else false. |
getGridFTPBandwidthInfo | public List getGridFTPBandwidthInfo() throws Exception(Code) | | Returns a list of GridFTPBandwidth objects that contain the
bandwidths by which a site is connected to other sites.
list of GridFTPBandwidth objects. throws: Exception - |
getInfo | public String getInfo(int key)(Code) | | Returns the attribute value of a particular attribute of the server.
Parameters: key - the key/attribute name. the attribute value throws: RuntimeException - if illegal key defined. |
setGridFTPBandwidthInfo | public void setGridFTPBandwidthInfo(GridFTPBandwidth bandwidth) throws Exception(Code) | | It fills information in the mBandWidths ArrayList.
Parameters: bandwidth - the object that is stored in the hash, containing theinformation about the gridftp bandwidth between the hostand the destination. throws: Exception - |
setInfo | public void setInfo(int key, String value) throws Exception(Code) | | Sets an attribute associated with the grid ftp server.
Parameters: key - the attribute key, which is one of the predefined keys. Parameters: value - value of the attribute. throws: Exception - if illegal key defined. |
toMultiLine | public String toMultiLine()(Code) | | Returns the textual description of the contents of GridFTPServer
object in the multiline format.
the textual description in multiline format. |
toString | public String toString()(Code) | | Returns the textual description of the contents of LRC
object.
the textual description. |
toXML | public String toXML()(Code) | | Returns the XML description of the contents of LRC
object.
the xml description. |
|
|
|