org.globus.mds.usefulrp.rpprovider.producers
Class ExternalProcessElementProducer

java.lang.Object
  extended byorg.globus.mds.usefulrp.rpprovider.producers.ExternalProcessElementProducer
All Implemented Interfaces:
ResourcePropertyElementProducer
Direct Known Subclasses:
SchedulerInfoElementProducer

public class ExternalProcessElementProducer
extends Object
implements ResourcePropertyElementProducer

A ResourcePropertyElementProducer which executes a external process, then attempts to parse the STDOUT stream of that process into a valid XML document.

The argument vector passed to the getElement method of this class is passed unmodified to the child process as its argument vector.

Note: This implementation will not work with .CMD or .BAT script files on MS-Windows platforms, though it will function with normal executable (.EXE) files on such platforms.


Constructor Summary
ExternalProcessElementProducer()
          Creates a new instance of ExternalProcessElementProducer
 
Method Summary
 Element getElement(String[] args)
          Generate a DOM Element that can be used as a value of a Resource Property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalProcessElementProducer

public ExternalProcessElementProducer()
Creates a new instance of ExternalProcessElementProducer

Method Detail

getElement

public Element getElement(String[] args)
                   throws Exception
Description copied from interface: ResourcePropertyElementProducer
Generate a DOM Element that can be used as a value of a Resource Property

Specified by:
getElement in interface ResourcePropertyElementProducer
Parameters:
args - An string argument vector to be passed as parameters to the implementing class
Returns:
A DOM Element
Throws:
Exception


Copyright © 1999-2006 University of Chicago. All rights reserved.