g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IGridInfoService

All Superinterfaces:
IGridElement, IGridResource, IGridService
All Known Subinterfaces:
IExtendedGridInfoService
All Known Implementing Classes:
AbstractGridInfoService

public interface IGridInfoService
extends IGridService

An info service is an IGridService that provides access to a grid-related information database.


Method Summary
 IGridResource[] fetchResources(IGridContainer parent, IVirtualOrganization vo, IGridResourceCategory category, boolean exclusive, java.lang.Class<? extends IGridResource> typeFilter, IProgressMonitor monitor)
          This method fetches resources that are available for the specified VO.
 IGridResource[] fetchResources(IGridContainer parent, IVirtualOrganization vo, IGridResourceCategory category, IProgressMonitor monitor)
          Convenience method that fetches all resources for the specified VO and for the specified (inclusive) category without applying a type filter.
 
Methods inherited from interface eu.geclipse.core.model.IGridResource
getHostName, getURI
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 

Method Detail

fetchResources

IGridResource[] fetchResources(IGridContainer parent,
                               IVirtualOrganization vo,
                               IGridResourceCategory category,
                               IProgressMonitor monitor)
                               throws ProblemException
Convenience method that fetches all resources for the specified VO and for the specified (inclusive) category without applying a type filter. So this is equivalent to

fetchResources( parent, vo, category, false, null, monitor )

Parameters:
parent - The parent of the returned resources. This is the point in the Grid model were the resources are hooked in.
vo - The VO for which to query the information service. Only resources that are accessible for the specified VO will be returned.
category - The category of resources that should be fetched. This may be null. In that case either all (if exclusive is false) or no resources (if exclusive is true) will be returned.
monitor - A progress monitor used to monitor this operation.
Returns:
An array of Grid resources that apply to the specified arguments.
Throws:
ProblemException - A problem Exception
See Also:
fetchResources(IGridContainer, IVirtualOrganization, IGridResourceCategory, boolean, Class, IProgressMonitor), IGridResourceCategory

fetchResources

IGridResource[] fetchResources(IGridContainer parent,
                               IVirtualOrganization vo,
                               IGridResourceCategory category,
                               boolean exclusive,
                               java.lang.Class<? extends IGridResource> typeFilter,
                               IProgressMonitor monitor)
                               throws ProblemException
This method fetches resources that are available for the specified VO. The returned resources will belong to the specified resource category. If exclusive is true only resources of the specified category are returned, otherwise also resources of child categories are returned. If a typeFilter is defined the returned array will only contain elements of the specified type. This is a convenience functionality in order to prevent invokers from stepping through the array by themselves and checking each element against a specific type.

Parameters:
parent - The parent of the returned resources. This is the point in the Grid model were the resources are hooked in.
vo - The VO for which to query the information service. Only resources that are accessible for the specified VO will be returned.
category - The category of resources that should be fetched. This may be null. In that case either all (if exclusive is false) or no resources (if exclusive is true) will be returned.
exclusive - Determines if only resources specific for the specified resource category will be returned (exclusive == true) or if also resources of child categories will be returned (exclusive == false).
typeFilter - A filter that is applied to the returned resources. If such a filter is specified callers may safely cast the elements of the result array to the filtered type. This parameter may be null.
monitor - A progress monitor used to monitor this operation.
Returns:
An array of Grid resources that apply to the specified arguments. Does not return null.
Throws:
ProblemException - A problem Exception
See Also:
fetchResources(IGridContainer, IVirtualOrganization, IGridResourceCategory, IProgressMonitor), IGridResourceCategory

g-Eclipse
Release 1.0.0