g-Eclipse
Release 1.0.0

eu.geclipse.core.model.impl
Class AbstractApplicationManager

java.lang.Object
  extended by PlatformObject
      extended by eu.geclipse.core.model.impl.AbstractGridElement
          extended by eu.geclipse.core.model.impl.AbstractApplicationManager
All Implemented Interfaces:
IGridApplicationManager, IGridElement

public abstract class AbstractApplicationManager
extends AbstractGridElement
implements IGridApplicationManager

Abstract implementation of the IGridApplicationManager interfaces that should be used by middleware-specific implementations rather than the interface itself. Note that each VO should only have one application manager.


Constructor Summary
AbstractApplicationManager(IVirtualOrganization vo)
          Create a new application manager for the specified VO.
 
Method Summary
 IGridApplication[] getApplications(IGridComputing computing, IProgressMonitor monitor)
          Get all known applications for the specified IGridComputing.
 IFileStore getFileStore()
          Get the file store that this element is associated with.
 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.
 IVirtualOrganization getVo()
          Get the VO this manager is associated with.
 boolean isLocal()
          Determines if this element is local.
 
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.IGridApplicationManager
install, uninstall, validate
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getName, getProject, isHidden, isVirtual
 

Constructor Detail

AbstractApplicationManager

public AbstractApplicationManager(IVirtualOrganization vo)
Create a new application manager for the specified VO.

Parameters:
vo - The VO this application manager is instantiated for.
Method Detail

getApplications

public IGridApplication[] getApplications(IGridComputing computing,
                                          IProgressMonitor monitor)
                                   throws ProblemException
Description copied from interface: IGridApplicationManager
Get all known applications for the specified IGridComputing. If computing is null all applications are returned that are defined on any computing for the associated VO.

Specified by:
getApplications in interface IGridApplicationManager
Parameters:
computing - The IGridComputing that should be queried for available applications. If may be null. In this case all computings of the associated VO are queried for available applications.
monitor - A IProgressMonitor to monitor the progress of this operations.
Returns:
All available applications for the specified IGridComputing or the VO itself.
Throws:
ProblemException - If an error occurs while fetching the applications.

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.

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.

getVo

public IVirtualOrganization getVo()
Description copied from interface: IGridApplicationManager
Get the VO this manager is associated with.

Specified by:
getVo in interface IGridApplicationManager
Returns:
This manager's VO.

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