org.globus.ogsa.impl.base.providers.servicedata
Class SimpleScriptExecutionProvider

java.lang.Object
  extended byorg.globus.ogsa.impl.base.providers.servicedata.SimpleScriptExecutionProvider
All Implemented Interfaces:
DOMDataProvider, SimpleDataProvider

public abstract class SimpleScriptExecutionProvider
extends java.lang.Object
implements DOMDataProvider

Generic script executing provider


Field Summary
protected  java.lang.String desc
           
protected  java.lang.String errorString
           
protected  java.lang.String name
           
protected  java.lang.Process process
           
protected  org.w3c.dom.Document resultDoc
           
 
Constructor Summary
SimpleScriptExecutionProvider(java.lang.String name, java.lang.String desc)
          Creates a new instance of SimpleScriptExecutionProvider
 
Method Summary
protected static java.lang.String argVectorToString(java.lang.String[] args)
           
 java.lang.String getDefaultArgs()
          If the provider has a set of default arguments, they can be retrieved with this function
 java.lang.String getDescription()
          Returns a description of the provider's functionality.
 java.lang.String getErrorString()
          The provider should return a string representation of the current error, if any
 java.lang.String getName()
          Returns the display name of the provider.
 org.w3c.dom.Document run(java.lang.String args)
           
 void run(java.lang.String args, java.io.OutputStream outStream)
          Triggers the execution of the provider in order to update the provider's internal state, sending the output to the specified OutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

desc

protected java.lang.String desc

resultDoc

protected org.w3c.dom.Document resultDoc

process

protected java.lang.Process process

errorString

protected java.lang.String errorString
Constructor Detail

SimpleScriptExecutionProvider

public SimpleScriptExecutionProvider(java.lang.String name,
                                     java.lang.String desc)
Creates a new instance of SimpleScriptExecutionProvider

Method Detail

getDefaultArgs

public java.lang.String getDefaultArgs()
If the provider has a set of default arguments, they can be retrieved with this function

Specified by:
getDefaultArgs in interface SimpleDataProvider

getErrorString

public java.lang.String getErrorString()
The provider should return a string representation of the current error, if any

Specified by:
getErrorString in interface SimpleDataProvider

getDescription

public java.lang.String getDescription()
Returns a description of the provider's functionality.

Specified by:
getDescription in interface SimpleDataProvider

getName

public java.lang.String getName()
Returns the display name of the provider.

Specified by:
getName in interface SimpleDataProvider

run

public void run(java.lang.String args,
                java.io.OutputStream outStream)
         throws java.lang.Exception
Triggers the execution of the provider in order to update the provider's internal state, sending the output to the specified OutputStream

Specified by:
run in interface SimpleDataProvider
Throws:
java.lang.Exception

run

public org.w3c.dom.Document run(java.lang.String args)
                         throws java.lang.Exception
Specified by:
run in interface DOMDataProvider
Throws:
java.lang.Exception

argVectorToString

protected static java.lang.String argVectorToString(java.lang.String[] args)