| |
|
| java.lang.Object org.griphyn.cPlanner.classes.SiteInfo
SiteInfo | public class SiteInfo (Code) | | This is a data class that is used to store information about a single
remote site (pool).
The various types of information that can be associated with the the remote
site are displayed in the following table.
Name | Description |
grid launch |
the path to kickstart on the remote site. |
work directory |
the WorkDir object containing the information about the
scratch space on the remote site. |
grid ftp servers |
the list of GridFTPServer objects each containing information
about one grid ftp server. |
job managers |
the list of JobManager objects each containing information
about one jobmanager. |
profiles |
the list of Profile objects each containing one profile. |
system info |
the SysInfo object containing the remote sites system
information. |
author: Gaurang Mehta gmehta@isi.edu author: Karan Vahi vahi@isi.edu version: $Revision: 178 $ See Also: GlobusVersion See Also: GridFTPServer See Also: GridFTPBandwidth See Also: JobManager See Also: LRC See Also: Profile See Also: SiteInfo See Also: org.griphyn.common.classes.SysInfo See Also: WorkDir |
Field Summary | |
final public static int | GRIDFTP The constant to be passed to the accessor functions to get or set the
list of GridFTP objects for the remote site. | final public static int | GRIDLAUNCH The constant to be passed to the accessor functions to get or set the
path to kickstart. | final public static int | HANDLE The name of the remote site. | final public static int | JOBMANAGER The constant to be passed to the accessor functions to get or set the
list of JobManager objects for the remote site. | final public static int | LRC The constant to be passed to the accessor functions to get or set the list
of LRC objects for the remote site. | final public static int | PROFILE The constant to be passed to the accessor functions to get or set the
list of Profile objects for the remote site. | final public static String | SITEINFO Array storing the names of the attributes that are stored with the
site. | final public static int | SYSINFO The constant to be passed to the accessor functions to get or set the
SysInfo site. | final public static int | WORKDIR The constant to be passed to the accessor functions to get or set the
List of WorkDir objects. |
Constructor Summary | |
public | SiteInfo() Default Constructor. |
Method Summary | |
public String | getExecMountPoint() A helper method that returns the execution mount point. | public Object | getInfo(int key) Returns an Object containing the attribute value
corresponding to the key specified.
Parameters: key - the key. | public List | getJobmanagers() It returns all the jobmanagers corresponding to a specified pool.
list of JobManager , each referring toone jobmanager contact string. | public List | getJobmanagers(String universe) It returns all the jobmanagers corresponding to a specified pool and
universe.
Parameters: universe - the gvds universe with which it is associated. | public String | getKickstartPath() A helper method that returns the path to gridlaunch on the site. | public String | getURLPrefix(boolean random) A helper method that returns the url prefix for one of the gridftp server
associated with the pool. | public boolean | removeGridFtp(String urlPrefix) Removes a grid ftp server from the soft state associated with the pool.
Parameters: urlPrefix - the urlprefix associated with the server. | public boolean | removeJobmanager(String universe, String jobManagerContact) It removes a jobmanager from the pool. | public GridFTPServer | selectGridFTP(boolean random) Returns a gridftp server from the list of gridftp servers associated with
the site. | public JobManager | selectJobManager(String universe, boolean random) Returns a selected jobmanager corresponding to a particular VDS
universe.
If more than one candidate jobmanager is found , then the function
the first matching jobmanager unless parameter random is set to true.
Parameters: universe - the VDS universe with which the jobmanager is associated. Parameters: random - boolean denoting whether to select a random gridftp server. | public LRC | selectLRC(boolean random) Returns an LRC from the list of LRCs associated with the site.
If more than one candidate LRC is found , then the function
the first matching LRC Parameters: random - boolean denoting whether to select a random gridftp server. | public void | setInfo(int key, Object object) Sets an attribute associated with the remote site. | public String | toMultiLine() Returns the textual description of the contents of SiteInfo
object in the multiline format. | public String | toString() Returns the textual description of the contents of SiteInfo
object. | public String | toXML() Returns the XML description of the contents of SiteInfo
object. |
GRIDFTP | final public static int GRIDFTP(Code) | | The constant to be passed to the accessor functions to get or set the
list of GridFTP objects for the remote site.
|
GRIDLAUNCH | final public static int GRIDLAUNCH(Code) | | The constant to be passed to the accessor functions to get or set the
path to kickstart.
|
HANDLE | final public static int HANDLE(Code) | | The name of the remote site. This is acts as the key by which to query
a site catalog for information regarding a particular remote site.
|
JOBMANAGER | final public static int JOBMANAGER(Code) | | The constant to be passed to the accessor functions to get or set the
list of JobManager objects for the remote site.
|
LRC | final public static int LRC(Code) | | The constant to be passed to the accessor functions to get or set the list
of LRC objects for the remote site.
|
PROFILE | final public static int PROFILE(Code) | | The constant to be passed to the accessor functions to get or set the
list of Profile objects for the remote site.
|
SITEINFO | final public static String SITEINFO(Code) | | Array storing the names of the attributes that are stored with the
site.
|
SYSINFO | final public static int SYSINFO(Code) | | The constant to be passed to the accessor functions to get or set the
SysInfo site.
|
WORKDIR | final public static int WORKDIR(Code) | | The constant to be passed to the accessor functions to get or set the
List of WorkDir objects.
|
SiteInfo | public SiteInfo()(Code) | | Default Constructor.
|
getExecMountPoint | public String getExecMountPoint()(Code) | | A helper method that returns the execution mount point.
the execution mount point, elsenull if no mount point associated with the pool. |
getJobmanagers | public List getJobmanagers()(Code) | | It returns all the jobmanagers corresponding to a specified pool.
list of JobManager , each referring toone jobmanager contact string. An empty list if no jobmanagersfound. |
getJobmanagers | public List getJobmanagers(String universe)(Code) | | It returns all the jobmanagers corresponding to a specified pool and
universe.
Parameters: universe - the gvds universe with which it is associated. list of JobManager , each referring toone jobmanager contact string. An empty list if no jobmanagersfound. |
getKickstartPath | public String getKickstartPath()(Code) | | A helper method that returns the path to gridlaunch on the site.
the path to the kickstart. |
getURLPrefix | public String getURLPrefix(boolean random)(Code) | | A helper method that returns the url prefix for one of the gridftp server
associated with the pool. If more than one gridftp servers is associated
with the pool, then the function returns url prefix for the first
gridftp server in the list, unless the parameter random is set to true.
Parameters: random - boolean denoting whether to select a random gridftp server. the url prefix for the grid ftp server,else null if no gridftp server mentioned. |
removeGridFtp | public boolean removeGridFtp(String urlPrefix)(Code) | | Removes a grid ftp server from the soft state associated with the pool.
Parameters: urlPrefix - the urlprefix associated with the server. boolean |
removeJobmanager | public boolean removeJobmanager(String universe, String jobManagerContact)(Code) | | It removes a jobmanager from the pool. It calls the underlying equals
method of the associated jobmanager object to remove it.
Parameters: universe - the gvds universe with which it is associated. Parameters: jobManagerContact - the contact string to the jobmanager. true if was able to remove successfullyelse false. |
selectGridFTP | public GridFTPServer selectGridFTP(boolean random)(Code) | | Returns a gridftp server from the list of gridftp servers associated with
the site. If more than one candidate GridFTPServer is found , then the
function returns the first matching GridFTPServer
unless parameter random is set to true.
Parameters: random - boolean denoting whether to select a random gridftp server. the selected GridFTPServer corresponding to thegrid ftp server,else null if list is null. See Also: org.griphyn.cPlanner.classes.GridFTPServer |
selectJobManager | public JobManager selectJobManager(String universe, boolean random)(Code) | | Returns a selected jobmanager corresponding to a particular VDS
universe.
If more than one candidate jobmanager is found , then the function
the first matching jobmanager unless parameter random is set to true.
Parameters: universe - the VDS universe with which the jobmanager is associated. Parameters: random - boolean denoting whether to select a random gridftp server. the selected jobmanager,else null if list is null. See Also: org.griphyn.cPlanner.classes.JobManager |
selectLRC | public LRC selectLRC(boolean random)(Code) | | Returns an LRC from the list of LRCs associated with the site.
If more than one candidate LRC is found , then the function
the first matching LRC Parameters: random - boolean denoting whether to select a random gridftp server. the selected LRC corresponding to the selected LRC.else null if list is null. See Also: org.griphyn.cPlanner.classes.LRC |
toMultiLine | public String toMultiLine()(Code) | | Returns the textual description of the contents of SiteInfo
object in the multiline format.
the textual description in multiline format. |
toString | public String toString()(Code) | | Returns the textual description of the contents of SiteInfo
object.
the textual description. |
toXML | public String toXML()(Code) | | Returns the XML description of the contents of SiteInfo
object.
the xml description. |
|
|
|