public class AgentSnapshotReport extends SnapshotReport
SnapshotReport.RegexFilenameFilterPROP_ADDITIONAL_FILES_DIRECTORY, PROP_ADDITIONAL_FILES_LIST, PROP_ADDITIONAL_FILES_RECURSIVE, PROP_ADDITIONAL_FILES_REGEX, PROP_BASE_DIRECTORY, PROP_CONFIG_DIRECTORY, PROP_CONFIG_RECURSIVE, PROP_CONFIG_REGEX, PROP_DATA_DIRECTORY, PROP_DATA_RECURSIVE, PROP_DATA_REGEX, PROP_LOG_DIRECTORY, PROP_LOG_RECURSIVE, PROP_LOG_REGEX, PROP_REPORT_OUTPUT_DIRECTORY, PROP_SNAPSHOT_ADDITIONAL_FILES, PROP_SNAPSHOT_CONFIG_FILES, PROP_SNAPSHOT_DATA_FILES, PROP_SNAPSHOT_LOG_FILES, REPORT_CONFIG_DIRECTORY, REPORT_DATA_DIRECTORY, REPORT_LOG_DIRECTORY| Constructor and Description |
|---|
AgentSnapshotReport(String name,
String description,
org.rhq.core.domain.configuration.Configuration agentPluginConfiguration,
String agentInstallDir,
Properties agentConfiguration,
String tmpDirectory)
Constructor used to build this agent snapshot report object.
|
| Modifier and Type | Method and Description |
|---|---|
File |
generate()
We want to snapshot the live configuration taken from the Java Preferences so this will write a temporary
conf file with that live data so it gets placed in the snapshot report.
|
getAdditionalFilesToSnapshot, getAllFilesToSnapshot, getConfigFilesToSnapshot, getConfiguration, getDataFilesToSnapshot, getDescription, getLogFilesToSnapshot, getName, getSnapshotReportFilepublic AgentSnapshotReport(String name, String description, org.rhq.core.domain.configuration.Configuration agentPluginConfiguration, String agentInstallDir, Properties agentConfiguration, String tmpDirectory)
name - the name of the snapshot reportdescription - the description of this reportagentPluginConfiguration - the plugin configuration for the agent resource whose snapshot report is to be generatedagentInstallDir - the agent's root installation directoryagentConfiguration - the agent's live configurationtmpDirectory - a tmp location where we can store the snapshotpublic File generate() throws Exception
generate in class SnapshotReportExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.