g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IMountable

All Superinterfaces:
IGridElement
All Known Subinterfaces:
IGridConnection, IGridConnectionElement, IGridStorage
All Known Implementing Classes:
GridGlueService, GridGlueStorage

public interface IMountable
extends IGridElement

The IMountable interface defines methods and anonymous classes for making grid elements accessible via a grid connection. The getMountPointIDs()-method returns a list of IMountable.MountPointIDs that may be used afterwards to create a specific IMountable.MountPoint with the getMountPoint(MountPointID)-method. The separation of the mount point creation into these two methods is necessary since the IMountable.MountPoint creation itself may require online and therefore long running operations if some remote services have to be invoked in order to obtain the URI for a specific mount.


Nested Class Summary
static class IMountable.MountPoint
          This anonymous class represents a mount point and IGridConnection can be created from the enclosed information.
static class IMountable.MountPointID
          This anonymous class acts as a unique identifier of a mount point for a specific IMountable implementation.
 
Method Summary
 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.
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 

Method Detail

getMountPointIDs

IMountable.MountPointID[] getMountPointIDs()
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.

Returns:
A list of IMountable.MountPointIDs.

getMountPoint

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

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.

g-Eclipse
Release 1.0.0