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, byte[] fileBytes)
           transfers the given file to the remote system
java.lang.StringtransferFile(java.lang.String fileName, byte[] 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

Security Roles:

     administrator
     operator


runTest

public void runTest(java.lang.String className, java.lang.String testName)

     executes the test

Parameters:

     className -
     testName -

Security Roles:

     administrator
     operator


stopCapture

public void stopCapture()

     stop capture of systemout and systemerr

Security Roles:

     administrator
     operator


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 -

Security Roles:

     administrator
     operator


getSystemOut

public java.lang.String getSystemOut()

     retrieves systemout output

Security Roles:

     administrator
     operator


getSystemErr

public java.lang.String getSystemErr()

     retrieves systemerr output

Security Roles:

     administrator
     operator


transferFile

public java.lang.String transferFile(java.lang.String fileName, byte[] fileBytes)

     transfers the given file to the remote system

Parameters:

     fileName -
     fileBytes -

Security Roles:

     administrator
     operator


transferFile

public java.lang.String transferFile(java.lang.String fileName, byte[] fileBytes, boolean append)

     transfers the given file to the remote system

Parameters:

     fileName -
     fileBytes -
     append -

Security Roles:

     administrator
     operator


remoteExec

public java.lang.String remoteExec(java.lang.String[] cmdArray)

     remote execs the given command array

Parameters:

     cmdArray -

Security Roles:

     administrator
     operator


getRemoteExecResults

public java.lang.Object[] getRemoteExecResults(java.lang.String pid)

     gets the results of remote execution

Parameters:

     pid -

Security Roles:

     administrator
     operator


getProperty

public java.lang.String getProperty(java.lang.String propertyName)

     retrieves the named system property

Parameters:

     propertyName -

Security Roles:

     administrator
     operator


Copyright IBM Corp. 1996-2005