edu.isi.pegasus.planner.catalog.site
Class SiteFactory

java.lang.Object
  extended by edu.isi.pegasus.planner.catalog.site.SiteFactory

public class SiteFactory
extends Object

A factory class to load the appropriate implementation of Site Catalog as specified by properties.

Version:
$Revision: 2572 $
Author:
Karan Vahi

Field Summary
static String DEFAULT_PACKAGE_NAME
          The default package where all the implementations reside.
 
Constructor Summary
SiteFactory()
           
 
Method Summary
static SiteCatalog loadInstance()
          Connects the interface with the transformation catalog implementation.
static SiteCatalog loadInstance(PegasusProperties properties)
          Connects the interface with the site catalog implementation.
static SiteCatalog loadInstance(String catalogImplementor, Properties properties)
          Connects the interface with the site catalog implementation.
static SiteStore loadSiteStore(Collection<String> sites, PegasusBag bag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PACKAGE_NAME

public static final String DEFAULT_PACKAGE_NAME
The default package where all the implementations reside.

See Also:
Constant Field Values
Constructor Detail

SiteFactory

public SiteFactory()
Method Detail

loadSiteStore

public static SiteStore loadSiteStore(Collection<String> sites,
                                      PegasusBag bag)
Parameters:
sites -
bag - the bag of pegasus objects
Returns:
SiteStore object containing the information about the sites.

loadInstance

public static SiteCatalog loadInstance()
                                throws SiteFactoryException
Connects the interface with the transformation catalog implementation. The choice of backend is configured through properties. This method uses default properties from the property singleton.

Returns:
handle to the Site Catalog.
Throws:
SiteFactoryException - that nests any error that might occur during the instantiation
See Also:
DEFAULT_PACKAGE_NAME

loadInstance

public static SiteCatalog loadInstance(PegasusProperties properties)
                                throws SiteFactoryException
Connects the interface with the site catalog implementation. Tedu.isi.pegasus.catalog.site.impl.XML3he choice of backend is configured through properties.

Parameters:
properties - is an instance of properties to use.
Returns:
handle to the Site Catalog.
Throws:
SiteFactoryException - that nests any error that might occur during the instantiation
See Also:
DEFAULT_PACKAGE_NAME

loadInstance

public static SiteCatalog loadInstance(String catalogImplementor,
                                       Properties properties)
Connects the interface with the site catalog implementation. The choice of backend is configured through properties.

Parameters:
catalogImplementor - the name of the class implementing catalog
properties - the connection properties.
Returns:
handle to the Site Catalog.
Throws:
SiteFactoryException - that nests any error that might occur during the instantiation
See Also:
DEFAULT_PACKAGE_NAME


Copyright © 2011 The University of Southern California. All Rights Reserved.