public class SiteInfo extends Object
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 VDSSysInfo object containing the remote sites system
information. |
GlobusVersion
,
GridFTPServer
,
GridFTPBandwidth
,
JobManager
,
LRC
,
Profile
,
SiteInfo
,
org.griphyn.common.classes.VDSSysInfo
,
WorkDir
Modifier and Type | Field and Description |
---|---|
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. |
static int |
GRIDLAUNCH
The constant to be passed to the accessor functions to get or set the
path to kickstart.
|
static int |
HANDLE
The name of the remote site.
|
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. |
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. |
private List |
mGridFTPList
The list of
GridFTPServer objects that contain the information
about the gridftp servers on the remote site. |
private String |
mGridLaunch
The path to the kickstart on the remote site.
|
private String |
mHandle
The handle to the site, usually name of the site.
|
private List |
mJobManagerList
The list of
JobManager objects that contain the information
about the jobmanagers associated with the remote site. |
private List |
mLRCList
The list of
LRC objects that contain the information about
the various LRCs associated with the remote site. |
private List |
mProfileList
The list of
Profile objects that contain the profile
information associated with the remote site. |
private VDSSysInfo |
mSysInfo
The system information of the remote site.
|
private WorkDir |
mWorkDir
Contains the information about the work directory on the remote site.
|
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. |
static String[] |
SITEINFO
Array storing the names of the attributes that are stored with the
site.
|
static int |
SYSINFO
The constant to be passed to the accessor functions to get or set the
VDSSysInfo site. |
static int |
WORKDIR
The constant to be passed to the accessor functions to get or set the
List of
WorkDir objects. |
Constructor and Description |
---|
SiteInfo()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getExecMountPoint()
A helper method that returns the execution mount point.
|
Object |
getInfo(int key)
Returns an
Object containing the attribute value
corresponding to the key specified. |
List |
getJobmanagers()
It returns all the jobmanagers corresponding to a specified pool.
|
List |
getJobmanagers(String universe)
It returns all the jobmanagers corresponding to a specified pool and
universe.
|
String |
getKickstartPath()
A helper method that returns the path to gridlaunch on the site.
|
private List |
getMatchingJMList(List superList,
String universe)
Returns a list containing only those jobmanager entries that match a
particular universe.
|
String |
getURLPrefix(boolean random)
A helper method that returns the url prefix for one of the gridftp server
associated with the pool.
|
boolean |
removeGridFtp(String urlPrefix)
Removes a grid ftp server from the soft state associated with the pool.
|
boolean |
removeJobmanager(String universe,
String jobManagerContact)
It removes a jobmanager from the pool.
|
GridFTPServer |
selectGridFTP(boolean random)
Returns a gridftp server from the list of gridftp servers associated with
the site.
|
JobManager |
selectJobManager(String universe,
boolean random)
Returns a selected jobmanager corresponding to a particular VDS
universe.
|
LRC |
selectLRC(boolean random)
Returns an LRC from the list of LRCs associated with the site.
|
void |
setInfo(int key,
Object object)
Sets an attribute associated with the remote site.
|
String |
toMultiLine()
Returns the textual description of the contents of
SiteInfo
object in the multiline format. |
String |
toString()
Returns the textual description of the contents of
SiteInfo
object. |
String |
toXML()
Returns the XML description of the contents of
SiteInfo
object. |
public static final String[] SITEINFO
public static final int GRIDFTP
GridFTP
objects for the remote site.public static final int JOBMANAGER
JobManager
objects for the remote site.public static final int PROFILE
Profile
objects for the remote site.public static final int LRC
LRC
objects for the remote site.public static final int WORKDIR
WorkDir
objects.public static final int GRIDLAUNCH
public static final int SYSINFO
VDSSysInfo
site.public static final int HANDLE
private String mGridLaunch
private List mLRCList
LRC
objects that contain the information about
the various LRCs associated with the remote site.private List mProfileList
Profile
objects that contain the profile
information associated with the remote site.private List mGridFTPList
GridFTPServer
objects that contain the information
about the gridftp servers on the remote site.private List mJobManagerList
JobManager
objects that contain the information
about the jobmanagers associated with the remote site.private WorkDir mWorkDir
private VDSSysInfo mSysInfo
private String mHandle
public Object getInfo(int key)
Object
containing the attribute value
corresponding to the key specified.key
- the key.Object
corresponding to the key value.RuntimeException
- if illegal key defined.HANDLE
,
GRIDFTP
,
GRIDLAUNCH
,
JOBMANAGER
,
LRC
,
PROFILE
,
SYSINFO
,
WORKDIR
public String getExecMountPoint()
public String getKickstartPath()
public String getURLPrefix(boolean random)
random
- boolean denoting whether to select a random gridftp server.public List getJobmanagers()
JobManager
, each referring to
one jobmanager contact string. An empty list if no jobmanagers
found.public List getJobmanagers(String universe)
universe
- the gvds universe with which it is associated.JobManager
, each referring to
one jobmanager contact string. An empty list if no jobmanagers
found.public void setInfo(int key, Object object) throws RuntimeException
key
- the attribute key, which is one of the predefined keys.object
- the object containing the attribute value.RuntimeException
- if the object passed for the key is not of
valid type.Exception
- if illegal key defined.HANDLE
,
GRIDFTP
,
GRIDLAUNCH
,
JOBMANAGER
,
LRC
,
PROFILE
,
SYSINFO
,
WORKDIR
public boolean removeJobmanager(String universe, String jobManagerContact)
universe
- the gvds universe with which it is associated.jobManagerContact
- the contact string to the jobmanager.public boolean removeGridFtp(String urlPrefix)
urlPrefix
- the urlprefix associated with the server.public GridFTPServer selectGridFTP(boolean random)
GridFTPServer
unless parameter random is set to true.random
- boolean denoting whether to select a random gridftp server.GridFTPServer
corresponding to the
grid ftp server,
else null if list is null.org.griphyn.cPlanner.classes.GridFTPServer
public LRC selectLRC(boolean random)
LRC
random
- boolean denoting whether to select a random gridftp server.LRC
corresponding to the selected LRC.
else null if list is null.org.griphyn.cPlanner.classes.LRC
public JobManager selectJobManager(String universe, boolean random)
universe
- the VDS universe with which the jobmanager is associated.random
- boolean denoting whether to select a random gridftp server.org.griphyn.cPlanner.classes.JobManager
public String toMultiLine()
SiteInfo
object in the multiline format.public String toString()
SiteInfo
object.public String toXML()
SiteInfo
object.private List getMatchingJMList(List superList, String universe)
superList
- the list containing all the entries of type
JobManager
.universe
- the universe against which you want to match the
entries.Copyright © 2011 The University of Southern California. All Rights Reserved.