CRRemoteTestProxy MBean

Partial ObjectName:
WebSphere:*,type=CRRemoteTestProxy


MBean CRRemoteTestProxy

remotely executes a junit testcase


Operation Summary
voidstartCapture()
           start capture of systemout and systemerr
voidrunTest(java.lang.String className, java.lang.String testName)
           executes the test
voidstopCapture()
           stop capture of systemout and systemerr
java.lang.ObjectexecuteStaticMethod(java.lang.Class targetClass, java.lang.String methodName, java.lang.Class[] argTypes, java.lang.Object[] args)
           executes a static method
java.lang.StringgetSystemOut()
           retrieves systemout output
java.lang.StringgetSystemErr()
           retrieves systemerr output
java.lang.StringtransferFile(java.lang.String fileName, [B fileBytes)
           transfers the given file to the remote system
java.lang.StringtransferFile(java.lang.String fileName, [B fileBytes, boolean append)
           transfers the given file to the remote system
java.lang.StringremoteExec(java.lang.String[] cmdArray)
           remote execs the given command array
java.lang.Object[]getRemoteExecResults(java.lang.String pid)
           gets the results of remote execution
java.lang.StringgetProperty(java.lang.String propertyName)
           retrieves the named system property

Operation Detail

startCapture

public void startCapture()
start capture of systemout and systemerr

runTest

public void runTest(java.lang.String className, java.lang.String testName)
executes the test
Parameters:
className -
testName -

stopCapture

public void stopCapture()
stop capture of systemout and systemerr

executeStaticMethod

public java.lang.Object executeStaticMethod(java.lang.Class targetClass, java.lang.String methodName, java.lang.Class[] argTypes, java.lang.Object[] args)
executes a static method
Parameters:
targetClass -
methodName -
argTypes -
args -

getSystemOut

public java.lang.String getSystemOut()
retrieves systemout output

getSystemErr

public java.lang.String getSystemErr()
retrieves systemerr output

transferFile

public java.lang.String transferFile(java.lang.String fileName, [B fileBytes)
transfers the given file to the remote system
Parameters:
fileName -
fileBytes -

transferFile

public java.lang.String transferFile(java.lang.String fileName, [B fileBytes, boolean append)
transfers the given file to the remote system
Parameters:
fileName -
fileBytes -
append -

remoteExec

public java.lang.String remoteExec(java.lang.String[] cmdArray)
remote execs the given command array
Parameters:
cmdArray -

getRemoteExecResults

public java.lang.Object[] getRemoteExecResults(java.lang.String pid)
gets the results of remote execution
Parameters:
pid -

getProperty

public java.lang.String getProperty(java.lang.String propertyName)
retrieves the named system property
Parameters:
propertyName -

Copyright IBM Corp. 1996 - 2007