AntAgent MBean

Partial ObjectName:
WebSphere:*,type=AntAgent


MBean AntAgent


Operation Summary
voidinvokeAnt(java.lang.String[] properties, java.lang.String taskFilePath, java.lang.String antTarget)
           Invoke an ant script.
byte[]getScript(java.lang.String filePath)
           Retrieve a script or script artifact from the agent.
voidputScript(java.lang.String filePath, byte[] fileContents)
           Put a script or script artifact onto the agent.
byte[]getLastLog()
           Retrieve the log generated the last time invokeAnt was called.

Operation Detail

invokeAnt

public void invokeAnt(java.lang.String[] properties, java.lang.String taskFilePath, java.lang.String antTarget)
Invoke an ant script. The ant script must already be present on the agent.
Parameters:
properties - A string array of properties to use in the invocation. Each property is of the form name=value
taskFilePath - The path of the script file, relative to the working directory
antTarget - (optional) The target within the script to invoke.
Security Roles:
administrator
operator

getScript

public byte[] getScript(java.lang.String filePath)
Retrieve a script or script artifact from the agent.
Parameters:
filePath - The path of the script file, relative to the working directory
Security Roles:
administrator
operator

putScript

public void putScript(java.lang.String filePath, byte[] fileContents)
Put a script or script artifact onto the agent.
Parameters:
filePath - The path of where to put the script file, relative to the working directory
fileContents - The contents of the script file
Security Roles:
administrator
operator

getLastLog

public byte[] getLastLog()
Retrieve the log generated the last time invokeAnt was called. If the last call to invokeAnt() did not generate a log, or invokeAnt() has not yet been called, this method returns null.
Security Roles:
administrator
operator

Copyright IBM Corp. 1996-2005