public class SosInterpreter extends Object
Constructor and Description |
---|
SosInterpreter() |
Modifier and Type | Method and Description |
---|---|
static String |
cleanPath(String path)
Decodes a UTF-8 directory path obtained via a URL and "fixes" '\' characters
for proper quoting.
|
JdrReport |
collect() |
JdrReport |
collect(String username,
String password,
String host,
String port) |
String |
getJbossHomeDir()
Location of the JBoss distribution.
|
static String |
getPath(String path)
Splits a URL jar path to find the referenced jar location.
|
String |
getReportLocationDir()
Location for the generated report archive.
|
void |
setControllerClient(ModelControllerClient controllerClient) |
void |
setHostControllerName(String hostControllerName) |
void |
setJbossHomeDir(String jbossHomeDir)
Sets the root directory
|
void |
setReportLocationDir(String dir)
Sets the location for where the report archive will be created.
|
void |
setServerName(String serverName) |
public JdrReport collect() throws OperationFailedException
OperationFailedException
public JdrReport collect(String username, String password, String host, String port) throws OperationFailedException
OperationFailedException
public void setReportLocationDir(String dir)
dir
- location of generated report archivepublic String getReportLocationDir()
user.dir
System property.public void setControllerClient(ModelControllerClient controllerClient)
public void setHostControllerName(String hostControllerName)
public void setServerName(String serverName)
public String getJbossHomeDir()
jboss.home.dir
System property is used. If this value is not set, the current working directory,
as specified by the user.dir
System property is used.public void setJbossHomeDir(String jbossHomeDir) throws IllegalArgumentException
jbossHomeDir
- IllegalArgumentException
- if jbossHomeDir
is null
.public static String getPath(String path)
path
- location of a resource in a jar file.public static String cleanPath(String path)
path
- to be decodedCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.