public class SoSReport extends Object
| Constructor and Description |
|---|
SoSReport(org.python.util.PythonInterpreter interpreter,
String pyLocation,
String jbossHomeDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
enableOption(String name)
Enables a flag-like option for sosreport.
|
String |
execute()
Executes sosreport and returns the path to the final archived report
|
void |
setCompressionType(CompressionType type)
Sets the method of compressing the report archive.
|
void |
setControllerClient(ModelControllerClient controllerClient)
Sets the ModelControllerClient instance for sosreport to use.
|
void |
setGlobal(String name,
Object value)
Sets a globally visible variable for use within sosreport.
|
void |
setHome(String homeDir)
Sets JBOSS_HOME for sosreport to use
|
void |
setHostControllerName(String hostControllerName)
Sets the host controller name for sosreport to use
This is null in standalone mode
|
void |
setHostname(String hostname)
Sets the hostname for the management api that sosreport
should contact.
|
void |
setOption(String name,
String value)
Sets a configuration option for sosreport.
|
void |
setPassword(String password)
Sets the management api password for sosreport to use
|
void |
setPort(String port)
Sets the port for the management api that sosreport should
contact.
|
void |
setServerName(String serverName)
Sets the server instance name for sosreport to use
This is null in standalone mode
|
void |
setTmpDir(String tmpDir)
Sets the temporary directory for sosreport to use.
|
void |
setUsername(String username)
Sets the management api username for sosreport to use
|
public String execute()
public void setOption(String name, String value)
name - the name of the optionvalue - the value of the optionpublic void enableOption(String name)
name - the name of the optionpublic void setGlobal(String name, Object value)
name - the name of the variablevalue - the value of the variable, must be adaptable by Jythonpublic void setCompressionType(CompressionType type)
type - the type of compression to usepublic void setControllerClient(ModelControllerClient controllerClient)
controllerClient - the ModelControllerClient instance to useIllegalArgumentException - if controllerClient is nullpublic void setTmpDir(String tmpDir)
tmpDir - the path to the temporary directory to usepublic void setUsername(String username)
username - the management api username to usepublic void setPassword(String password)
password - the management api password to usepublic void setHostname(String hostname)
hostname - the hostname to usepublic void setPort(String port)
port - the port to usepublic void setHome(String homeDir)
homeDir - the path to JBOSS_HOMEpublic void setHostControllerName(String hostControllerName)
hostControllerName - the host controller name to usepublic void setServerName(String serverName)
serverName - the server instance name to useCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.