xmlBlaster 2.2.0 client API

org.xmlBlaster.util
Class Execute

java.lang.Object
  extended by org.xmlBlaster.util.Execute

public class Execute
extends java.lang.Object

Starts a program and delivers the exit value and some out parameter.


Field Summary
static java.lang.String AIX
           
static java.lang.String DIGITAL_UNIX
           
static java.lang.String FREE_BSD
           
static java.lang.String HP_UX
           
static java.lang.String IRIX
           
static java.lang.String LINUX
           
static java.lang.String MAC
           
static java.lang.String MPE
           
static java.lang.String NETWARE
           
static java.lang.String OS2
           
static java.lang.String SOLARIS
           
static java.lang.String WIN_2000
           
static java.lang.String WIN_95
           
static java.lang.String WIN_98
           
static java.lang.String WIN_NT
           
static java.lang.String WIN_XP
           
 
Constructor Summary
Execute(java.lang.String[] commandArr, java.lang.String[] envArr)
           
Execute(java.lang.String[] commandArr, java.lang.String[] envArr, long sleepDelay)
          Construct an instance which can execute a program with the given parameters.
 
Method Summary
 java.lang.String getErrorText()
          If not null an error occurred in run()
 int getExitValue()
           
 java.lang.String getStderr()
           
 java.lang.String getStdout()
           
static boolean isWindows()
           
static void main(java.lang.String[] args)
          org.xmlBlaster.util.Execute ls -l
 void run()
          Start
 void setExecuteListener(I_ExecuteListener l)
          Not thread safe, don't set to null during operation
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AIX

public static final java.lang.String AIX
See Also:
Constant Field Values

DIGITAL_UNIX

public static final java.lang.String DIGITAL_UNIX
See Also:
Constant Field Values

FREE_BSD

public static final java.lang.String FREE_BSD
See Also:
Constant Field Values

HP_UX

public static final java.lang.String HP_UX
See Also:
Constant Field Values

IRIX

public static final java.lang.String IRIX
See Also:
Constant Field Values

LINUX

public static final java.lang.String LINUX
See Also:
Constant Field Values

MAC

public static final java.lang.String MAC
See Also:
Constant Field Values

MPE

public static final java.lang.String MPE
See Also:
Constant Field Values

NETWARE

public static final java.lang.String NETWARE
See Also:
Constant Field Values

OS2

public static final java.lang.String OS2
See Also:
Constant Field Values

SOLARIS

public static final java.lang.String SOLARIS
See Also:
Constant Field Values

WIN_2000

public static final java.lang.String WIN_2000
See Also:
Constant Field Values

WIN_95

public static final java.lang.String WIN_95
See Also:
Constant Field Values

WIN_98

public static final java.lang.String WIN_98
See Also:
Constant Field Values

WIN_NT

public static final java.lang.String WIN_NT
See Also:
Constant Field Values

WIN_XP

public static final java.lang.String WIN_XP
See Also:
Constant Field Values
Constructor Detail

Execute

public Execute(java.lang.String[] commandArr,
               java.lang.String[] envArr)

Execute

public Execute(java.lang.String[] commandArr,
               java.lang.String[] envArr,
               long sleepDelay)
Construct an instance which can execute a program with the given parameters.

Method Detail

isWindows

public static boolean isWindows()

setExecuteListener

public void setExecuteListener(I_ExecuteListener l)
Not thread safe, don't set to null during operation


run

public void run()
Start


stop

public void stop()

getStdout

public java.lang.String getStdout()

getStderr

public java.lang.String getStderr()

getExitValue

public int getExitValue()

getErrorText

public java.lang.String getErrorText()
If not null an error occurred in run()


main

public static void main(java.lang.String[] args)
org.xmlBlaster.util.Execute ls -l


xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.