g-Eclipse
Release 1.0.0

eu.geclipse.info.model
Class GridGlueStorage

java.lang.Object
  extended by PlatformObject
      extended by eu.geclipse.core.model.impl.AbstractGridElement
          extended by eu.geclipse.info.model.GridGlueElement
              extended by eu.geclipse.info.model.GridGlueStorage
All Implemented Interfaces:
IGridElement, IGridResource, IGridStorage, IMountable

public class GridGlueStorage
extends GridGlueElement
implements IGridStorage

Implementation of the IGridElement interface for a GlueSE.


Nested Class Summary
 
Nested classes/interfaces inherited from interface eu.geclipse.core.model.IMountable
IMountable.MountPoint, IMountable.MountPointID
 
Constructor Summary
GridGlueStorage(IGridContainer parent, GlueSE glueSE)
          Construct a new GridGlueStorage for the specified GlueSE.
 
Method Summary
 GlueSE getGlueSe()
          Convenience method for getting the glue SE.
 java.lang.String getHostName()
          Get the host name of the machine (physical or virtual) that represent this resource.
 IMountable.MountPoint getMountPoint(IMountable.MountPointID mountID)
          Create a IMountable.MountPoint from a specific IMountable.MountPointID.
 IMountable.MountPointID[] getMountPointIDs()
          Get a list of mount point IDs for this IMountable.
 java.lang.String getName()
          Get the name of this element.
 java.net.URI getURI()
          Get the URI that corresponds to this grid resource.
 
Methods inherited from class eu.geclipse.info.model.GridGlueElement
getFileStore, getGlueElement, getParent, getPath, getResource, isLocal
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement
dispose, 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, getFileStore, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getFileStore, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 

Constructor Detail

GridGlueStorage

public GridGlueStorage(IGridContainer parent,
                       GlueSE glueSE)
Construct a new GridGlueStorage for the specified GlueSE.

Parameters:
parent - The parent of this element.
glueSE - The associated glue SE object.
Method Detail

getGlueSe

public GlueSE getGlueSe()
Convenience method for getting the glue SE.

Returns:
The associated GlueSE object.

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
Overrides:
getName in class GridGlueElement
Returns:
The name of this element.

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.

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.

getMountPoint

public IMountable.MountPoint getMountPoint(IMountable.MountPointID mountID)
Description copied from interface: IMountable
Create a IMountable.MountPoint from a specific IMountable.MountPointID. Callers should expect implementations of this methods not to be very fast.

Specified by:
getMountPoint in interface IMountable
Parameters:
mountID - The IMountable.MountPointID from which to create the mount point.
Returns:
The IMountable.MountPoint corresponding to the specified IMountable.MountPointID or null if this implementation can not create a mount point for the specified ID.

getMountPointIDs

public IMountable.MountPointID[] getMountPointIDs()
Description copied from interface: IMountable
Get a list of mount point IDs for this IMountable. These IDs may be used afterwards in order to create specific IMountable.MountPoints. Implementations of this methods should be straight-forward and fast. A specific implementation could for instance just return a statically defined array of IMountable.MountPointIDs.

Specified by:
getMountPointIDs in interface IMountable
Returns:
A list of IMountable.MountPointIDs.

g-Eclipse
Release 1.0.0