|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.jsdl.ui.preference.ApplicationParametersRegistry
public class ApplicationParametersRegistry
Register that manages GridApplicationParameters, which are created,
removed and edited while gEclipse is run. Those objects are serialized, so
there are accessible after Eclipse is restarted. This class is singleton.
| Method Summary | |
|---|---|
void |
addApplicationSpecificData(java.lang.String appName,
java.lang.String appPath,
Path xmlPath,
Path jsdlPath,
IVirtualOrganization vo)
Method for adding user-defined parameters to this registry. |
void |
addContentChangeListener(IContentChangeListener listener)
|
void |
editApplicationSpecificData(GridApplicationParameters oldASO,
java.lang.String newAppName,
java.lang.String newAppPath,
java.lang.String newXMLPath,
java.lang.String newJSDLPath)
Changes given GridApplicationParameters. |
IGridApplicationParameters |
getApplicationData(int paramId)
Returns application parameter object with given id. |
java.util.Map<java.lang.String,java.lang.Integer> |
getApplicationDataMapping(IVirtualOrganization vo)
Returns map of applications names as a keys and corresponding application's parameters object's id as a value. |
java.util.List<IGridApplicationParameters> |
getApplicationParameters(IVirtualOrganization vo)
Returns stored values of applications' parameters for given virtual organization. |
static ApplicationParametersRegistry |
getInstance()
Returns the only instance (singleton) of this registry. |
void |
removeApplicationParameters(GridApplicationParameters param)
Method for removing application's parameters from registry. |
void |
removeContentChangeListener(IContentChangeListener listener)
|
void |
updateApplicationsParameters(IVirtualOrganization vo,
IProgressMonitor monitor)
Updates registry with most up-to-date values of applications' parameters of a given virtual organization. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ApplicationParametersRegistry getInstance()
public java.util.List<IGridApplicationParameters> getApplicationParameters(IVirtualOrganization vo)
vo - virtual organization for which applications' parameters will be
returned. This value can be null - indicating
that parameters for all available virtual organizations should
be returned.
updateApplicationsParameters(IVirtualOrganization, IProgressMonitor)
before calling this method.
public void updateApplicationsParameters(IVirtualOrganization vo,
IProgressMonitor monitor)
throws ProblemException
vo - virtual organization for which applications' parameters will be
updated. This value can be null - indicating that
parameters for all available virtual organizations should be
updated.monitor - this may be a long-running operation. Parent method calling
this operation should provide a progress monitor for it.
ProblemException - it is thrown in case registry was not able to
access resourcespublic void addContentChangeListener(IContentChangeListener listener)
public void removeContentChangeListener(IContentChangeListener listener)
public void removeApplicationParameters(GridApplicationParameters param)
throws ApplicationParametersException
param - parameter to be removed
ApplicationParametersException - is thrown when registry doesn't
contain user-defined parameter equal to one passed to this
method
public void addApplicationSpecificData(java.lang.String appName,
java.lang.String appPath,
Path xmlPath,
Path jsdlPath,
IVirtualOrganization vo)
appName - application nameappPath - application executable path, this is optional and may be
nullxmlPath - path to file containing XML definition of JSDL wizard
additional pages.jsdlPath - path to file containing base JSDL file which will be used
as a "parent" for JSDL files created for this application.vo - virtual application for which this application is defined,
null indicates that it is defined for all virtual
organization available
public void editApplicationSpecificData(GridApplicationParameters oldASO,
java.lang.String newAppName,
java.lang.String newAppPath,
java.lang.String newXMLPath,
java.lang.String newJSDLPath)
throws ApplicationParametersException
GridApplicationParameters. In this object given
values will be set. All listeners are notified of this change. Note
that this can be done only for user-defined parameters - not for those
fetched from info system, as they are defined on "server side" and
modifying them from registy might result in confusion if they are changed
also on "the server side" or not.
oldASO - object to changenewAppName - application name to change in given
ApplicationSpecificObjectnewAppPath - path to executable file to change in given
ApplicationSpecificObjectnewXMLPath - path to XML file to change in given
ApplicationSpecificObjectnewJSDLPath - path to JSDL file to change in given
ApplicationSpecificObject
ApplicationParametersException - is thrown when registry doesn't
contain user-defined parameter equal to one passed to this
methodpublic java.util.Map<java.lang.String,java.lang.Integer> getApplicationDataMapping(IVirtualOrganization vo)
vo - virtual organization for which list of application's parameters
should be created. null value indicates all
virtual organizations available.
public IGridApplicationParameters getApplicationData(int paramId)
paramId - id of application parameter object
null
if registry does not hold object with such id
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||