| java.lang.Object org.griphyn.cPlanner.poolinfo.PoolInfoProvider org.griphyn.cPlanner.poolinfo.Abstract
All known Subclasses: org.griphyn.cPlanner.poolinfo.Text, org.griphyn.cPlanner.poolinfo.XML,
Abstract | abstract public class Abstract extends PoolInfoProvider (Code) | | An abstract implementation of the PoolInfoProvider. Implementations should
extend it, only if they are statically loading information into a
PoolConfig object. The object once populated contains all
the contents of the catalog.
author: Karan Vahi version: $Revision: 50 $ See Also: Abstract.mPoolConfig |
Method Summary | |
public List | getGridFTPServers(String siteID) It returns all the gridftp servers corresponding to a specified pool.
Parameters: siteID - the name of the site at which the jobmanager runs. | public List | getJobmanagers(String siteID) It returns all the jobmanagers corresponding to a specified site.
Parameters: siteID - the name of the site at which the jobmanager runs. | public List | getJobmanagers(String siteID, String universe) It returns all the jobmanagers corresponding to a specified pool and
universe.
Parameters: siteID - the name of the site at which the jobmanager runs. Parameters: universe - the gvds universe with which it is associated. | public SiteInfo | getPoolEntry(String siteID, String universe) Gets the pool information from the pool.config file on the basis
of the name of the pool, and the universe. | public List | getPoolProfile(String siteID) It returns the profile information associated with a particular pool. | public List | getPools() | public SysInfo | getSysinfo(String siteID) Returns the System information for a single site. | public Map | getSysinfos(List siteids) Returns the System information for a bunch of sites. | public boolean | removeGridFtp(String siteID, String urlPrefix) This is a soft state remove, that removes a gridftp server from a particular
pool entry. | public boolean | removeJobManager(String siteID, String universe, String jobManagerContact) This is a soft state remove, that removes a jobmanager from a particular
pool entry. |
mPoolConfig | protected PoolConfig mPoolConfig(Code) | | Handle to the PoolConfig object
|
getGridFTPServers | public List getGridFTPServers(String siteID)(Code) | | It returns all the gridftp servers corresponding to a specified pool.
Parameters: siteID - the name of the site at which the jobmanager runs. List of GridFTPServer , each referring to oneGridFtp Server. |
getJobmanagers | public List getJobmanagers(String siteID)(Code) | | It returns all the jobmanagers corresponding to a specified site.
Parameters: siteID - the name of the site at which the jobmanager runs. list of JobManager , each referring toone jobmanager contact string. An empty list if no jobmanagersfound. |
getJobmanagers | public List getJobmanagers(String siteID, String universe)(Code) | | It returns all the jobmanagers corresponding to a specified pool and
universe.
Parameters: siteID - the name of the site at which the jobmanager runs. 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. |
getPoolEntry | public SiteInfo getPoolEntry(String siteID, String universe)(Code) | | Gets the pool information from the pool.config file on the basis
of the name of the pool, and the universe.
Parameters: siteID - the name of the site Parameters: universe - the execution universe for the job the corresponding pool object for the entry if foundelse null |
getPoolProfile | public List getPoolProfile(String siteID)(Code) | | It returns the profile information associated with a particular pool. If
the pool provider has no such information it should return null.
The name of the object may purport that it is specific to GVDS format, but
in fact it a tuple consisting of namespace, key and value that can be used
by other Pool providers too.
Parameters: siteID - the name of the site, whose profile information you want. List of Profile objectsnull if the information about the site is not with the pool provider. See Also: org.griphyn.cPlanner.classes.Profile |
getPools | public List getPools()(Code) | | It returns all the pools available in the site catalog
List of names of the pools available as String |
getSysinfo | public SysInfo getSysinfo(String siteID)(Code) | | Returns the System information for a single site.
Parameters: siteID - String The site whose system information is requested SysInfo The system information as a SysInfo object See Also: org.griphyn.common.classes.SysInfo |
getSysinfos | public Map getSysinfos(List siteids)(Code) | | Returns the System information for a bunch of sites.
Parameters: siteids - List The siteid whose system information is required Map The key is the siteid and the value is a SysInfo object See Also: org.griphyn.common.classes.SysInfo |
removeGridFtp | public boolean removeGridFtp(String siteID, String urlPrefix)(Code) | | This is a soft state remove, that removes a gridftp server from a particular
pool entry. The cause of this removal could be the inability to
authenticate against it at runtime. The successful removal lead Pegasus
not to schedule any transfers on that particular gridftp server.
Parameters: siteID - the name of the site at which the gridftp runs. Parameters: urlPrefix - the url prefix containing the protocol,hostname and port. true if was able to remove the gridftp from the cachefalse if unable to remove, or the matching entry is not foundor if the implementing class does not maintain a soft state.or the information about site is not in the site catalog. |
removeJobManager | public boolean removeJobManager(String siteID, String universe, String jobManagerContact)(Code) | | This is a soft state remove, that removes a jobmanager from a particular
pool entry. The cause of this removal could be the inability to
authenticate against it at runtime. The successful removal lead Pegasus
not to schedule job on that particular jobmanager.
Parameters: siteID - the name of the site at which the jobmanager runs. Parameters: universe - the gvds universe with which it is associated. Parameters: jobManagerContact - the contact string to the jobmanager. true if was able to remove the jobmanager from the cachefalse if unable to remove, or the matching entry is not foundor if the implementing class does not maintain a soft state. |
Methods inherited from org.griphyn.cPlanner.poolinfo.PoolInfoProvider | public String getEnvironmentVariable(String siteID, String envVariable)(Code)(Java Doc) public String getExecPoolWorkDir(String executionPool)(Code)(Java Doc) public String getExecPoolWorkDir(SubInfo job)(Code)(Java Doc) public String getExecPoolWorkDir(String siteID, String path)(Code)(Java Doc) public String getExecPoolWorkDir(String siteID, String path, int jobClass)(Code)(Java Doc) abstract public List getGridFTPServers(String siteID)(Code)(Java Doc) abstract public List getJobmanagers(String siteID)(Code)(Java Doc) abstract public List getJobmanagers(String siteID, String universe)(Code)(Java Doc) public String getPegasusHome(String siteID)(Code)(Java Doc) abstract public SiteInfo getPoolEntry(String siteID, String universe)(Code)(Java Doc) abstract public String getPoolMode()(Code)(Java Doc) abstract public List getPoolProfile(String siteID)(Code)(Java Doc) public List getPoolProfile(String siteID, String namespace)(Code)(Java Doc) abstract public List getPools()(Code)(Java Doc) public String getSeMountPoint(SiteInfo site)(Code)(Java Doc) abstract public SysInfo getSysinfo(String siteID)(Code)(Java Doc) abstract public Map getSysinfos(List siteids)(Code)(Java Doc) public SiteInfo getTXPoolEntry(String poolName)(Code)(Java Doc) public String getURLPrefix(String poolName)(Code)(Java Doc) public String getVDS_HOME(String siteID)(Code)(Java Doc) public void loadNonSingletonObjects(String propFileName)(Code)(Java Doc) protected void loadSingletonObjects()(Code)(Java Doc) protected void logMessage(String msg)(Code)(Java Doc) public static PoolInfoProvider nonSingletonInstance(String poolProvider, String propFileName)(Code)(Java Doc) abstract public boolean removeGridFtp(String siteID, String urlPrefix)(Code)(Java Doc) abstract public boolean removeJobManager(String siteID, String universe, String jobManagerContact)(Code)(Java Doc) public GridFTPServer selectGridFtp(ArrayList ftp)(Code)(Java Doc) public String selectLRC(ArrayList lrcs)(Code)(Java Doc) public String selectWorkdir(WorkDir workdir) throws Exception(Code)(Java Doc) public static PoolInfoProvider singletonInstance(String poolProvider)(Code)(Java Doc)
|
|
|