org.objectweb.proactive.core.descriptor.xml
Class ProcessDefinitionHandler

java.lang.Object
  |
  +--org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
        |
        +--org.objectweb.proactive.core.descriptor.xml.ProcessDefinitionHandler
All Implemented Interfaces:
ProActiveDescriptorConstants, UnmarshallerHandler, XMLHandler

public class ProcessDefinitionHandler
extends AbstractUnmarshallerDecorator
implements ProActiveDescriptorConstants


Nested Class Summary
protected  class ProcessDefinitionHandler.BSubProcessHandler
           
protected  class ProcessDefinitionHandler.GlobusProcessHandler
           
protected  class ProcessDefinitionHandler.JVMProcessHandler
           
protected  class ProcessDefinitionHandler.MapRshProcessHandler
           
 class ProcessDefinitionHandler.ProcessHandler
           
protected  class ProcessDefinitionHandler.PrunProcessHandler
           
protected  class ProcessDefinitionHandler.RLoginProcessHandler
           
protected  class ProcessDefinitionHandler.RSHProcessHandler
           
protected  class ProcessDefinitionHandler.SSHProcessHandler
           
 
Field Summary
protected  java.lang.String id
           
protected  ProActiveDescriptor proActiveDescriptor
           
protected  ExternalProcess targetProcess
           
 
Fields inherited from interface org.objectweb.proactive.core.descriptor.xml.ProActiveDescriptorConstants
ABS_PATH_TAG, BOOKING_DURATION_TAG, BOOT_CLASSPATH_TAG, BSUB_OPTIONS_TAG, BSUB_PROCESS_TAG, CLASSNAME_TAG, CLASSPATH_TAG, COMPONENT_DEFINITION_TAG, CREATION_PROCESS_TAG, CURRENTJVM_TAG, DEPLOYMENT_TAG, ENVIRONMENT_TAG, GLOBUS_COUNT_TAG, GLOBUS_OPTIONS_TAG, GLOBUS_PROCESS_TAG, HOST_LIST_TAG, HOSTS_NUMBER_TAG, INFRASTRUCTURE_TAG, JAVA_PATH_TAG, JVM_PROCESS_TAG, JVM_TAG, JVMPARAMETER_TAG, JVMPARAMETERS_TAG, JVMS_TAG, JVMSET_TAG, LOG4J_FILE_TAG, LOOKUP_TAG, MAP_TAG, MAPPING_TAG, MAPRSH_PROCESS_TAG, PARAMETERS_TAG, POLICY_FILE_TAG, PROACTIVE_DESCRIPTOR_TAG, PROACTIVE_PROPS_FILE_TAG, PROCESS_DEFINITION_TAG, PROCESS_REFERENCE_TAG, PROCESS_TAG, PROCESSES_TAG, PROCESSOR_PER_NODE_TAG, PROCESSOR_TAG, PRUN_OPTIONS_TAG, PRUN_OUTPUT_FILE, PRUN_PROCESS_TAG, QUEUE_NAME_TAG, REGISTER_TAG, REL_PATH_TAG, RES_REQ_TAG, RLOGIN_PROCESS_TAG, RSH_PROCESS_TAG, SCRIPT_PATH_TAG, SECURITY_TAG, SSH_PROCESS_TAG, VARIABLE_TAG, VIRTUAL_NODE_TAG, VIRTUAL_NODES_ACQUISITION_TAG, VIRTUAL_NODES_DEFINITION_TAG, VMNAME_TAG
 
Fields inherited from interface org.objectweb.proactive.core.xml.handler.UnmarshallerHandler
logger
 
Constructor Summary
ProcessDefinitionHandler(ProActiveDescriptor proActiveDescriptor)
           
 
Method Summary
 java.lang.Object getResultObject()
          Returns the object resulting of the processing of the SAX events.
protected  void notifyEndActiveHandler(java.lang.String name, UnmarshallerHandler activeHandler)
           
 void startContextElement(java.lang.String name, Attributes attributes)
          Receives notification that the XML element of given name and attributes has been read in the XML being deserialized.
 
Methods inherited from class org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
addHandler, checkActiveHandler, checkNonEmpty, endElement, endPrefixMapping, getHandler, readValue, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

proActiveDescriptor

protected ProActiveDescriptor proActiveDescriptor

targetProcess

protected ExternalProcess targetProcess
Constructor Detail

ProcessDefinitionHandler

public ProcessDefinitionHandler(ProActiveDescriptor proActiveDescriptor)
Method Detail

notifyEndActiveHandler

protected void notifyEndActiveHandler(java.lang.String name,
                                      UnmarshallerHandler activeHandler)
                               throws org.xml.sax.SAXException
Specified by:
notifyEndActiveHandler in class AbstractUnmarshallerDecorator
org.xml.sax.SAXException
See Also:
AbstractUnmarshallerDecorator.notifyEndActiveHandler(String, UnmarshallerHandler)

getResultObject

public java.lang.Object getResultObject()
                                 throws org.xml.sax.SAXException
Description copied from interface: UnmarshallerHandler
Returns the object resulting of the processing of the SAX events.

Specified by:
getResultObject in interface UnmarshallerHandler
Returns:
the object resulting of the processing of the SAX events or null
Throws:
org.xml.sax.SAXException - if the state of the handler does not allow to return any resulting object.
See Also:
UnmarshallerHandler.getResultObject()

startContextElement

public void startContextElement(java.lang.String name,
                                Attributes attributes)
                         throws org.xml.sax.SAXException
Description copied from interface: UnmarshallerHandler
Receives notification that the XML element of given name and attributes has been read in the XML being deserialized. This element is the context element of the Object being unmarshalled. This context element is the element that has triggered the use of this handler.

Specified by:
startContextElement in interface UnmarshallerHandler
Parameters:
name - the name of the element just opened
attributes - the attributes of this element
Throws:
org.xml.sax.SAXException - if an exception occur during processing
See Also:
UnmarshallerHandler.startContextElement(String, Attributes)


Copyright © April 2004 INRIA All Rights Reserved.