Java Doc for SiteInfo.java in  » Workflow-Engines » pegasus-2.1.0 » org » griphyn » cPlanner » classes » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » pegasus 2.1.0 » org.griphyn.cPlanner.classes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.

NameDescription
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  intGRIDFTP
     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  intGRIDLAUNCH
     The constant to be passed to the accessor functions to get or set the path to kickstart.
final public static  intHANDLE
     The name of the remote site.
final public static  intJOBMANAGER
     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  intLRC
     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  intPROFILE
     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  StringSITEINFO
     Array storing the names of the attributes that are stored with the site.
final public static  intSYSINFO
     The constant to be passed to the accessor functions to get or set the SysInfo site.
final public static  intWORKDIR
     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  StringgetExecMountPoint()
     A helper method that returns the execution mount point.
public  ObjectgetInfo(int key)
     Returns an Object containing the attribute value corresponding to the key specified.
Parameters:
  key - the key.
public  ListgetJobmanagers()
     It returns all the jobmanagers corresponding to a specified pool. list of JobManager, each referring toone jobmanager contact string.
public  ListgetJobmanagers(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  StringgetKickstartPath()
     A helper method that returns the path to gridlaunch on the site.
public  StringgetURLPrefix(boolean random)
     A helper method that returns the url prefix for one of the gridftp server associated with the pool.
public  booleanremoveGridFtp(String urlPrefix)
     Removes a grid ftp server from the soft state associated with the pool.
Parameters:
  urlPrefix - the urlprefix associated with the server.
public  booleanremoveJobmanager(String universe, String jobManagerContact)
     It removes a jobmanager from the pool.
public  GridFTPServerselectGridFTP(boolean random)
     Returns a gridftp server from the list of gridftp servers associated with the site.
public  JobManagerselectJobManager(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  LRCselectLRC(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 LRCParameters:
  random - boolean denoting whether to select a random gridftp server.
public  voidsetInfo(int key, Object object)
     Sets an attribute associated with the remote site.
public  StringtoMultiLine()
     Returns the textual description of the contents of SiteInfo object in the multiline format.
public  StringtoString()
     Returns the textual description of the contents of SiteInfo object.
public  StringtoXML()
     Returns the XML description of the contents of SiteInfo object.

Field Detail
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.




Constructor Detail
SiteInfo
public SiteInfo()(Code)
Default Constructor.




Method Detail
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.



getInfo
public Object getInfo(int key)(Code)
Returns an Object containing the attribute value corresponding to the key specified.
Parameters:
  key - the key. Object corresponding to the key value.
throws:
  RuntimeException - if illegal key defined.
See Also:   SiteInfo.HANDLE
See Also:   SiteInfo.GRIDFTP
See Also:   SiteInfo.GRIDLAUNCH
See Also:   SiteInfo.JOBMANAGER
See Also:   SiteInfo.LRC
See Also:   SiteInfo.PROFILE
See Also:   SiteInfo.SYSINFO
See Also:   SiteInfo.WORKDIR



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 LRCParameters:
  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



setInfo
public void setInfo(int key, Object object) throws RuntimeException(Code)
Sets an attribute associated with the remote site. It actually adds to the list where there is a list maintained like for grid ftp servers, jobmanagers, profiles, and LRCs.
Parameters:
  key - the attribute key, which is one of the predefined keys.
Parameters:
  object - the object containing the attribute value.
throws:
  RuntimeException - if the object passed for the key is not ofvalid type.
throws:
  Exception - if illegal key defined.
See Also:   SiteInfo.HANDLE
See Also:   SiteInfo.GRIDFTP
See Also:   SiteInfo.GRIDLAUNCH
See Also:   SiteInfo.JOBMANAGER
See Also:   SiteInfo.LRC
See Also:   SiteInfo.PROFILE
See Also:   SiteInfo.SYSINFO
See Also:   SiteInfo.WORKDIR



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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.