g-Eclipse
Release 1.0.0

eu.geclipse.info.model
Class GridGlueComputing

java.lang.Object
  extended by PlatformObject
      extended by eu.geclipse.core.model.impl.AbstractGridElement
          extended by eu.geclipse.core.model.impl.AbstractGridContainer
              extended by eu.geclipse.info.model.GridGlueComputing
All Implemented Interfaces:
IGridComputing, IGridContainer, IGridElement, IGridResource

public class GridGlueComputing
extends AbstractGridContainer
implements IGridComputing

Implementation of the IGridElement interface for a GlueCE.


Constructor Summary
GridGlueComputing(IGridContainer parent, GlueCE glueCE)
          Construct a new GridGlueComputing for the specified GlueCE.
 
Method Summary
 boolean canContain(IGridElement element)
          Determines if this may contain the specified element.
 IFileStore getFileStore()
          Get the file store that this element is associated with.
 GlueCE getGlueCe()
          Convenience method for getting the glue CE.
 AbstractGlueTable getGlueElement()
          Get this GridGlueElement's associated AbstractGlueTable object.
 java.lang.String getHostName()
          Get the host name of the machine (physical or virtual) that represent this resource.
 java.lang.String getName()
          Get the name of this element.
 IGridContainer getParent()
          Get the parent element of this element.
 IPath getPath()
          Get the path of this element relative to the grid root element.
 IResource getResource()
          Get the corresponding resource of this element.
 java.net.URI getURI()
          Get the URI that corresponds to this grid resource.
 boolean isLazy()
          Determines if this container is using a lazy loading mechanism to manage its children.
 boolean isLocal()
          Determines if this element is local.
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridContainer
contains, create, delete, deleteAll, dispose, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, refresh, setDirty
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement
getAdapter, getProject, isHidden, isVirtual
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getProject, isHidden, isVirtual
 

Constructor Detail

GridGlueComputing

public GridGlueComputing(IGridContainer parent,
                         GlueCE glueCE)
Construct a new GridGlueComputing for the specified GlueCE.

Parameters:
parent - The parent of this element.
glueCE - The associated glue CE object.
Method Detail

canContain

public boolean canContain(IGridElement element)
Description copied from interface: IGridContainer
Determines if this may contain the specified element. This method works type specific, i.e. a container may or may not contain elements of a specified type.

Specified by:
canContain in interface IGridContainer
Overrides:
canContain in class AbstractGridContainer
Parameters:
element - The element that may be contained in this container.
Returns:
If this container may contain the specified element.

getGlueCe

public GlueCE getGlueCe()
Convenience method for getting the glue CE.

Returns:
The associated GlueCE object.

getGlueElement

public AbstractGlueTable getGlueElement()
Get this GridGlueElement's associated AbstractGlueTable object.

Returns:
The associated glue object.

getFileStore

public IFileStore getFileStore()
Description copied from interface: IGridElement
Get the file store that this element is associated with. May return null if there is no such associated file store. If this element is not virtual the filestore corresponds to the file store of the corresponding resource.

Specified by:
getFileStore in interface IGridElement
Returns:
The corresponding file store.

getHostName

public java.lang.String getHostName()
Description copied from interface: IGridResource
Get the host name of the machine (physical or virtual) that represent this resource. This name should either be the DNS entry or IP address of this host.

Specified by:
getHostName in interface IGridResource
Returns:
Returns the hostname of the machine, may be null if the resource cannot provide its hostname.

getName

public java.lang.String getName()
Description copied from interface: IGridElement
Get the name of this element. The names of all children of a container have to be unique within this container. If this element is not virtual the name is the name of the corresponding resource.

Specified by:
getName in interface IGridElement
Returns:
The name of this element.

getParent

public IGridContainer getParent()
Description copied from interface: IGridElement
Get the parent element of this element. The parent can only be an IGridContainer. This method may not return null since the only element that is allowed to return null is the IGridRoot which is a singleton and is internally defined within the model.

Specified by:
getParent in interface IGridElement
Returns:
The parent container of this element.

getPath

public IPath getPath()
Description copied from interface: IGridElement
Get the path of this element relative to the grid root element. If this element is not virtual this has to be the path of the corresponding @IResource.

Specified by:
getPath in interface IGridElement
Returns:
The path of this element relative to the grid root.

getResource

public IResource getResource()
Description copied from interface: IGridElement
Get the corresponding resource of this element. This may be null if - and only if - this element is virtual.

Specified by:
getResource in interface IGridElement
Returns:
The corresponding resource or null if this element is virtual.

getURI

public java.net.URI getURI()
Description copied from interface: IGridResource
Get the URI that corresponds to this grid resource.

Specified by:
getURI in interface IGridResource
Returns:
The resource's contact string. May be null if the resource may not be represented by a URI.

isLazy

public boolean isLazy()
Description copied from interface: IGridContainer
Determines if this container is using a lazy loading mechanism to manage its children. In that case the children are not loaded when the container is constructed but when the IGridContainer.getChildren(IProgressMonitor monitor) methode is called the first time. On subsequent calls of IGridContainer.getChildren(IProgressMonitor monitor) the formerly loaded children are returned unless the IGridContainer.setDirty() method was called. In that case a call to IGridContainer.getChildren(IProgressMonitor monitor) will cause a reload of this containers children. Lazy containers always have to return true if they are asked if they contain any children with IGridContainer.hasChildren().

Specified by:
isLazy in interface IGridContainer
Returns:
True if this container uses lazy loading.

isLocal

public boolean isLocal()
Description copied from interface: IGridElement
Determines if this element is local. A local element has to be any related item (not necessarily an IResource) that is local in the means that it is located on the local machine.

Specified by:
isLocal in interface IGridElement
Returns:
True if this element is local.

g-Eclipse
Release 1.0.0