com.abiquo.GridFactory Class Reference

This class is used to return new instances of the grid object. More...

List of all members.

Static Public Member Functions

static Grid createInstance () throws FrameworkException
 Instantiates a new Grid object with the default configuration file.
static synchronized Grid createInstance (Framework frame)
 Instantiates a new Grid using an existing configuration.
static Grid createInstance (FrameworkConfiguration configuration) throws FrameworkException
 Instantiates a new Grid object with the given configuration parameter.
static synchronized Grid getGridInstance () throws FrameworkException
 This method returns a default Grid singleton instance, the same all the time, created with the default configuration read from file if no previous create functions.


Detailed Description

This class is used to return new instances of the grid object.

It also maintains a singleton instance for multiple grid uses.

It should not be used by a service's programmer.

See also:
com.abiquo.api.Service.initGridFromConfiguration()

com.abiquo.api.Service.setGridFromFramework()


Member Function Documentation

static Grid com.abiquo.GridFactory.createInstance (  )  throws FrameworkException [static]

Instantiates a new Grid object with the default configuration file.

Returns:
a new Grid instance
Exceptions:
FrameworkException if configuration file is invalid

static synchronized Grid com.abiquo.GridFactory.createInstance ( Framework  frame  )  [static]

Instantiates a new Grid using an existing configuration.

Used on Service deployment.

Parameters:
frame an existing framework instance

static Grid com.abiquo.GridFactory.createInstance ( FrameworkConfiguration  configuration  )  throws FrameworkException [static]

Instantiates a new Grid object with the given configuration parameter.

Parameters:
configuration the supplied framework configuration
Returns:
a new Grid instance
Exceptions:
FrameworkException if configuration file is invalid or can not create the necessary access

static synchronized Grid com.abiquo.GridFactory.getGridInstance (  )  throws FrameworkException [static]

This method returns a default Grid singleton instance, the same all the time, created with the default configuration read from file if no previous create functions.

Returns:
the singleton grid instance
Exceptions:
FrameworkException if configuration file fails or can not create the necessary access


The documentation for this class was generated from the following file:

Generated on Mon Sep 15 20:13:10 2008 for FrameworkAPI by  doxygen 1.5.5