public class SnapshotReport extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SnapshotReport.RegexFilenameFilter
Filename filter that matches the filename if it matches a given regular expression.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_ADDITIONAL_FILES_DIRECTORY
A config property whose value is a directory relative to the base directory where
additional files are located.
|
static String |
PROP_ADDITIONAL_FILES_LIST
The property name for the list of of additional files.
|
static String |
PROP_ADDITIONAL_FILES_RECURSIVE
A config property whose value is the boolean flag to indicate if
the snapshot should include files found in subdirectories of the additional files directory.
|
static String |
PROP_ADDITIONAL_FILES_REGEX
A config property whose value is a regular expression that matches all additional files
that are to be snapshotted.
|
static String |
PROP_BASE_DIRECTORY
A config property whose value is the base directory where all config, logs and data files are under.
|
static String |
PROP_CONFIG_DIRECTORY
A config property whose value is the directory relative to the base directory where the
configuration files are located.
|
static String |
PROP_CONFIG_RECURSIVE
A config property whose value is the boolean flag to indicate if
the snapshot should include files found in subdirectories of the config directory.
|
static String |
PROP_CONFIG_REGEX
A config property whose value is a regular expression that matches all config files
that are to be snapshotted.
|
static String |
PROP_DATA_DIRECTORY
A config property whose value is the directory relative to the base directory where the
data files are located.
|
static String |
PROP_DATA_RECURSIVE
A config property whose value is the boolean flag to indicate if
the snapshot should include files found in subdirectories of the data directory.
|
static String |
PROP_DATA_REGEX
A config property whose value is a regular expression that matches all data files
that are to be snapshotted.
|
static String |
PROP_LOG_DIRECTORY
A config property whose value is the directory relative to the base directory where the
log files are located.
|
static String |
PROP_LOG_RECURSIVE
A config property whose value is the boolean flag to indicate if
the snapshot should include files found in subdirectories of the log directory.
|
static String |
PROP_LOG_REGEX
A config property whose value is a regular expression that matches all log files
that are to be snapshotted.
|
static String |
PROP_REPORT_OUTPUT_DIRECTORY
Optional property that can be specified to define where to store the output snapshot report.
|
static String |
PROP_SNAPSHOT_ADDITIONAL_FILES
A boolean config property that dictates if a snapshot of the additional files should be in the report.
|
static String |
PROP_SNAPSHOT_CONFIG_FILES
A boolean config property that dictates if a snapshot of config files should be in the report.
|
static String |
PROP_SNAPSHOT_DATA_FILES
A boolean config property that dictates if a snapshot of data files should be in the report.
|
static String |
PROP_SNAPSHOT_LOG_FILES
A boolean config property that dictates if a snapshot of log files should be in the report.
|
static String |
REPORT_CONFIG_DIRECTORY
The relative directory under the report where the config files can be found.
|
static String |
REPORT_DATA_DIRECTORY
The relative directory under the report where the data files can be found.
|
static String |
REPORT_LOG_DIRECTORY
The relative directory under the report where the log files can be found.
|
| Constructor and Description |
|---|
SnapshotReport(String name,
String description,
org.rhq.core.domain.configuration.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
File |
generate() |
protected Map<String,URL> |
getAdditionalFilesToSnapshot() |
protected Map<String,URL> |
getAllFilesToSnapshot() |
protected Map<String,URL> |
getConfigFilesToSnapshot() |
protected org.rhq.core.domain.configuration.Configuration |
getConfiguration() |
protected Map<String,URL> |
getDataFilesToSnapshot() |
protected String |
getDescription() |
protected Map<String,URL> |
getLogFilesToSnapshot() |
protected String |
getName() |
protected File |
getSnapshotReportFile()
This only returns the file where the snapshot will be stored.
|
public static final String REPORT_CONFIG_DIRECTORY
public static final String REPORT_LOG_DIRECTORY
public static final String REPORT_DATA_DIRECTORY
public static final String PROP_SNAPSHOT_CONFIG_FILES
public static final String PROP_CONFIG_DIRECTORY
public static final String PROP_CONFIG_REGEX
public static final String PROP_CONFIG_RECURSIVE
public static final String PROP_SNAPSHOT_LOG_FILES
public static final String PROP_LOG_DIRECTORY
public static final String PROP_LOG_REGEX
public static final String PROP_LOG_RECURSIVE
public static final String PROP_SNAPSHOT_DATA_FILES
public static final String PROP_DATA_DIRECTORY
public static final String PROP_DATA_REGEX
public static final String PROP_DATA_RECURSIVE
public static final String PROP_SNAPSHOT_ADDITIONAL_FILES
public static final String PROP_ADDITIONAL_FILES_LIST
public static final String PROP_ADDITIONAL_FILES_DIRECTORY
public static final String PROP_ADDITIONAL_FILES_REGEX
public static final String PROP_ADDITIONAL_FILES_RECURSIVE
public static final String PROP_BASE_DIRECTORY
public static final String PROP_REPORT_OUTPUT_DIRECTORY
protected String getName()
protected String getDescription()
protected org.rhq.core.domain.configuration.Configuration getConfiguration()
protected File getSnapshotReportFile() throws Exception
generate() to get the full snapshot content.Exception - if the file could not be determined for some reasonprotected Map<String,URL> getAllFilesToSnapshot() throws Exception
Exceptionprotected Map<String,URL> getConfigFilesToSnapshot() throws Exception
Exceptionprotected Map<String,URL> getLogFilesToSnapshot() throws Exception
Exceptionprotected Map<String,URL> getDataFilesToSnapshot() throws Exception
ExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.