org.gridbus.broker.parsers
Interface ApplicationParser

All Known Implementing Classes:
AbstractApplicationParser, AdlParser, JsdlParser, WebServiceInvocationParser, XPMLParser

public interface ApplicationParser


Method Summary
 java.lang.String getApplicationId()
          get the current parsing application's id.
 void parseApplication(java.lang.String appDescriptionFilename, ApplicationManager appStore)
          Parses the Application from the given file, and creates an appropriate type of ApplicationContext.
 void parseWorkUnits(org.w3c.dom.Node appNode, ApplicationManager appStore)
          Parses the application description file and creates jobs, that are added to the Application, parsed earlier.
 void parseWorkUnits(java.lang.String appDescriptionFilename, ApplicationManager appStore)
          Parses the application description file and creates jobs, that are added to the Application, parsed earlier.
 void setApplicationId(java.lang.String applicationId)
           
 void validate(java.lang.String appDescriptionFilename)
          Checks if the file is valid.
 

Method Detail

parseApplication

void parseApplication(java.lang.String appDescriptionFilename,
                      ApplicationManager appStore)
                      throws java.lang.Exception
Parses the Application from the given file, and creates an appropriate type of ApplicationContext.

Parameters:
appDescriptionFilename -
appStore -
Throws:
java.lang.Exception

parseWorkUnits

void parseWorkUnits(java.lang.String appDescriptionFilename,
                    ApplicationManager appStore)
                    throws java.lang.Exception
Parses the application description file and creates jobs, that are added to the Application, parsed earlier. This method is meant to be called after the call to the parseApplication() method.

Parameters:
appDescriptionFilename -
appStore -
Throws:
java.lang.Exception

parseWorkUnits

void parseWorkUnits(org.w3c.dom.Node appNode,
                    ApplicationManager appStore)
                    throws java.lang.Exception
Parses the application description file and creates jobs, that are added to the Application, parsed earlier. This method is meant to be called after the call to the parseApplication() method.

Parameters:
appDescriptionFilename -
appStore -
Throws:
java.lang.Exception

validate

void validate(java.lang.String appDescriptionFilename)
              throws java.lang.Exception
Checks if the file is valid. Throws an Exception if it is not valid according to the Schema.

Parameters:
appDescriptionFilename -
Throws:
java.lang.Exception

getApplicationId

java.lang.String getApplicationId()
                                  throws java.lang.Exception
get the current parsing application's id.

Returns:
Throws:
java.lang.Exception

setApplicationId

void setApplicationId(java.lang.String applicationId)
                      throws java.lang.Exception
Throws:
java.lang.Exception

Copyright © The University of Melbourne. 2006