g-Eclipse
Release 1.0.0

eu.geclipse.info.model
Class GridGlueSite

java.lang.Object
  extended by eu.geclipse.info.model.GridGlueSite
All Implemented Interfaces:
IGridElement, IGridResource

public class GridGlueSite
extends java.lang.Object
implements IGridResource


Constructor Summary
GridGlueSite(IGridContainer parent, GlueSite glueSite)
          Create a GridGlueSite
 
Method Summary
 void dispose()
          Clean up all resources that this element uses internally.
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 IFileStore getFileStore()
          Get the file store that this element is associated with.
 AbstractGlueTable getGlueElement()
          Get the associated glue object.
 GlueSite getGlueSite()
          Convenience method for getting the glue Site.
 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.
 IGridProject getProject()
          Get the IGridProject this element belongs to.
 IResource getResource()
          Get the corresponding resource of this element.
 java.net.URI getURI()
          Get the URI that corresponds to this grid resource.
 boolean isHidden()
          Determines if this element is hidden.
 boolean isLocal()
          Determines if this element is local.
 boolean isVirtual()
          Determines if this element is virtual.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridGlueSite

public GridGlueSite(IGridContainer parent,
                    GlueSite glueSite)
Create a GridGlueSite

Parameters:
parent - The parent of this element.
glueSite - The associated glue site object.
Method Detail

getGlueSite

public GlueSite getGlueSite()
Convenience method for getting the glue Site.

Returns:
The associated GlueCE object.

getGlueElement

public AbstractGlueTable getGlueElement()
Get the associated glue object.

Returns:
The associated glue object.

dispose

public void dispose()
Description copied from interface: IGridElement
Clean up all resources that this element uses internally.

Specified by:
dispose in interface IGridElement

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.

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.

getProject

public IGridProject getProject()
Description copied from interface: IGridElement
Get the IGridProject this element belongs to. This method may return null if the element is not contained in a project like for example an element manager and its children.

Specified by:
getProject in interface IGridElement
Returns:
The IGridProject this element belongs to.

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.

isHidden

public boolean isHidden()
Description copied from interface: IGridElement
Determines if this element is hidden. Hidden elements are not shown in the Grid model views.

Specified by:
isHidden in interface IGridElement
Returns:
True if this is a hidden element, false otherwise.

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.

isVirtual

public boolean isVirtual()
Description copied from interface: IGridElement
Determines if this element is virtual. Virtual elements have no corresponding resources. If this method returns false the IGridElement.getResource() method returns null. If this method returns true the IGridElement.getResource() has to return a valid IResource that is related to this element.

Specified by:
isVirtual in interface IGridElement
Returns:
True if this element is virtual, i.e. has no corresponding resource.

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.

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.

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)

g-Eclipse
Release 1.0.0