|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPlatformObject
eu.geclipse.core.model.impl.AbstractGridElement
eu.geclipse.core.model.impl.AbstractGridContainer
eu.geclipse.core.model.impl.AbstractVirtualOrganization
public abstract class AbstractVirtualOrganization
Abstract implementation of the
IVirtualOrganization interface.
| Method Summary | |
|---|---|
boolean |
canContain(IGridElement element)
Determines if this may contain the specified element. |
void |
dispose()
Clean up all resources that this element uses internally. |
IGridApplicationManager |
getApplicationManager()
Returns the IGridApplicationManager associated to this VO. |
IGridResource[] |
getAvailableResources(IGridResourceCategory category,
boolean exclusive,
IProgressMonitor monitor)
Gets all available resources of the specified resource category. |
IGridComputing[] |
getComputing(IProgressMonitor monitor)
|
IFileStore |
getFileStore()
Get the file store that this element is associated with. |
IGridInfoService |
getInfoService()
Gets the info service of this VO. |
IGridJobService[] |
getJobSubmissionServices(IProgressMonitor monitor)
Gets a list of all job submission services that are available for this virtual organization. |
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. |
IGridService[] |
getServices(IProgressMonitor monitor)
|
IGridStorage[] |
getStorage(IProgressMonitor monitor)
|
IGridResourceCategory[] |
getSupportedCategories()
Gets the resource categories that are supported by this VO. |
boolean |
isLocal()
Determines if this element is local. |
void |
load()
Load the properties of that element. |
void |
refreshResources(IGridResourceCategory category,
IProgressMonitor monitor)
Reload the resources of the specified category without taking any caching into account. |
void |
save()
Write the properties of this element. |
| Methods inherited from class eu.geclipse.core.model.impl.AbstractGridContainer |
|---|
contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, refresh, setDirty |
| Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement |
|---|
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.IVirtualOrganization |
|---|
getId, getTypeName, getWizardId |
| Methods inherited from interface eu.geclipse.core.model.IGridContainer |
|---|
contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, isLazy, refresh, setDirty |
| Methods inherited from interface eu.geclipse.core.model.IGridElement |
|---|
getName, getProject, isHidden, isVirtual |
| Methods inherited from interface eu.geclipse.core.model.IGridElement |
|---|
getName, getProject, isHidden, isVirtual |
| Method Detail |
|---|
public boolean canContain(IGridElement element)
IGridContainer
canContain in interface IGridContainercanContain in class AbstractGridContainerelement - The element that may be contained in
this container.
public void dispose()
IGridElement
dispose in interface IGridElementdispose in class AbstractGridContainerpublic IGridApplicationManager getApplicationManager()
IVirtualOrganizationIGridApplicationManager associated to this VO.
getApplicationManager in interface IVirtualOrganizationIGridApplicationManager or null if this
VO does not support application deployment.
public IGridResource[] getAvailableResources(IGridResourceCategory category,
boolean exclusive,
IProgressMonitor monitor)
throws ProblemException
IVirtualOrganization
getAvailableResources in interface IVirtualOrganizationcategory - The resource category.exclusive - If true only resources are returned that
directly match the specified category. Otherwise also resource are
returned that match any child category of the specified resource
category.monitor - Use to monitor the progress.
- Returns:
- An array of available resources.
- Throws:
ProblemException - If for any reason the resources could not
be fetched from the underlying information service.- See Also:
IGridInfoService.fetchResources(IGridContainer, IVirtualOrganization, IGridResourceCategory, IProgressMonitor)
public IGridComputing[] getComputing(IProgressMonitor monitor)
throws ProblemException
ProblemExceptionpublic IFileStore getFileStore()
IGridElementnull 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.
getFileStore in interface IGridElement
public IGridInfoService getInfoService()
throws ProblemException
IVirtualOrganization
getInfoService in interface IVirtualOrganizationProblemException - If an error occurs while the service
is fetched.public IGridContainer getParent()
IGridElementIGridContainer. 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.
getParent in interface IGridElementpublic IPath getPath()
IGridElement@IResource.
getPath in interface IGridElementpublic IResource getResource()
IGridElementnull if - and only if - this element is virtual.
getResource in interface IGridElementnull if this
element is virtual.
public IGridService[] getServices(IProgressMonitor monitor)
throws ProblemException
ProblemException
public IGridStorage[] getStorage(IProgressMonitor monitor)
throws ProblemException
ProblemExceptionpublic IGridResourceCategory[] getSupportedCategories()
IVirtualOrganization
getSupportedCategories in interface IVirtualOrganizationIGridResourceCategory instances supported by
this VO.
public IGridJobService[] getJobSubmissionServices(IProgressMonitor monitor)
throws ProblemException
IVirtualOrganization
getJobSubmissionServices in interface IVirtualOrganizationmonitor - Used to monitor the progress.
ProblemException - If an error occurs while retrieving
the services.public boolean isLocal()
IGridElementIResource) that
is local in the means that it is located on the local machine.
isLocal in interface IGridElement
public void load()
throws ProblemException
IStorableElement
load in interface IStorableElementProblemException - If an error occurs while loading
this element. This is mainly due to IOExceptions.
public void refreshResources(IGridResourceCategory category,
IProgressMonitor monitor)
throws ProblemException
IVirtualOrganization
refreshResources in interface IVirtualOrganizationcategory - The resource category to be refreshed.monitor - Used to monitor the progress.
ProblemException - If an error occurs while refreshing
the resources.
public void save()
throws ProblemException
IStorableElement
save in interface IStorableElementProblemException - If an error occurs while saving
this element. This is mainly due to IOExceptions.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||