g-Eclipse
Release 1.0.0

eu.geclipse.info.model
Class GridGlueService

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.GridGlueService
All Implemented Interfaces:
IGridElement, IGridResource, IGridService, IMountable

public class GridGlueService
extends GridGlueElement
implements IGridService, IMountable

Implementation of the IGridElement interface for a GlueService.


Nested Class Summary
 
Nested classes/interfaces inherited from interface eu.geclipse.core.model.IMountable
IMountable.MountPoint, IMountable.MountPointID
 
Constructor Summary
GridGlueService(IGridContainer parent, GlueService glueService)
          Construct a new GridGlueService for the specified GlueService.
 
Method Summary
 GlueService getGlueService()
           
 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.lang.String getType()
           
 java.net.URI getURI()
          Get the URI that corresponds to this grid resource.
 boolean isLfcService()
           
 boolean isSrmService()
           
 
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
 

Constructor Detail

GridGlueService

public GridGlueService(IGridContainer parent,
                       GlueService glueService)
Construct a new GridGlueService for the specified GlueService.

Parameters:
parent - The parent of this element.
glueService - The associated glue Service object.
Method Detail

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.

getGlueService

public GlueService getGlueService()
Returns:
GlueService

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.

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.

getType

public java.lang.String getType()

isLfcService

public boolean isLfcService()

isSrmService

public boolean isSrmService()

g-Eclipse
Release 1.0.0