g-Eclipse
Release 1.0.0

eu.geclipse.core.model.impl
Class GenericGridInstallParameters

java.lang.Object
  extended by eu.geclipse.core.model.impl.GenericGridInstallParameters
All Implemented Interfaces:
IGridInstallParameters

public class GenericGridInstallParameters
extends java.lang.Object
implements IGridInstallParameters

Generic core implemetation of application installation parameters. Middleware-specific implementations may extend this class in order to provide other necessary parameters.


Constructor Summary
GenericGridInstallParameters()
           
 
Method Summary
 void addSource(java.net.URI uri)
          Add a new source to the list of sources.
 void addSources(java.net.URI[] uris)
          Add new sources to the list of sources.
 void addTarget(IGridComputing computing)
          Add a new target to the list of targets.
 void addTargets(IGridComputing[] computings)
          Add new targets to the list of targets.
 java.net.URI[] getSources()
          Get the sources for the installation.
 IFileStore[] getSourcesAsFileStore()
          Get the sources of this installation process.
 java.lang.String getTag()
          Get a tag that is used to refer to this installation afterwards.
 IGridComputing[] getTargets()
          Get the targets of the installation, i.e. the computings where the sources should be installed to.
 void setSources(java.net.URI[] uris)
          Sets the sources for this installation.
 void setTag(java.lang.String tag)
          Sets the software tag for this installation.
 void setTargets(IGridComputing[] targets)
          Sets the targets for this installation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericGridInstallParameters

public GenericGridInstallParameters()
Method Detail

addSource

public void addSource(java.net.URI uri)
Add a new source to the list of sources.

Parameters:
uri - The source to be added.

addSources

public void addSources(java.net.URI[] uris)
Add new sources to the list of sources.

Parameters:
uris - The sources to be added.

addTarget

public void addTarget(IGridComputing computing)
Add a new target to the list of targets.

Parameters:
computing - The target to be added.

addTargets

public void addTargets(IGridComputing[] computings)
Add new targets to the list of targets.

Parameters:
computings - The new targets.

getSources

public java.net.URI[] getSources()
Description copied from interface: IGridInstallParameters
Get the sources for the installation. This array holds a list of URIs pointing to files that are intended to be installed. The type of these files depends on the middleware-specific requirements of the application installation process.

Specified by:
getSources in interface IGridInstallParameters
Returns:
The sources of the application installation, i.e. the files that should be installed or that are needed for a installation.

getSourcesAsFileStore

public IFileStore[] getSourcesAsFileStore()
                                   throws ProblemException
Get the sources of this installation process. The sources are returned as IFileStores. This may fail if any of the provided URIs is invalid.

Returns:
The sources as IFileStores.
Throws:
ProblemException - If no file store could be created from one of the source URIs.

getTag

public java.lang.String getTag()
Description copied from interface: IGridInstallParameters
Get a tag that is used to refer to this installation afterwards. This may not be used by the underlying installation process.

Specified by:
getTag in interface IGridInstallParameters
Returns:
The installation's software tag.

getTargets

public IGridComputing[] getTargets()
Description copied from interface: IGridInstallParameters
Get the targets of the installation, i.e. the computings where the sources should be installed to.

Specified by:
getTargets in interface IGridInstallParameters
Returns:
The installation's targets.

setSources

public void setSources(java.net.URI[] uris)
Sets the sources for this installation.

Parameters:
uris - The new sources.

setTag

public void setTag(java.lang.String tag)
Sets the software tag for this installation.

Parameters:
tag - The new software tag.

setTargets

public void setTargets(IGridComputing[] targets)
Sets the targets for this installation.

Parameters:
targets - The new targets.

g-Eclipse
Release 1.0.0