g-Eclipse
Release 1.0.0

eu.geclipse.info.glue
Class GlueQuery

java.lang.Object
  extended by eu.geclipse.info.glue.GlueQuery

public class GlueQuery
extends java.lang.Object


Constructor Summary
GlueQuery()
           
 
Method Summary
static boolean ceSupportsVO(GlueCE ce, java.lang.String vo)
          Chech if the computing elements supports the vo
static java.util.ArrayList<AbstractGlueTable> getGlueTable(java.lang.String glueObjectName, java.lang.String objectTableName, java.lang.String vo)
          This method returns a glue table.
static java.util.ArrayList<AbstractGlueTable> getStorageElements(java.lang.String vo)
          Get the storage elements
static boolean saSupportsVO(GlueSA sa, java.lang.String vo)
          Check if the storage access supports the vo
static boolean serviceSupportsVO(GlueService service, java.lang.String vo)
          Check if the service supports the vo
static boolean seSupportsVO(GlueSE se, java.lang.String vo)
          Check if the storage elements supports the vo
static boolean siteSupportsVO(GlueSite site, java.lang.String vo)
          Check if the sites supports the vo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueQuery

public GlueQuery()
Method Detail

getGlueTable

public static java.util.ArrayList<AbstractGlueTable> getGlueTable(java.lang.String glueObjectName,
                                                                  java.lang.String objectTableName,
                                                                  java.lang.String vo)
This method returns a glue table. It is possible to choose certain elements from that table using the objectTableName parameter. It is also possible to select only the elements that belong in a specific vo using the vo parameter.

Parameters:
glueObjectName - A string for the Glue Object that will be returned. It can be a GlueCE, GlueSite ... or any other AbstractGlueTable.
objectTableName - A string for the tableName parameter that the AbstractGlueTable has. This parameter is used in order to separate glue elements that belong in the same glue table. An example for that is a GlueService that can have different values in the glueTable to distinguish if it is a glite service or a gria service.
vo - A String containing a vo name. It can be null or "none"
Returns:
An ArrayList containing the GlueObjects that were requested.
See Also:
AbstractGlueTable

seSupportsVO

public static boolean seSupportsVO(GlueSE se,
                                   java.lang.String vo)
Check if the storage elements supports the vo

Parameters:
se - The Storage Element
vo - the name of the vo
Returns:
true if it supports it or false otherwise.

ceSupportsVO

public static boolean ceSupportsVO(GlueCE ce,
                                   java.lang.String vo)
Chech if the computing elements supports the vo

Parameters:
ce - the computing element
vo - the name of the vo
Returns:
true if it supports it or false otherwise.

serviceSupportsVO

public static boolean serviceSupportsVO(GlueService service,
                                        java.lang.String vo)
Check if the service supports the vo

Parameters:
service - the service
vo - the name of the vo
Returns:
true if it supports it or false otherwise.

saSupportsVO

public static boolean saSupportsVO(GlueSA sa,
                                   java.lang.String vo)
Check if the storage access supports the vo

Parameters:
sa - the storage access
vo - the name of the vo
Returns:
true if it supports it or false otherwise.

siteSupportsVO

public static boolean siteSupportsVO(GlueSite site,
                                     java.lang.String vo)
Check if the sites supports the vo

Parameters:
site - the site
vo - the name of the vo
Returns:
true if it supports it or false otherwise.

getStorageElements

public static java.util.ArrayList<AbstractGlueTable> getStorageElements(java.lang.String vo)
Get the storage elements

Parameters:
vo - the name of the vo
Returns:
an ArrayList of AbstractGlueTable

g-Eclipse
Release 1.0.0