g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Class GridModel

java.lang.Object
  extended by eu.geclipse.core.model.GridModel

public class GridModel
extends java.lang.Object

The GridModel class is mainly a helper class for dealing with grid model elements. It defines a method the retrieve the root element of the model (@link getRoot()) and several other methods to get element creators for specific use cases.


Constructor Summary
GridModel()
           
 
Method Summary
static void addGridModelListener(IGridModelListener listener)
          Add the specified IGridModelListener to the list of listeners, which be notified about modifications in grid model.
static IConnectionManager getConnectionManager()
          Get the manager that is dedicated to the management of IGridConnections.
static IElementCreatorRegistry getCreatorRegistry()
          Get the element creator registry that holds a list of all registered grid element creators.
static IGridJobManager getJobManager()
          Get the manager that is dedicated to the management of IGridJobs.
static IGridPreferences getPreferences()
          Get the grid preferences.
static IGridRoot getRoot()
          Get the root element of the grid model tree.
static IServiceJobManager getServiceJobManager()
          Get the manager that is dedicated to the management of IServiceJobs.
static IVoManager getVoManager()
          Get the manager that is dedicated to the management of IVirtualOrganizations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridModel

public GridModel()
Method Detail

getConnectionManager

public static IConnectionManager getConnectionManager()
Get the manager that is dedicated to the management of IGridConnections.

Returns:
The core implementation of the IConnectionManager interface.

getCreatorRegistry

public static IElementCreatorRegistry getCreatorRegistry()
Get the element creator registry that holds a list of all registered grid element creators.

Returns:
The model's element creator registry.

getJobManager

public static IGridJobManager getJobManager()
Get the manager that is dedicated to the management of IGridJobs.

Returns:
The core implementation of the IGridJobManager interface.

getServiceJobManager

public static IServiceJobManager getServiceJobManager()
Get the manager that is dedicated to the management of IServiceJobs.

Returns:
The core implementation of the IServiceJobManager interface.

getRoot

public static IGridRoot getRoot()
Get the root element of the grid model tree. This is an immutable internal implementation of the IGridRoot interface. It is created as singleton the first time this method is called. In subsequent calls this method returns the singleton instance that was created formerly.

Returns:
The root of all evil, i.e. the root element of the grid model.
See Also:
GridRoot.getInstance()

getPreferences

public static IGridPreferences getPreferences()
                                       throws ProblemException
Get the grid preferences.

Returns:
An instance of IGridPreferences.
Throws:
ProblemException - If the preferences could not be found or the creation of the preferences failed.

getVoManager

public static IVoManager getVoManager()
Get the manager that is dedicated to the management of IVirtualOrganizations.

Returns:
The core implementation of the IVoManager interface.

addGridModelListener

public static void addGridModelListener(IGridModelListener listener)
Add the specified IGridModelListener to the list of listeners, which be notified about modifications in grid model. This static method is used within constructors and class initializers, where cannot call GridRoot.getInstance().

Parameters:
listener -
See Also:
"bug 209160 for reason, why cannot call GridRoot.getInstance() within constructors"

g-Eclipse
Release 1.0.0