org.gridbus.broker.parsers.xpml
Class XPMLParser

java.lang.Object
  extended by org.gridbus.broker.parsers.AbstractApplicationParser
      extended by org.gridbus.broker.parsers.xpml.XPMLParser
All Implemented Interfaces:
ApplicationParser
Direct Known Subclasses:
WebServiceInvocationParser

public class XPMLParser
extends AbstractApplicationParser

Adds jobs to the broker, by parsing the XPML description.

Author:
Krishna

Constructor Summary
XPMLParser()
           
 
Method Summary
protected  Variable[] createEnumVariables(org.gridbus.schemas.xpml.x2006.x01.xpml.ParameterType param)
           
protected  Qos createQos(org.gridbus.schemas.xpml.x2006.x01.xpml.XpmlDocument.Xpml.Qos xqos)
           
protected  Variable[] createRangeVariables(org.gridbus.schemas.xpml.x2006.x01.xpml.ParameterType param)
           
protected  Variable createSingleVariable(org.gridbus.schemas.xpml.x2006.x01.xpml.ParameterType param)
           
protected  java.lang.Object getRootElement(org.apache.xmlbeans.XmlObject appDoc)
           rootElement returns the root element of the given document
 void parseApplication(org.w3c.dom.Node appNode, ApplicationManager appStore)
          .
 void parseApplication(java.lang.String appDescriptionFilename, ApplicationManager appStore)
          Parses the Application from the given file, and creates an appropriate type of ApplicationContext.
protected  org.apache.xmlbeans.XmlObject parseDocument(org.w3c.dom.Node appNode)
           
protected  org.apache.xmlbeans.XmlObject parseDocument(java.lang.String appDescriptionFilename)
           parseDocument accepts the xml description file and parse to related XmlObject Subclasses can provide their own concrete type of the XmlObject
 void parseWorkUnits(org.w3c.dom.Node applicationNode, 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.
 
Methods inherited from class org.gridbus.broker.parsers.AbstractApplicationParser
getApplicationId, setApplicationId, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPMLParser

public XPMLParser()
Method Detail

parseDocument

protected org.apache.xmlbeans.XmlObject parseDocument(java.lang.String appDescriptionFilename)
                                               throws java.lang.Exception
Description copied from class: AbstractApplicationParser
parseDocument accepts the xml description file and parse to related XmlObject Subclasses can provide their own concrete type of the XmlObject

Specified by:
parseDocument in class AbstractApplicationParser
Returns:
XmlObject that can be validated
Throws:
java.lang.Exception

parseDocument

protected org.apache.xmlbeans.XmlObject parseDocument(org.w3c.dom.Node appNode)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

getRootElement

protected java.lang.Object getRootElement(org.apache.xmlbeans.XmlObject appDoc)
                                   throws java.lang.Exception
Description copied from class: AbstractApplicationParser
rootElement returns the root element of the given document

Specified by:
getRootElement in class AbstractApplicationParser
Returns:
the root element of the given document
Throws:
java.lang.Exception

createQos

protected Qos createQos(org.gridbus.schemas.xpml.x2006.x01.xpml.XpmlDocument.Xpml.Qos xqos)
                 throws java.lang.Exception
Throws:
java.lang.Exception

parseApplication

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

Throws:
java.lang.Exception
See Also:
ApplicationParser.parseApplication(java.lang.String, org.gridbus.broker.common.ApplicationManager)

parseApplication

public void parseApplication(org.w3c.dom.Node appNode,
                             ApplicationManager appStore)
                      throws java.lang.Exception
.

Throws:
java.lang.Exception
See Also:
ApplicationParser.parseApplication(java.lang.String, org.gridbus.broker.common.ApplicationManager)

parseWorkUnits

public void parseWorkUnits(org.w3c.dom.Node applicationNode,
                           ApplicationManager appStore)
                    throws java.lang.Exception
Description copied from interface: ApplicationParser
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.

Throws:
java.lang.Exception
See Also:
ApplicationParser.parseWorkUnits(org.w3c.dom.Node, org.gridbus.broker.common.ApplicationManager)

createSingleVariable

protected Variable createSingleVariable(org.gridbus.schemas.xpml.x2006.x01.xpml.ParameterType param)

createRangeVariables

protected Variable[] createRangeVariables(org.gridbus.schemas.xpml.x2006.x01.xpml.ParameterType param)

createEnumVariables

protected Variable[] createEnumVariables(org.gridbus.schemas.xpml.x2006.x01.xpml.ParameterType param)

parseWorkUnits

public void parseWorkUnits(java.lang.String appDescriptionFilename,
                           ApplicationManager appStore)
                    throws java.lang.Exception
Description copied from interface: ApplicationParser
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.

Throws:
java.lang.Exception
See Also:
ApplicationParser.parseWorkUnits(java.lang.String, org.gridbus.broker.common.ApplicationManager)

Copyright © The University of Melbourne. 2006