A B C D E F G H I J K L M N O P R S T U V W Z 

A

absolutePath() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
add(InputStream) - Method in class org.rhq.core.util.MessageDigestGenerator
Use this to add more data to the set of data used to calculate the digest.
add(byte[]) - Method in class org.rhq.core.util.MessageDigestGenerator
Use this to add more data to the set of data used to calculate the hash.
add(byte[], int, int) - Method in class org.rhq.core.util.MessageDigestGenerator
Use this to add more data to the set of data used to calculate the hash.
addAddedFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addAddedFiles(Collection<String>) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addBackedUpFile(String, String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addBlankLine(String) - Method in class org.rhq.core.util.IniEditor
Adds a blank line to the end of a section.
addBlankLine() - Method in class org.rhq.core.util.IniEditor.Section
Adds a blank line to the end of this section.
addChangedFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addChangedFiles(Collection<String>) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addComment(String, String) - Method in class org.rhq.core.util.IniEditor
Adds a comment line to the end of a section.
addComment(String) - Method in class org.rhq.core.util.IniEditor.Section
Adds a comment line to the end of this section.
addComment(String, char) - Method in class org.rhq.core.util.IniEditor.Section
Adds a comment line to the end of this section.
addDeletedFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addDeletedFiles(Collection<String>) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addError(String, String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addIgnoredFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addIgnoredFiles(Collection<String>) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addNodeChangeListener(NodeChangeListener) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
addPreferenceChangeListener(PreferenceChangeListener) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
addRealizedFile(String, String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addRestoredFile(String, String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
addSection(String) - Method in class org.rhq.core.util.IniEditor
Adds a section if it doesn't exist yet.
addWork(int) - Method in class org.rhq.core.util.progresswatch.ProgressWatcher
Add a unit of work to be completed.
ALGORITHM - Static variable in class org.rhq.core.util.obfuscation.Obfuscator
 
arrayToString(Object[]) - Static method in class org.rhq.core.util.StringUtil
Print out an array as a String
arrayToString(boolean[]) - Static method in class org.rhq.core.util.StringUtil
Print out an array as a String
arrayToString(Object[], char) - Static method in class org.rhq.core.util.StringUtil
Print out an array as a String
arrayToString(int[]) - Static method in class org.rhq.core.util.StringUtil
Print out an array as a String
ArrayUtils - Class in org.rhq.core.util.collection
 
ArrayUtils() - Constructor for class org.rhq.core.util.collection.ArrayUtils
 
autoIncrementVersion(String) - Static method in class org.rhq.core.util.NumberUtil
Given an old version string, this attempts to auto-generate a new incremented version.

B

BACKUP_DIR - Static variable in class org.rhq.core.util.updater.DeploymentsMetadata
 
BACKWARDS_COMPATIBLE_DEFAULT - Static variable in enum org.rhq.core.util.updater.DestinationComplianceMode
This is the default compliance mode to be used in the legacy bundle recipes which do not explicitly set neither the compliance nor the legacy manageRootDir attribute.
Base64 - Class in org.rhq.core.util
Class to Base64 encode strings.
Base64() - Constructor for class org.rhq.core.util.Base64
 
bindNTimes(PreparedStatement, int[], int) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
Bind the passed values to the parameters of the PreparedStatement, starting at position startBinding
BUNDLE_BASE_NAME - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
ByteUtil - Class in org.rhq.core.util
Utilities for working with bytes and byte arrays.

C

calcDigest(InputStream) - Method in class org.rhq.core.util.MessageDigestGenerator
 
calcDigest(String) - Method in class org.rhq.core.util.MessageDigestGenerator
 
calcDigest(File) - Method in class org.rhq.core.util.MessageDigestGenerator
 
calcDigest(URL) - Method in class org.rhq.core.util.MessageDigestGenerator
 
calcDigestString(InputStream) - Method in class org.rhq.core.util.MessageDigestGenerator
 
calcDigestString(String) - Method in class org.rhq.core.util.MessageDigestGenerator
 
calcDigestString(File) - Method in class org.rhq.core.util.MessageDigestGenerator
 
calcDigestString(byte[]) - Method in class org.rhq.core.util.MessageDigestGenerator
 
calcDigestString(URL) - Method in class org.rhq.core.util.MessageDigestGenerator
 
canWrite(File) - Static method in class org.rhq.core.util.file.FileUtil
Test if a directory is writable java.io.File#canWrite() has problems on windows for properly detecting if a directory is writable by the current user.
capitalize(String) - Static method in class org.rhq.core.util.StringUtil
Capitalizes the first letter of str.
ChangesFileHashcodeMap - Class in org.rhq.core.util.updater
Same as a FileHashcodeMap but also holds additional data about changes that were detected after a FileHashcodeMap.rescan(java.io.File, java.util.regex.Pattern, boolean).
ChangesFileHashcodeMap(FileHashcodeMap) - Constructor for class org.rhq.core.util.updater.ChangesFileHashcodeMap
Creates an file/hashcode map populated with a map of original file data.
checkDiskUsage() - Method in class org.rhq.core.util.updater.Deployer
This will get an estimate of how much disk space the deployment will need and compare it to the amount of estimated disk space is currently usable.
childrenNames() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
childrenNamesSpi() - Method in class org.rhq.core.util.preferences.FilePreferences
 
childSpi(String) - Method in class org.rhq.core.util.preferences.FilePreferences
 
clear() - Method in class org.rhq.core.util.collection.IntHashMap
Clears this hashtable so that it contains no keys.
clear() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
clear() - Method in class org.rhq.core.util.TokenReplacingProperties
 
close() - Method in class org.rhq.core.util.TokenReplacingReader
 
collectionToString(Collection<?>, String) - Static method in class org.rhq.core.util.StringUtil
 
collectionToString(Collection<?>) - Static method in class org.rhq.core.util.StringUtil
 
ComparableVersion - Class in org.apache.maven.artifact.versioning
Generic implementation of version comparison.
ComparableVersion(String) - Constructor for class org.apache.maven.artifact.versioning.ComparableVersion
 
compare(String, String) - Method in class org.rhq.core.util.sort.HumaneStringComparator
The implementation of the Comparable interface method that compares two Strings.
compareNumberSegments(String, String) - Method in class org.rhq.core.util.sort.HumaneStringComparator
Converts the two Strings to doubles and then compares then numerically by invoking Double.compareTo()
compareStringSegments(String, String) - Method in class org.rhq.core.util.sort.HumaneStringComparator
Compares the left hand String to the right hand String case-insensitively by invoking lhs.compareToIgnoreCase(rhs).
compareTo(Object) - Method in class org.apache.maven.artifact.versioning.ComparableVersion
 
compressFile(File) - Static method in class org.rhq.core.util.file.FileUtil
Compressed the data found in the file.
contains(Object) - Method in class org.rhq.core.util.collection.IntHashMap
Tests if some key maps into the specified value in this hashtable.
containsAddedFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
containsChangedFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
containsDeletedFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
containsIgnoredFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
containsKey(int) - Method in class org.rhq.core.util.collection.IntHashMap
Tests if the specified object is a key in this hashtable.
containsKey(Object) - Method in class org.rhq.core.util.TokenReplacingProperties
 
containsKey(Object) - Method in class org.rhq.core.util.updater.FileHashcodeMap
 
containsRawValue(Object) - Method in class org.rhq.core.util.TokenReplacingProperties
Checks whether this map contains the unprocessed value.
containsValue(Object) - Method in class org.rhq.core.util.collection.IntHashMap
Returns true if this HashMap maps one or more keys to this value.
containsValue(Object) - Method in class org.rhq.core.util.TokenReplacingProperties
 
ContentFileInfo - Class in org.rhq.core.util.file
Subclasses are responsible for examining a file to determine information about its content - like its version string and a description of the content.
ContentFileInfo(File) - Constructor for class org.rhq.core.util.file.ContentFileInfo
The constructor that sets the file that this object will examine.
ContentFileInfoFactory - Class in org.rhq.core.util.file
 
ContentFileInfoFactory() - Constructor for class org.rhq.core.util.file.ContentFileInfoFactory
 
convertPath(String) - Method in class org.rhq.core.util.updater.DeployDifferences
Converts the path to the form that will be stored internally.
convertPath(String) - Method in class org.rhq.core.util.updater.FileHashcodeMap
Converts the path to the form that will be stored internally.
convertSQLExceptionToString(SQLException) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
 
copy(InputStream, OutputStream) - Static method in class org.rhq.core.util.stream.StreamUtil
Copies data from the input stream to the output stream.
copy(Reader, Writer) - Static method in class org.rhq.core.util.stream.StreamUtil
Equivalent of StreamUtil.copy(InputStream, OutputStream) but using reader and writer instead of streams.
copy(InputStream, OutputStream, boolean) - Static method in class org.rhq.core.util.stream.StreamUtil
Copies data from the input stream to the output stream.
copy(InputStream, OutputStream, boolean, boolean) - Static method in class org.rhq.core.util.stream.StreamUtil
Copies data from the input stream to the output stream.
copy(Reader, Writer, boolean) - Static method in class org.rhq.core.util.stream.StreamUtil
Equivalent of StreamUtil.copy(InputStream, OutputStream, boolean) only using reader and writer instead of input stream and output stream.
copy(InputStream, OutputStream, long, long) - Static method in class org.rhq.core.util.stream.StreamUtil
Copies data from the input stream to the output stream.
copyAndCalculateHashcode(InputStream, OutputStream) - Method in class org.rhq.core.util.stream.StreamCopyDigest
Copies the input stream data to the output stream and returns the copied data's digest string.
copyDirectory(File, File) - Static method in class org.rhq.core.util.file.FileUtil
 
copyFile(File, File) - Static method in class org.rhq.core.util.file.FileUtil
Copy a file from one file to another
copyOfRange(T[], int, int) - Static method in class org.rhq.core.util.collection.ArrayUtils
 
copyOfRange(int[], int, int) - Static method in class org.rhq.core.util.collection.ArrayUtils
 
copyStream(InputStream, OutputStream) - Static method in class org.rhq.core.util.file.FileUtil
Deprecated.
use StreamUtil for more methods like this - those are unit tested and used more
copyStream(InputStream, OutputStream, byte[]) - Static method in class org.rhq.core.util.file.FileUtil
Deprecated.
use StreamUtil for more methods like this - those are unit tested and used more
create(String) - Static method in class org.rhq.core.util.ObjectNameFactory
 
create(String, String, String) - Static method in class org.rhq.core.util.ObjectNameFactory
 
create(String, Hashtable) - Static method in class org.rhq.core.util.ObjectNameFactory
 
createContentFileInfo(File) - Static method in class org.rhq.core.util.file.ContentFileInfoFactory
The factory method that creates a ContentFileInfo object for the given file.
createOutputFile(ProcessToStart) - Method in class org.rhq.core.util.exec.ProcessExecutor
Creates the output file and returns its File representation.
createTempDirectory(String, String, File) - Static method in class org.rhq.core.util.file.FileUtil
Creates a temporary directory using the same algorithm as JDK's File.createTempFile.
CURRENT_DEPLOYMENT_FILE - Static variable in class org.rhq.core.util.updater.DeploymentsMetadata
 

D

decode(char[], int, int) - Static method in class org.rhq.core.util.Base64
 
decode(String) - Static method in class org.rhq.core.util.Base64
 
decode(char[], int, int, OutputStream) - Static method in class org.rhq.core.util.Base64
 
decode(String, OutputStream) - Static method in class org.rhq.core.util.Base64
 
decode(String) - Static method in class org.rhq.core.util.obfuscation.Obfuscator
Decodes the string obfuscated using the Obfuscator.encode(String) method back to the original value.
decode(String) - Static method in class org.rhq.core.util.obfuscation.PicketBoxObfuscator
Use the internal JBossAS mechanism to de-obfuscate a password back to its clear text form.
decompressFile(File) - Static method in class org.rhq.core.util.file.FileUtil
Decompresses the compressed data found in the file that was compressed with FileUtil.compressFile(File).
DEFAULT - Static variable in class org.rhq.core.util.sort.HumaneStringComparator
A default instance of the comparator that can be used without instantiating a new copy every time one is needed.
DEFAULT_OPTION_FORMAT - Static variable in class org.rhq.core.util.IniEditor.Section
 
DELETED_FILE_HASHCODE - Static variable in class org.rhq.core.util.updater.FileHashcodeMap
 
deploy(DeployDifferences) - Method in class org.rhq.core.util.updater.Deployer
Convienence method that is equivalent to deploy(diff, false).
deploy(DeployDifferences, boolean, boolean) - Method in class org.rhq.core.util.updater.Deployer
Deploys all files to their destinations.
DeployDifferences - Class in org.rhq.core.util.updater
Manages information about deployment files such as which files have been added, deleted, etc.
DeployDifferences() - Constructor for class org.rhq.core.util.updater.DeployDifferences
 
Deployer - Class in org.rhq.core.util.updater
This deploys a bundle of files within a zip archive to a managed directory.
Deployer(DeploymentData) - Constructor for class org.rhq.core.util.updater.Deployer
Constructors that prepares this object to deploy content to a destination on the local file system.
DEPLOYMENT_FILE - Static variable in class org.rhq.core.util.updater.DeploymentsMetadata
 
DeploymentData - Class in org.rhq.core.util.updater
Data that describes a particular deployment.
DeploymentData(DeploymentProperties, Set<File>, Map<File, File>, File, File, Map<File, Pattern>, Set<File>, TemplateEngine, Pattern, boolean, Map<File, Boolean>) - Constructor for class org.rhq.core.util.updater.DeploymentData
Deprecated.
use {@link #DeploymentData(DeploymentProperties, File, File, Map, Set, Map, Map, TemplateEngine, Pattern, Map)
DeploymentData(DeploymentProperties, Set<File>, Map<File, File>, File, File, Map<File, Pattern>, Set<File>, TemplateEngine, Pattern, Map<File, Boolean>) - Constructor for class org.rhq.core.util.updater.DeploymentData
Deprecated.
use {@link #DeploymentData(DeploymentProperties, File, File, Map, Set, Map, Map, TemplateEngine, Pattern, Map)
DeploymentData(DeploymentProperties, File, File, Map<File, File>, Set<File>, Map<File, File>, Map<File, Pattern>, TemplateEngine, Pattern, Map<File, Boolean>) - Constructor for class org.rhq.core.util.updater.DeploymentData
Constructor that prepares this object with the data that is necessary in order to deploy archive/file content a destination directory.
DeploymentDiskUsage - Class in org.rhq.core.util.updater
Provides information about the estimated disk usage needed for a deployment.
DeploymentDiskUsage() - Constructor for class org.rhq.core.util.updater.DeploymentDiskUsage
 
DeploymentProperties - Class in org.rhq.core.util.updater
Provides properties that define metadata about a deployment.
DeploymentProperties() - Constructor for class org.rhq.core.util.updater.DeploymentProperties
Creates an empty set of deployment properties.
DeploymentProperties(int, String, String, String) - Constructor for class org.rhq.core.util.updater.DeploymentProperties
DeploymentProperties(int, String, String, String, DestinationComplianceMode) - Constructor for class org.rhq.core.util.updater.DeploymentProperties
Convenience constructor whose parameters are all the required values that this object needs.
DeploymentsMetadata - Class in org.rhq.core.util.updater
This loads and stores metadata about installs of a particular bundle deployment.
DeploymentsMetadata(File) - Constructor for class org.rhq.core.util.updater.DeploymentsMetadata
Creates the metadata object given the root directory where the bundle deployment is installed.
deserialize(byte[]) - Static method in class org.rhq.core.util.stream.StreamUtil
Deserializes the given serialization data and returns the object.
DestinationComplianceMode - Enum in org.rhq.core.util.updater
Lists the compliance modes of the bundle deployment destinations.
DIRECTORY_HASHCODE - Static variable in class org.rhq.core.util.updater.FileHashcodeMap
 
dryRun(DeployDifferences) - Method in class org.rhq.core.util.updater.Deployer
Convienence method that is equivalent to deploy(diff, true).

E

EMPTY_STRING - Static variable in class org.rhq.core.util.StringUtil
 
encode(byte[]) - Static method in class org.rhq.core.util.Base64
Returns base64 representation of specified byte array.
encode(byte[], int, int) - Static method in class org.rhq.core.util.Base64
Returns base64 representation of specified byte array.
encode(byte[], int, int, OutputStream) - Static method in class org.rhq.core.util.Base64
Outputs base64 representation of the specified byte array to a byte stream.
encode(byte[], int, int, Writer) - Static method in class org.rhq.core.util.Base64
Outputs base64 representation of the specified byte array to a character stream.
encode(String) - Static method in class org.rhq.core.util.obfuscation.Obfuscator
Encodes the secret string so that the value is not immediately readable by a "casual viewer".
encode(String) - Static method in class org.rhq.core.util.obfuscation.PicketBoxObfuscator
Use the internal JBossAS mechanism to obfuscate a password.
entrySet() - Method in class org.rhq.core.util.TokenReplacingProperties
The returned set IS NOT backed by this map (unlike in the default map implementations).
equals(Object) - Method in class org.apache.maven.artifact.versioning.ComparableVersion
 
escape(String) - Static method in class org.rhq.core.util.file.FileUtil
Escape invalid characters in a filename, replacing with "_"
estimateDiskUsage() - Method in class org.rhq.core.util.updater.Deployer
Returns an estimated amount of disk space the deployment will need if it gets installed.
ExceptionPackage - Class in org.rhq.core.util.exception
This class can package up an exception in a non-object-serialized form to send to a remote system that might not have the exception class available for deserialization.
ExceptionPackage(Throwable) - Constructor for class org.rhq.core.util.exception.ExceptionPackage
Constructor for ExceptionPackage that assumes the severity is Severity.Warning.
ExceptionPackage(Severity, Throwable) - Constructor for class org.rhq.core.util.exception.ExceptionPackage
Creates a new ExceptionPackage object.
execute(ProcessToStart) - Method in class org.rhq.core.util.exec.ProcessExecutor
This executes any operating system process as described in the given start command.
exists(String, String) - Method in class org.rhq.core.util.obfuscation.PropertyObfuscationVault
 
ExperimentalFeatureDisabledException - Exception in org.rhq.core.util.exception
This exception is thrown when an API call is made that requires a feature or functionality that is considered experiemental but that experimental feature or functionality is disabled.
ExperimentalFeatureDisabledException() - Constructor for exception org.rhq.core.util.exception.ExperimentalFeatureDisabledException
 
ExperimentalFeatureDisabledException(String, Throwable) - Constructor for exception org.rhq.core.util.exception.ExperimentalFeatureDisabledException
 
ExperimentalFeatureDisabledException(String) - Constructor for exception org.rhq.core.util.exception.ExperimentalFeatureDisabledException
 
ExperimentalFeatureDisabledException(Throwable) - Constructor for exception org.rhq.core.util.exception.ExperimentalFeatureDisabledException
 
explode(String, String) - Static method in class org.rhq.core.util.StringUtil
Split a string on delimiter boundaries, and place each element into a List.
explodeQuoted(String) - Static method in class org.rhq.core.util.StringUtil
Split a string up by whitespace, taking into account quoted subcomponents.
explodeToArray(String, String) - Static method in class org.rhq.core.util.StringUtil
Split a string on delimiter boundaries, and place each element into an Array.
exportNode(OutputStream) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
exportSubtree(OutputStream) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
EXT_BACKUP_DIR - Static variable in class org.rhq.core.util.updater.DeploymentsMetadata
 
extract(T) - Method in interface org.rhq.core.util.IntExtractor
Extracts an integer value out of the supplied object.
ExtractorZipFileVisitor - Class in org.rhq.core.util.updater
A visitor object that will extract each zip entry it visits, realizing files that need to have their replacement variables replaced.
ExtractorZipFileVisitor(File, Pattern, TemplateEngine, Set<String>, DeployDifferences, boolean) - Constructor for class org.rhq.core.util.updater.ExtractorZipFileVisitor
Creates the visitor.

F

FileHashcodeMap - Class in org.rhq.core.util.updater
This provides a hashmap that maps a filename to its hashcode value (md5).
FileHashcodeMap() - Constructor for class org.rhq.core.util.updater.FileHashcodeMap
 
FilePreferences - Class in org.rhq.core.util.preferences
Preferences implementation that stores to a single user-defined file.
FilePreferences(AbstractPreferences, String) - Constructor for class org.rhq.core.util.preferences.FilePreferences
 
FilePreferencesFactory - Class in org.rhq.core.util.preferences
PreferencesFactory implementation that stores the preferences in a single user-defined file.
FilePreferencesFactory() - Constructor for class org.rhq.core.util.preferences.FilePreferencesFactory
 
FileReverter - Class in org.rhq.core.util.file
This will slurp in the original content of a file and store it in memory.
FileReverter(File) - Constructor for class org.rhq.core.util.file.FileReverter
 
FileUtil - Class in org.rhq.core.util.file
 
FileUtil() - Constructor for class org.rhq.core.util.file.FileUtil
 
FileVisitor - Interface in org.rhq.core.util.file
A callback interface that is used with FileUtil.forEachFile(java.io.File, FileVisitor) to iterate over files in a directory tree.
findString(String, String) - Static method in class org.rhq.core.util.file.FileUtil
 
finishWork(int) - Method in class org.rhq.core.util.progresswatch.ProgressWatcher
Indicate that a # of work units has been completed.
flush() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
flushSpi() - Method in class org.rhq.core.util.preferences.FilePreferences
 
forEachFile(File, FileVisitor) - Static method in class org.rhq.core.util.file.FileUtil
Performs a breadth-first scan, calling visitor for each file in directory.
formatDuration(long) - Static method in class org.rhq.core.util.StringUtil
 
formatDuration(long, int, boolean) - Static method in class org.rhq.core.util.StringUtil
 
formatValue(String) - Static method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences.RestrictedFormat
Formats a value in the proper restricted format.

G

generateFileHashcodeMap(File, Pattern, Set<String>) - Static method in class org.rhq.core.util.updater.FileHashcodeMap
Given a directory, this will recursively traverse that directory's files/subdirectories and generate the hashcode map for all files it encounters and add that data to the given map.
generateInBinds(int) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
Generate count '? separated by comma
generateRegex(List<PathFilter>) - Static method in class org.rhq.core.util.file.FileUtil
Takes a list of filters and compiles them into a regular expression that can be used for matching or filtering paths.
generateString(Random, String, int) - Static method in class org.rhq.core.util.obfuscation.Obfuscator
Adapted from http://stackoverflow.com/questions/2863852/how-to-generate-a-random-string-in-java.
GenericContentFileInfo - Class in org.rhq.core.util.file
Handles any generic file.
GenericContentFileInfo(File) - Constructor for class org.rhq.core.util.file.GenericContentFileInfo
 
get(int) - Method in class org.rhq.core.util.collection.IntHashMap
Returns the value to which the specified key is mapped in this map.
get(String, String) - Method in class org.rhq.core.util.IniEditor
Returns the value of a given option in a given section or null if either the section or the option don't exist.
get(String) - Method in class org.rhq.core.util.IniEditor.Section
Returns an option's value.
get(String, String) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
get(Object) - Method in class org.rhq.core.util.TokenReplacingProperties
 
get(Object) - Method in class org.rhq.core.util.updater.FileHashcodeMap
 
getActualException() - Method in exception org.rhq.core.util.exception.WrappedRemotingException
Returns the actual exception that occurred wrapped in an ExceptionPackage.
getAddedFiles() - Method in class org.rhq.core.util.updater.DeployDifferences
Returns the set of files that have been added.
getAdditions() - Method in class org.rhq.core.util.updater.ChangesFileHashcodeMap
 
getAllMessages() - Method in class org.rhq.core.util.exception.ExceptionPackage
Returns all the messages for this throwable and all of its causes in one long string.
getAllMessages(Throwable, boolean) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Returns all the messages for the throwable and all of its causes in one long string.
getAllMessages(Throwable, boolean, int) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Generates a string with all exception messages similarly to ThrowableUtil.getAllMessages(Throwable, boolean) but limits the length of the string to the provided limit.
getAllMessages(Throwable) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Same as ThrowableUtil.getAllMessages(Throwable, boolean) with the "include exception name" parameter set to true.
getAllMessagesArray(Throwable, boolean) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Returns all the messages for the throwable and all of its causes.
getAllMessagesArray(Throwable) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Same as ThrowableUtil.getAllMessagesArray(Throwable, boolean) with the "include exception name" parameter set to true.
getAllSqlExceptionMessages(SQLException, boolean) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Returns all the messages for the SQL Exception and all of its next exceptions in one long string.
getAllSqlExceptionMessages(SQLException) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Same as #getAllSqlExceptionMessages(Throwable, boolean) with the "include exception name" parameter set to true.
getAllSqlExceptionMessagesArray(SQLException, boolean) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Returns all the messages for the SQL Exception and all of its causes.
getAllSqlExceptionMessagesArray(SQLException) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Same as ThrowableUtil.getAllSqlExceptionMessagesArray(SQLException, boolean) with the "include exception name" parameter set to true.
getArguments() - Method in class org.rhq.core.util.exec.ProcessToStart
Returns an array of strings that are the argument values passed on the command line to the program executable.
getArtifactId() - Method in class org.rhq.core.util.maven.MavenArtifactProperties
 
getAttributeValue(Attributes.Name, String) - Method in class org.rhq.core.util.file.JarContentFileInfo
Returns an attribute value as found in the manifest.
getAttributeValue(String, String) - Method in class org.rhq.core.util.file.JarContentFileInfo
Returns an attribute value as found in the manifest.
getBackedUpFiles() - Method in class org.rhq.core.util.updater.DeployDifferences
Returns the set of files that have been backed up.
getBoolean(String, boolean) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
getBundleName() - Method in class org.rhq.core.util.updater.DeploymentProperties
 
getBundleVersion() - Method in class org.rhq.core.util.updater.DeploymentProperties
 
getByteArray(String, byte[]) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
getCause() - Method in class org.rhq.core.util.exception.ExceptionPackage
Returns the cause of this exception in the same non-object-serialized form.
getCause() - Method in exception org.rhq.core.util.exception.WrappedRemotingException
If the actual exception had a cause, this will return a WrappedRemotingException wrapping the cause's ExceptionPackage.
getChangedFiles() - Method in class org.rhq.core.util.updater.DeployDifferences
Returns the set of files that have been changed.
getChanges() - Method in class org.rhq.core.util.updater.ChangesFileHashcodeMap
 
getCommandLine(ProcessToStart) - Method in class org.rhq.core.util.exec.ProcessExecutor
Builds the command line containing the full path to the program executable and any arguments that are to be passed to the program.
getContentFile() - Method in class org.rhq.core.util.file.ContentFileInfo
Get the file that this object examines.
getCurrentDeploymentFileHashcodes() - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Returns the files and their hashcodes for the current deployment.
getCurrentDeploymentProperties() - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Returns information about the current deployment.
getDeletedFiles() - Method in class org.rhq.core.util.updater.DeployDifferences
Returns the set of files that have been deleted.
getDeletions() - Method in class org.rhq.core.util.updater.ChangesFileHashcodeMap
 
getDeploymentBackupDirectory(int) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Returns a metadata directory that is appropriate to place backup files for the deployment.
getDeploymentData() - Method in class org.rhq.core.util.updater.Deployer
 
getDeploymentExternalBackupDirectoriesForWindows(int) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Returns all the metadata directories that contain backup files for external directories (i.e.
getDeploymentExternalBackupDirectory(int) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Returns a metadata directory that is appropriate to place backup files for the deployment.
getDeploymentFileHashcodes(int) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Returns the files and their hashcodes for the given deployment.
getDeploymentId() - Method in class org.rhq.core.util.updater.DeploymentProperties
This returns a deployment ID that identifies a known deployment.
getDeploymentProperties(int) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Returns information about the deployment with the given ID.
getDeploymentProps() - Method in class org.rhq.core.util.updater.DeploymentData
 
getDescription(String) - Method in class org.rhq.core.util.file.ContentFileInfo
Returns an appropriate description for the file content.
getDescription(String) - Method in class org.rhq.core.util.file.GenericContentFileInfo
This method simply returns the default value.
getDescription(String) - Method in class org.rhq.core.util.file.JarContentFileInfo
Return a description of the Jar file (or archive satisfying Jar file structure) by inspecting the Manifest.
getDescription() - Method in class org.rhq.core.util.updater.DeploymentProperties
 
getDestinationCompliance() - Method in class org.rhq.core.util.updater.DeploymentProperties
Returns the compliance mode of the destination.
getDestinationDir() - Method in class org.rhq.core.util.updater.DeploymentData
 
getDigest() - Method in class org.rhq.core.util.MessageDigestGenerator
After all the data has been added to the message digest via add methods, this method is used to finalize the digest calcualation and return the digest.
getDigest(InputStream) - Static method in class org.rhq.core.util.MessageDigestGenerator
Returns the digest for the data found in the given stream.
getDigest(String) - Static method in class org.rhq.core.util.MessageDigestGenerator
Calculates a digest for a given string.
getDigest(File) - Static method in class org.rhq.core.util.MessageDigestGenerator
Calculates the digest for a given file.
getDigestString() - Method in class org.rhq.core.util.MessageDigestGenerator
After all the data has been added to the message digest via add methods, this method is used to finalize the digest calcualation and return the digest as a String.
getDigestString(InputStream) - Static method in class org.rhq.core.util.MessageDigestGenerator
Similar to MessageDigestGenerator.getDigest(InputStream), only this returns the digest as a String.
getDigestString(String) - Static method in class org.rhq.core.util.MessageDigestGenerator
Calculates a digest for a given string and returns the digest's String representation.
getDigestString(File) - Static method in class org.rhq.core.util.MessageDigestGenerator
Calculates the digest for a given file.
getDigestString(URL) - Static method in class org.rhq.core.util.MessageDigestGenerator
Calculates the digest for a given file.
getDirectoryFiles(File) - Static method in class org.rhq.core.util.file.FileUtil
Obtains the list of all files in the given directory and, recursively, all its subdirectories.
getDiskUsage() - Method in class org.rhq.core.util.updater.DeploymentDiskUsage
 
getDouble(String, double) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
getElapsed() - Method in class org.rhq.core.util.StopWatch
 
getEnvironment() - Method in class org.rhq.core.util.exec.ProcessToStart
Returns environment variable name/value pairs that define the environment to be passed to the started process.
getEnvironment(Properties) - Method in class org.rhq.core.util.exec.ProcessToStart
Convenience method that not only returns the environment variables as a String array, but the environment variables are also populated in the given Properties map so the caller can more easily look up environment variables by name.
getError() - Method in class org.rhq.core.util.exec.ProcessExecutorResults
If the process failed to start, this will indicate the error that occurred.
getErrors() - Method in class org.rhq.core.util.updater.DeployDifferences
Returns the set of files that caused an error during processing.
getExceptionName() - Method in class org.rhq.core.util.exception.ExceptionPackage
Returns the name of the actual exception being packaged.
getExitCode() - Method in class org.rhq.core.util.exec.ProcessExecutorResults
The exit code of the process.
getExternalBackupDirectoryNameForWindows(String) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Given a Windows drive letter, this will return the name of the external backup directory where all backups for external files should be copied to.
getFileCount() - Method in class org.rhq.core.util.updater.DeploymentDiskUsage
 
getFileHashcodeMap() - Method in class org.rhq.core.util.updater.ExtractorZipFileVisitor
Returns the file/hashcode data this visitor has collected.
getFileHashcodeMap() - Method in class org.rhq.core.util.updater.InMemoryZipFileVisitor
Returns the file/hashcode data this visitor has collected.
getFileName(String, String) - Static method in class org.rhq.core.util.file.FileUtil
Return just the filename portion (the portion right of the last path separator string)
getFilteredStackAsString(Throwable) - Static method in class org.rhq.core.util.exception.ThrowableUtil
The same as calling getFilteredStackAsString(t, "org.rhq")
getFilteredStackAsString(Throwable, String) - Static method in class org.rhq.core.util.exception.ThrowableUtil
Returns the stack for t, filtering out all StackTraceElement's that don't start with filter.
getFirstStackTrace(Throwable) - Static method in class org.rhq.core.util.StringUtil
 
getFloat(String, float) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
getFullProgramExecutablePath(ProcessToStart) - Method in class org.rhq.core.util.exec.ProcessExecutor
Returns the full pathname to the program executable.
getGroupId() - Method in class org.rhq.core.util.maven.MavenArtifactProperties
 
getIgnored() - Method in class org.rhq.core.util.updater.ChangesFileHashcodeMap
 
getIgnoredFiles() - Method in class org.rhq.core.util.updater.DeployDifferences
Returns the set of files that have been ignored.
getIgnoreRegex() - Method in class org.rhq.core.util.updater.DeploymentData
 
getInputDirectory() - Method in class org.rhq.core.util.exec.ProcessToStart
Returns the directory where the input file is located.
getInputFile(ProcessToStart) - Method in class org.rhq.core.util.exec.ProcessExecutor
Gets the input file and returns its File representation.
getInputFile() - Method in class org.rhq.core.util.exec.ProcessToStart
Returns the name of the file that contains data to be input to the program.
getInstance(String, String) - Static method in class org.rhq.core.util.maven.MavenArtifactProperties
Returns a MavenArtifactProperties for the Maven artifact with the specified group id and artifact id.
getInstance(String, String, ClassLoader) - Static method in class org.rhq.core.util.maven.MavenArtifactProperties
Returns a MavenArtifactProperties for the Maven artifact with the specified group id and artifact id.
getInt(String, int) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
getLong(String, long) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
getManageRootDir() - Method in class org.rhq.core.util.updater.DeploymentProperties
getMaxDiskUsable() - Method in class org.rhq.core.util.updater.DeploymentDiskUsage
Returns the amount of bytes that are estimated to be usable on disk.
getMessage() - Method in class org.rhq.core.util.exception.ExceptionPackage
Returns the message associated with the exception.
getMessage() - Method in exception org.rhq.core.util.exception.WrappedRemotingException
Returns the message of the actual exception.
getMessageDigest() - Method in class org.rhq.core.util.MessageDigestGenerator
Returns the MessageDigest object that is used to compute the digest.
getMessageDigestGenerator() - Method in class org.rhq.core.util.stream.StreamCopyDigest
 
getMetadataDirectory() - Method in class org.rhq.core.util.updater.DeploymentsMetadata
 
getMetadataDirectoryOnlyIfExists() - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Same as DeploymentsMetadata.getMetadataDirectory(), however, if the directory doesn't exist, an exception is thrown.
getNextValSql(Connection, String) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
Generate the correct SQL statement to obtain the next value from a sequence/table generator for the passed table.
getOutputDirectory() - Method in class org.rhq.core.util.exec.ProcessToStart
Returns the directory where the program's output log file will be written.
getOutputFile() - Method in class org.rhq.core.util.exec.ProcessToStart
The file (to be placed in the output directory) where the program's output will be written.
getOutputStream() - Method in class org.rhq.core.util.exec.ProcessToStart
The output stream where the program's output will be written.
getPath() - Method in class org.rhq.core.util.file.PathFilter
 
getPattern() - Method in class org.rhq.core.util.file.PathFilter
 
getPercentComplete() - Method in class org.rhq.core.util.progresswatch.ProgressWatcher
Get the percentage complete of the total work specified.
getPreferencesFile() - Static method in class org.rhq.core.util.preferences.FilePreferencesFactory
 
getPreviousDeploymentProperties(int) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Returns information about the previous deployment given a specific deployment ID.
getProcess() - Method in class org.rhq.core.util.exec.ProcessExecutorResults
 
getProgramDirectory() - Method in class org.rhq.core.util.exec.ProcessToStart
Returns the full path to the program executable.
getProgramExecutable() - Method in class org.rhq.core.util.exec.ProcessToStart
Returns the name of the program to execute.
getProgramTitle() - Method in class org.rhq.core.util.exec.ProcessToStart
Returns the title for this program.
getProperty(String) - Method in class org.rhq.core.util.maven.MavenArtifactProperties
 
getPropertyNames() - Method in class org.rhq.core.util.maven.MavenArtifactProperties
 
getRaw(Object) - Method in class org.rhq.core.util.TokenReplacingProperties
 
getRawEntrySet() - Method in class org.rhq.core.util.TokenReplacingProperties
 
getRawFiles() - Method in class org.rhq.core.util.updater.DeploymentData
 
getRawFilesToRealize() - Method in class org.rhq.core.util.updater.DeploymentData
 
getRawValues() - Method in class org.rhq.core.util.TokenReplacingProperties
 
getRealizedFiles() - Method in class org.rhq.core.util.updater.DeployDifferences
Returns the set of files that have been realized.
getRelativePath(File, File) - Static method in class org.rhq.core.util.file.FileUtil
The base attribute specifies what the directory base the relative path should be considered relative to.
getRestoredFiles() - Method in class org.rhq.core.util.updater.DeployDifferences
Returns the set of files that have been restored from a backup copy.
getRootCause(Throwable) - Static method in class org.rhq.core.util.exception.ThrowableUtil
 
getRootDirectory() - Method in class org.rhq.core.util.updater.DeploymentsMetadata
 
getRootMessage(Throwable) - Static method in class org.rhq.core.util.exception.ThrowableUtil
 
getSeverity() - Method in class org.rhq.core.util.exception.ExceptionPackage
Returns the severity of the exception, which marks how important or severe the problem is.
getSkipped() - Method in class org.rhq.core.util.updater.ChangesFileHashcodeMap
 
getSourceDir() - Method in class org.rhq.core.util.updater.DeploymentData
 
getSpi(String) - Method in class org.rhq.core.util.preferences.FilePreferences
 
getStackAsString(Throwable) - Static method in class org.rhq.core.util.exception.ThrowableUtil
 
getStackTrace(Throwable) - Static method in class org.rhq.core.util.StringUtil
 
getStackTraceString() - Method in class org.rhq.core.util.exception.ExceptionPackage
Returns the stack trace for this exception but not of its cause.
getTemplateEngine() - Method in class org.rhq.core.util.updater.DeploymentData
 
getTokens() - Method in class org.rhq.core.template.TemplateEngine
 
getUnknownContent() - Method in class org.rhq.core.util.updater.FileHashcodeMap
If a file was not readable or its hashcode could not be generated for some reason, its path will be returned as a key to the returned map.
getVersion(String) - Method in class org.rhq.core.util.file.ContentFileInfo
Returns an appropriate version of the file content.
getVersion(String) - Method in class org.rhq.core.util.file.GenericContentFileInfo
If the caller provided a default value, it is used.
getVersion(String) - Method in class org.rhq.core.util.file.JarContentFileInfo
Returns the version of the Jar file (or archive satisfying Jar file structure) by inspecting the Manifest.
getVersion() - Method in class org.rhq.core.util.maven.MavenArtifactProperties
 
getWaitForExit() - Method in class org.rhq.core.util.exec.ProcessToStart
If 0 or less, the process executor will not wait for the process to exit before returning control.
getWorkingDirectory(ProcessToStart) - Method in class org.rhq.core.util.exec.ProcessExecutor
Returns the full pathname to the working directory.
getWorkingDirectory() - Method in class org.rhq.core.util.exec.ProcessToStart
Returns the working directory of the new process (known also as the current directory or the startup directory).
getZipEntriesToRealizeRegex() - Method in class org.rhq.core.util.updater.DeploymentData
 
getZipFiles() - Method in class org.rhq.core.util.updater.DeploymentData
Deprecated.
Use DeploymentData.getZipFilesMap() to fully support the destinationDir attribute on archive deployment.
getZipFilesMap() - Method in class org.rhq.core.util.updater.DeploymentData
 
getZipsExploded() - Method in class org.rhq.core.util.updater.DeploymentData
 

H

handshake(Map<String, Object>) - Method in class org.rhq.core.util.obfuscation.PropertyObfuscationVault
 
hashCode() - Method in class org.apache.maven.artifact.versioning.ComparableVersion
 
HASHCODES_FILE - Static variable in class org.rhq.core.util.updater.DeploymentsMetadata
 
hasOption(String, String) - Method in class org.rhq.core.util.IniEditor
Checks whether an option exists in a given section.
hasOption(String) - Method in class org.rhq.core.util.IniEditor.Section
Checks whether a given option exists in this section.
hasSection(String) - Method in class org.rhq.core.util.IniEditor
Checks whether a section with a particular name exists in this instance.
HEADER_END - Static variable in class org.rhq.core.util.IniEditor.Section
 
HEADER_START - Static variable in class org.rhq.core.util.IniEditor.Section
 
HumaneStringComparator - Class in org.rhq.core.util.sort
A comparator for Strings that imposes a more "human" order on Strings.
HumaneStringComparator() - Constructor for class org.rhq.core.util.sort.HumaneStringComparator
 

I

implode(List<?>, String) - Static method in class org.rhq.core.util.StringUtil
Create a string formulated by inserting a delimiter in between consecutive array elements.
increaseDiskUsage(long) - Method in class org.rhq.core.util.updater.DeploymentDiskUsage
 
incrementFileCount() - Method in class org.rhq.core.util.updater.DeploymentDiskUsage
 
IniEditor - Class in org.rhq.core.util
Loads, edits and saves INI-style configuration files.
IniEditor() - Constructor for class org.rhq.core.util.IniEditor
Constructs new bare IniEditor instance.
IniEditor(boolean) - Constructor for class org.rhq.core.util.IniEditor
Constructs new bare IniEditor instance specifying case-sensitivity.
IniEditor(String) - Constructor for class org.rhq.core.util.IniEditor
Constructs new IniEditor instance with a common section.
IniEditor(String, boolean) - Constructor for class org.rhq.core.util.IniEditor
Constructs new IniEditor instance with a common section.
IniEditor(char[]) - Constructor for class org.rhq.core.util.IniEditor
Constructs new IniEditor defining comment delimiters.
IniEditor(char[], boolean) - Constructor for class org.rhq.core.util.IniEditor
Constructs new IniEditor defining comment delimiters.
IniEditor(String, char[]) - Constructor for class org.rhq.core.util.IniEditor
Constructs new IniEditor instance with a common section, defining comment delimiters.
IniEditor(String, char[], boolean) - Constructor for class org.rhq.core.util.IniEditor
Constructs new IniEditor instance with a common section, defining comment delimiters.
IniEditor.NoSuchSectionException - Exception in org.rhq.core.util
Thrown when an inexistent section is addressed.
IniEditor.NoSuchSectionException() - Constructor for exception org.rhq.core.util.IniEditor.NoSuchSectionException
 
IniEditor.NoSuchSectionException(String) - Constructor for exception org.rhq.core.util.IniEditor.NoSuchSectionException
 
IniEditor.Section - Class in org.rhq.core.util
Loads, edits and saves a section of an INI-style configuration file.
IniEditor.Section(String) - Constructor for class org.rhq.core.util.IniEditor.Section
Constructs a new section.
IniEditor.Section(String, boolean) - Constructor for class org.rhq.core.util.IniEditor.Section
Constructs a new section, specifying case-sensitivity.
IniEditor.Section(String, char[]) - Constructor for class org.rhq.core.util.IniEditor.Section
Constructs a new section, defining comment delimiters.
IniEditor.Section(String, char[], boolean) - Constructor for class org.rhq.core.util.IniEditor.Section
Constructs a new section, defining comment delimiters.
init(Map<String, Object>) - Method in class org.rhq.core.util.obfuscation.PropertyObfuscationVault
 
InMemoryZipEntryRealizer - Class in org.rhq.core.util.updater
This class will realize a zip file entry in memory.
InMemoryZipEntryRealizer(File, TemplateEngine) - Constructor for class org.rhq.core.util.updater.InMemoryZipEntryRealizer
This object will realize entries found in the given zip file using replacement values provided by the given template engine.
InMemoryZipFileVisitor - Class in org.rhq.core.util.updater
A visitor object that will perform some in-memory work for each zip entry it visits.
InMemoryZipFileVisitor(Pattern, TemplateEngine) - Constructor for class org.rhq.core.util.updater.InMemoryZipFileVisitor
Creates the visitor.
instanceOrDefault(DestinationComplianceMode) - Static method in enum org.rhq.core.util.updater.DestinationComplianceMode
Use this method to get either the supplied compliance mode or the default compliance.
interrupt() - Method in class org.rhq.core.util.exec.ProcessExecutor.RedirectThreads
Interrupts these threads.
IntExtractor<T> - Interface in org.rhq.core.util
Extracts an integer value.
IntHashMap - Class in org.rhq.core.util.collection
A hash map that uses primitive ints for the key rather than objects.
IntHashMap() - Constructor for class org.rhq.core.util.collection.IntHashMap
Constructs a new, empty hashtable with a default capacity and load factor, which is 20 and 0.75 respectively.
IntHashMap(int) - Constructor for class org.rhq.core.util.collection.IntHashMap
Constructs a new, empty hashtable with the specified initial capacity and default load factor, which is 0.75.
IntHashMap(int, float) - Constructor for class org.rhq.core.util.collection.IntHashMap
Constructs a new, empty hashtable with the specified initial capacity and the specified load factor.
isAbsolutePath(String) - Static method in class org.rhq.core.util.file.FileUtil
Under certain conditions, it might be desired to consider a path that is technically a Windows relative path to be absolute.
isBackupOutputFile() - Method in class org.rhq.core.util.exec.ProcessToStart
If true, any previously existing output file will be backed up by renaming it with a date/timestamp.
isBlank(String) - Static method in class org.rhq.core.util.StringUtil
 
isCaptureOutput() - Method in class org.rhq.core.util.exec.ProcessToStart
If true, the started process' output will be captured and written to the output file or stream.
isCheckExecutableExists() - Method in class org.rhq.core.util.exec.ProcessToStart
If true, then the executable will first be checked for its existance.
isDestinationDirectoryManaged() - Method in class org.rhq.core.util.updater.Deployer
 
isEmpty() - Method in class org.rhq.core.util.collection.IntHashMap
Tests if this hashtable maps no keys to values.
isEmpty(String) - Static method in class org.rhq.core.util.StringUtil
 
isInitialized() - Method in class org.rhq.core.util.obfuscation.PropertyObfuscationVault
 
isKillOnTimeout() - Method in class org.rhq.core.util.exec.ProcessToStart
If true, then the process will be forcibly killed if it doesn't exit within the wait time.
isManaged() - Method in class org.rhq.core.util.updater.DeploymentsMetadata
If this object's DeploymentsMetadata.getRootDirectory() refers to a directory containing managed deployments, this returns true.
isManageRootDir() - Method in class org.rhq.core.util.updater.DeploymentData
isNewer(File, File) - Static method in class org.rhq.core.util.file.FileUtil
This will check to see if file1 is newer than file2.
isNotBlank(String) - Static method in class org.rhq.core.util.StringUtil
 
isNotEmpty(String) - Static method in class org.rhq.core.util.StringUtil
 
isRestrictedFormat(String) - Static method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences.RestrictedFormat
Checks if a property value is in a restricted format.
isUserNode() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
isValid() - Method in class org.rhq.core.util.file.ContentFileInfo
Determines if the file can be processed by the implementation.
isValid() - Method in class org.rhq.core.util.file.GenericContentFileInfo
Any file is considered valid if it exists and is readable.
isValid() - Method in class org.rhq.core.util.file.JarContentFileInfo
Determines if the content file is a valid jar file (i.e.
isValid() - Method in class org.rhq.core.util.updater.DeploymentProperties
Returns true if this object has everything required to define a valid deployment.
iteratorToString(Iterator<?>, String) - Static method in class org.rhq.core.util.StringUtil
Print out everything in an Iterator in a user-friendly string format.
iteratorToString(Iterator<?>, String, String) - Static method in class org.rhq.core.util.StringUtil
Print out everything in an Iterator in a user-friendly string format.

J

JarContentFileInfo - Class in org.rhq.core.util.file
Return the version of the jar file by inspecting the Manifest.
JarContentFileInfo(File) - Constructor for class org.rhq.core.util.file.JarContentFileInfo
 
JDBCUtil - Class in org.rhq.core.util.jdbc
Take care of some JDBC related stuff.
JDBCUtil() - Constructor for class org.rhq.core.util.jdbc.JDBCUtil
 
join() - Method in class org.rhq.core.util.exec.ProcessExecutor.RedirectThreads
Waits for output to be fully captured.

K

keyList() - Method in class org.rhq.core.util.obfuscation.PropertyObfuscationVault
 
keys() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
keySet() - Method in class org.rhq.core.util.TokenReplacingProperties
 
keysSpi() - Method in class org.rhq.core.util.preferences.FilePreferences
 

L

listToString(List<?>, String) - Static method in class org.rhq.core.util.StringUtil
Print out a List in a user-friendly string format.
listToString(List<?>) - Static method in class org.rhq.core.util.StringUtil
Print out a List in a user-friendly string format.
load(String) - Method in class org.rhq.core.util.IniEditor
Loads INI formatted input from a file into this instance, using the default character encoding.
load(File) - Method in class org.rhq.core.util.IniEditor
Loads INI formatted input from a file into this instance, using the default character encoding.
load(InputStream) - Method in class org.rhq.core.util.IniEditor
Loads INI formatted input from a stream into this instance, using the default character encoding.
load(InputStreamReader) - Method in class org.rhq.core.util.IniEditor
Loads INI formatted input from a stream reader into this instance.
load(BufferedReader) - Method in class org.rhq.core.util.IniEditor.Section
Loads options from a reader into this instance.
loadExistingProperties() - Method in class org.rhq.core.util.PropertiesFileUpdate
Loads and returns the properties that exist currently in the properties file.
loadFromFile(File) - Static method in class org.rhq.core.util.updater.DeploymentProperties
 
loadFromFile(File) - Static method in class org.rhq.core.util.updater.FileHashcodeMap
Loads in the file that contains file/hashcode map data.

M

main(String[]) - Static method in class org.rhq.core.util.MessageDigestGenerator
This can be used to generate the digest hash from the command line.
mark(int) - Method in class org.rhq.core.util.TokenReplacingReader
 
markSupported() - Method in class org.rhq.core.util.TokenReplacingReader
 
markTimeBegin(String) - Method in class org.rhq.core.util.StopWatch
 
markTimeEnd(String) - Method in class org.rhq.core.util.StopWatch
 
MavenArtifactNotFoundException - Exception in org.rhq.core.util.maven
 
MavenArtifactNotFoundException(String) - Constructor for exception org.rhq.core.util.maven.MavenArtifactNotFoundException
 
MavenArtifactProperties - Class in org.rhq.core.util.maven
 
MD5 - Static variable in class org.rhq.core.util.MessageDigestGenerator
you can pass this to the constructor to indicate you want to generate MD5 message digests
MessageDigestGenerator - Class in org.rhq.core.util
An object that generates a message digest or hash for algorithms such as MD5 or SHA.
MessageDigestGenerator() - Constructor for class org.rhq.core.util.MessageDigestGenerator
Creates a new MessageDigestGenerator object using MD5 as the default algorithm.
MessageDigestGenerator(String) - Constructor for class org.rhq.core.util.MessageDigestGenerator
Creates a new MessageDigestGenerator using the specified algorithm.
METADATA_DIR - Static variable in class org.rhq.core.util.updater.DeploymentsMetadata
 
MSG - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 

N

name() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
NaN - Static variable in class org.rhq.core.util.NumberUtil
Constant value representing "not a number".
NEWLINE - Static variable in class org.rhq.core.util.StringPropertyReplacer
New line string constant
node(String) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
nodeExists(String) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
normalizePath(File) - Static method in class org.rhq.core.util.file.FileUtil
Normalizes the path of the file by removing any ".." and "."

This method behaves very similar to Java7's Path.normalize() method with the exception of dealing with paths jumping "above" the FS root.

normalizePath(String) - Static method in class org.rhq.core.util.StringUtil
 
numberAsString(double) - Static method in class org.rhq.core.util.NumberUtil
Format the input number as a string (using the default locale).
NumberUtil - Class in org.rhq.core.util
Utilities for dealing with number parsing / formatting.

O

ObfuscatedPreferences - Class in org.rhq.core.util.obfuscation
 
ObfuscatedPreferences(Preferences, Class) - Constructor for class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
ObfuscatedPreferences.Restricted - Annotation Type in org.rhq.core.util.obfuscation
 
ObfuscatedPreferences.RestrictedFormat - Class in org.rhq.core.util.obfuscation
 
ObfuscatedPreferences.RestrictedFormat() - Constructor for class org.rhq.core.util.obfuscation.ObfuscatedPreferences.RestrictedFormat
 
Obfuscator - Class in org.rhq.core.util.obfuscation
This class makes available methods for obfuscating a string in the very same way as the org.jboss.resource.security.SecureIdentityLoginModule in JBossAS 4.2.3.
ObjectNameFactory - Class in org.rhq.core.util
Should only be used for static instantiantion of object names.
ObjectNameFactory() - Constructor for class org.rhq.core.util.ObjectNameFactory
 
optionNames(String) - Method in class org.rhq.core.util.IniEditor
Returns all option names of a section, not including options from the common section.
optionNames() - Method in class org.rhq.core.util.IniEditor.Section
Returns the names of all options in this section.
org.apache.maven.artifact.versioning - package org.apache.maven.artifact.versioning
 
org.rhq.core.template - package org.rhq.core.template
 
org.rhq.core.util - package org.rhq.core.util
 
org.rhq.core.util.collection - package org.rhq.core.util.collection
 
org.rhq.core.util.exception - package org.rhq.core.util.exception
 
org.rhq.core.util.exec - package org.rhq.core.util.exec
 
org.rhq.core.util.file - package org.rhq.core.util.file
 
org.rhq.core.util.jdbc - package org.rhq.core.util.jdbc
 
org.rhq.core.util.maven - package org.rhq.core.util.maven
 
org.rhq.core.util.obfuscation - package org.rhq.core.util.obfuscation
 
org.rhq.core.util.preferences - package org.rhq.core.util.preferences
 
org.rhq.core.util.progresswatch - package org.rhq.core.util.progresswatch
 
org.rhq.core.util.sort - package org.rhq.core.util.sort
 
org.rhq.core.util.stream - package org.rhq.core.util.stream
 
org.rhq.core.util.updater - package org.rhq.core.util.updater
 

P

parent() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
parseVersion(String) - Method in class org.apache.maven.artifact.versioning.ComparableVersion
 
PathFilter - Class in org.rhq.core.util.file
 
PathFilter(String, String) - Constructor for class org.rhq.core.util.file.PathFilter
 
percentageAsString(double) - Static method in class org.rhq.core.util.NumberUtil
Format the input percentage as a string (using the default locale).
PicketBoxObfuscator - Class in org.rhq.core.util.obfuscation
 
pluralize(String) - Static method in class org.rhq.core.util.StringUtil
 
PREVIOUS_DEPLOYMENT_FILE - Static variable in class org.rhq.core.util.updater.DeploymentsMetadata
 
printStackTrace() - Method in exception org.rhq.core.util.exception.WrappedRemotingException
Prints the stack trace of the actual exception to System.err.
printStackTrace(PrintStream) - Method in exception org.rhq.core.util.exception.WrappedRemotingException
Prints the stack trace of the actual exception.
printStackTrace(PrintWriter) - Method in exception org.rhq.core.util.exception.WrappedRemotingException
Prints the stack trace of the actual exception.
PROCESS_EXEC_INPUT_DIR_DOES_NOT_EXIST - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_INPUT_DIR_INVALID - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_INPUT_FILE_DOES_NOT_EXIST - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_INPUT_FILE_IS_DIR - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_INPUT_FILE_UNREADABLE - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_INPUT_PARAMS_INVALID - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_OUTPUT_DIR_DOES_NOT_EXIST - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_OUTPUT_DIR_INVALID - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_OUTPUT_FILE_CREATION_FAILURE - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_OUTPUT_FILE_IS_DIR - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_PROGRAM_DOES_NOT_EXIST - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
PROCESS_EXEC_WORKING_DIR_DOES_NOT_EXIST - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
ProcessExecutor - Class in org.rhq.core.util.exec
Executes processes using the Java API.
ProcessExecutor(ExecutorService) - Constructor for class org.rhq.core.util.exec.ProcessExecutor
Constructs with a thread pool which executes tasks.
ProcessExecutor() - Constructor for class org.rhq.core.util.exec.ProcessExecutor
Constructs using a new, cached thread pool.
ProcessExecutor.RedirectThreads - Class in org.rhq.core.util.exec
Wrapper for threads used for capturing output.
ProcessExecutorResults - Class in org.rhq.core.util.exec
The results of a process execution.
ProcessExecutorResults() - Constructor for class org.rhq.core.util.exec.ProcessExecutorResults
 
ProcessToStart - Class in org.rhq.core.util.exec
Data describing a process to start.
ProcessToStart() - Constructor for class org.rhq.core.util.exec.ProcessToStart
 
ProgressWatcher - Class in org.rhq.core.util.progresswatch
Simple class who's goal is to: 1) Total up the amount of work to be done 2) Track the amount of work that is actually done 3) Report the % of the work completed The amount of work is arbitrary and stored in simple integer format.
ProgressWatcher() - Constructor for class org.rhq.core.util.progresswatch.ProgressWatcher
 
PropertiesFileUpdate - Class in org.rhq.core.util
This utility helps update one or more properties in a .properties file without losing the ordering of existing properties or comment lines.
PropertiesFileUpdate(String) - Constructor for class org.rhq.core.util.PropertiesFileUpdate
Constructor given the full path to the .properties file.
PropertiesFileUpdate(File) - Constructor for class org.rhq.core.util.PropertiesFileUpdate
Constructor given the .properties file.
PropertyObfuscationVault - Class in org.rhq.core.util.obfuscation
 
PropertyObfuscationVault() - Constructor for class org.rhq.core.util.obfuscation.PropertyObfuscationVault
 
purge(File, boolean) - Static method in class org.rhq.core.util.file.FileUtil
Given a directory, this will recursively purge all child directories and files.
put(int, Object) - Method in class org.rhq.core.util.collection.IntHashMap
Maps the specified key to the specified value in this hashtable.
put(String, String) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
put(String, String) - Method in class org.rhq.core.util.TokenReplacingProperties
 
put(String, String) - Method in class org.rhq.core.util.updater.FileHashcodeMap
 
putAll(Map<? extends String, ? extends String>) - Method in class org.rhq.core.util.TokenReplacingProperties
 
putAll(Properties) - Method in class org.rhq.core.util.TokenReplacingProperties
 
putBoolean(String, boolean) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
putByteArray(String, byte[]) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
putDouble(String, double) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
putFloat(String, float) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
putInt(String, int) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
putLong(String, long) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
putSpi(String, String) - Method in class org.rhq.core.util.preferences.FilePreferences
 

R

read(CharBuffer) - Method in class org.rhq.core.util.TokenReplacingReader
 
read() - Method in class org.rhq.core.util.TokenReplacingReader
 
read(char[]) - Method in class org.rhq.core.util.TokenReplacingReader
 
read(char[], int, int) - Method in class org.rhq.core.util.TokenReplacingReader
 
ready() - Method in class org.rhq.core.util.TokenReplacingReader
 
realize(String) - Method in class org.rhq.core.util.updater.InMemoryZipEntryRealizer
Returns a string containing the content of the zip entry with its content realized; meaning all replacement variables have been replaced with values provided by the template engine.
redeployAndRestoreBackupFiles(DeployDifferences, boolean, boolean) - Method in class org.rhq.core.util.updater.Deployer
This will first perform a deploy (e.g.
redirectAllStreams(ProcessToStart, Process) - Method in class org.rhq.core.util.exec.ProcessExecutor
This method redirects the stdout/stderr streams of the child process to the output log file and pipes the contents of the input file (if one was specified) to the stdin stream of the child process.
redirectStreams(ProcessToStart, Process) - Method in class org.rhq.core.util.exec.ProcessExecutor
Deprecated.
rehash() - Method in class org.rhq.core.util.collection.IntHashMap
Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently.
remove(int) - Method in class org.rhq.core.util.collection.IntHashMap
Removes the key (and its corresponding value) from this hashtable.
remove(String, String) - Method in class org.rhq.core.util.IniEditor
Removes an option from a section if it exists.
remove(String) - Method in class org.rhq.core.util.IniEditor.Section
Removes an option if it exists.
remove(String) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
remove(String, String, byte[]) - Method in class org.rhq.core.util.obfuscation.PropertyObfuscationVault
 
remove(String, String) - Static method in class org.rhq.core.util.StringUtil
 
remove(Object) - Method in class org.rhq.core.util.TokenReplacingProperties
 
remove(Object) - Method in class org.rhq.core.util.updater.FileHashcodeMap
 
removeAddedFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
removeChangedFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
removeDeletedFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
removeIgnoredFile(String) - Method in class org.rhq.core.util.updater.DeployDifferences
 
removeNode() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
removeNodeChangeListener(NodeChangeListener) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
removeNodeSpi() - Method in class org.rhq.core.util.preferences.FilePreferences
 
removePreferenceChangeListener(PreferenceChangeListener) - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
removePrefix(String, String) - Static method in class org.rhq.core.util.StringUtil
Remove a prefix from a string.
removeSection(String) - Method in class org.rhq.core.util.IniEditor
Removes a section if it exists.
removeSpi(String) - Method in class org.rhq.core.util.preferences.FilePreferences
 
repeatChars(char, int) - Static method in class org.rhq.core.util.StringUtil
 
replace(String, String, String) - Static method in class org.rhq.core.util.StringUtil
 
replaceProperties(String) - Static method in class org.rhq.core.util.StringPropertyReplacer
Go through the input string and replace any occurance of ${p} with the System.getProperty(p) value.
replaceProperties(String, Properties) - Static method in class org.rhq.core.util.StringPropertyReplacer
Go through the input string and replace any occurance of ${p} with the props.getProperty(p) value.
replaceTokens(String) - Method in class org.rhq.core.template.TemplateEngine
 
rescan(File, Pattern, boolean) - Method in class org.rhq.core.util.updater.FileHashcodeMap
This rescans a set of files (found in this map) and returns a map with an updated, current set of hashcodes.
reset() - Method in class org.rhq.core.util.StopWatch
 
reset() - Method in class org.rhq.core.util.TokenReplacingReader
 
resetToZero() - Method in class org.rhq.core.util.progresswatch.ProgressWatcher
Reset the ProgressWatcher to zero.
retrieve(String, String, byte[]) - Method in class org.rhq.core.util.obfuscation.PropertyObfuscationVault
Documentation provided since slightly changing the meaning of method parameters from the overriden method.
retrieveValue(String) - Static method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences.RestrictedFormat
Retrieves the actual value from a restricted format string.
revert() - Method in class org.rhq.core.util.file.FileReverter
 
run() - Method in class org.rhq.core.util.exec.StreamRedirector
 
run() - Method in class org.rhq.core.util.exec.StreamRedirectorRunnable
 

S

safeClose(Statement, ResultSet) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
 
safeClose(Connection, Statement, ResultSet) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
 
safeClose(Connection) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
 
safeClose(ResultSet) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
 
safeClose(Statement) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
 
safeClose(InputStream) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
Deprecated.
This should correctly be handled at the place where the stream is about to be closed JBNADM-2600
safeClose(OutputStream) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
Deprecated.
This should correctly be handled at the place where the stream is about to be closed JBNADM-2600
safeClose(Reader) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
Deprecated.
This should correctly be handled at the place where the stream is about to be closed JBNADM-2600
safeClose(Writer) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
Deprecated.
This should correctly be handled at the place where the stream is about to be closed JBNADM-2600
safeClose(Closeable) - Static method in class org.rhq.core.util.stream.StreamUtil
Can be used to safely close a stream.
save(String) - Method in class org.rhq.core.util.IniEditor
Writes this instance in INI format to a file.
save(File) - Method in class org.rhq.core.util.IniEditor
Writes this instance in INI format to a file.
save(OutputStream) - Method in class org.rhq.core.util.IniEditor
Writes this instance in INI format to an output stream.
save(OutputStreamWriter) - Method in class org.rhq.core.util.IniEditor
Writes this instance in INI format to an output stream writer.
save(PrintWriter) - Method in class org.rhq.core.util.IniEditor.Section
Prints this section to a print writer.
saveToFile(File) - Method in class org.rhq.core.util.updater.DeploymentProperties
 
sectionNames() - Method in class org.rhq.core.util.IniEditor
Returns all section names in this instance minus the common section if one was defined.
serialize(Serializable) - Static method in class org.rhq.core.util.stream.StreamUtil
Given a serializable object, this will return the object's serialized byte array representation.
set(String, String) - Method in class org.rhq.core.util.IniEditor.Section
Sets an option's value and creates the option if it doesn't exist.
set(String, String, char) - Method in class org.rhq.core.util.IniEditor.Section
Sets an option's value and creates the option if it doesn't exist.
set(String, String, String) - Method in class org.rhq.core.util.IniEditor
Sets the value of an option in a section, if the option exist, otherwise adds the option to the section.
setArguments(String[]) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the argument values that are to be passed on the command line to the program executable.
setBackupOutputFile(Boolean) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the flag to indicate if any previously existing output file should be backed up.
setBundleName(String) - Method in class org.rhq.core.util.updater.DeploymentProperties
 
setBundleVersion(String) - Method in class org.rhq.core.util.updater.DeploymentProperties
 
setCaptureOutput(Boolean) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the flag to indicate if the process' output should be captured in the output file.
setCheckExecutableExists(Boolean) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the flag to indicate if the executable should be checked for existence first.
setCleaned(boolean) - Method in class org.rhq.core.util.updater.DeployDifferences
 
setCurrentDeployment(DeploymentProperties, FileHashcodeMap, boolean) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Call this when you already know the properties, and files/hashcodes for the current live deployment.
setDeploymentId(int) - Method in class org.rhq.core.util.updater.DeploymentProperties
 
setDescription(String) - Method in class org.rhq.core.util.updater.DeploymentProperties
 
setDestinationCompliance(DestinationComplianceMode) - Method in class org.rhq.core.util.updater.DeploymentProperties
 
setDiskUsage(long) - Method in class org.rhq.core.util.updater.DeploymentDiskUsage
 
setEnvironment(String[]) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the environment variable name/value pairs that define the environment to be passed to the started process.
setEnvironment(Properties) - Method in class org.rhq.core.util.exec.ProcessToStart
Convienence method that takes a Properties object containing the environment variables, as opposed to an array of strings (see ProcessToStart.setEnvironment(String[]).
setError(Throwable) - Method in class org.rhq.core.util.exec.ProcessExecutorResults
 
setExitCode(Integer) - Method in class org.rhq.core.util.exec.ProcessExecutorResults
 
setFileCount(int) - Method in class org.rhq.core.util.updater.DeploymentDiskUsage
 
setInputDirectory(String) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the directory where the input file is located.
setInputFile(String) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the name of the file that contains data to be input to the program.
setKillOnTimeout(Boolean) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the flag to indicate if the process should be killed after the wait timeout expires.
setManageRootDir(boolean) - Method in class org.rhq.core.util.updater.DeploymentProperties
setMaxDiskUsable(long) - Method in class org.rhq.core.util.updater.DeploymentDiskUsage
 
setOptionFormat(IniEditor.OptionFormat) - Method in class org.rhq.core.util.IniEditor.Section
Sets the option format for this section.
setOptionFormatString(String) - Method in class org.rhq.core.util.IniEditor.Section
Sets the option format for this section to the given string.
setOptionFormatString(String) - Method in class org.rhq.core.util.IniEditor
Sets the option format for this instance to the given string.
setOutputDirectory(String) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the directory where the program's output log file will be written.
setOutputFile(String) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the file (to be placed in the output directory) where the program's output will be written.
setOutputStream(OutputStream) - Method in class org.rhq.core.util.exec.ProcessToStart
The output stream where the program's output will be written.
setProcess(Process) - Method in class org.rhq.core.util.exec.ProcessExecutorResults
 
setProgramDirectory(String) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the full path to the program executable.
setProgramExecutable(String) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the name of the program to execute.
setProgramTitle(String) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the title for this program.
setTotalWork(int) - Method in class org.rhq.core.util.progresswatch.ProgressWatcher
Set the total amount of work to be completed.
setWaitForExit(Long) - Method in class org.rhq.core.util.exec.ProcessToStart
If null or is 0 or less, the process executor will not wait for the process to exit before returning control.
setWorkingDirectory(String) - Method in class org.rhq.core.util.exec.ProcessToStart
Sets the working directory of the new process
Severity - Enum in org.rhq.core.util.exception
 
SHA_256 - Static variable in class org.rhq.core.util.MessageDigestGenerator
you can pass this to the constructor to indicate you want to generate SHA 256 message digests
size() - Method in class org.rhq.core.util.collection.IntHashMap
Returns the number of keys in this hashtable.
size() - Method in class org.rhq.core.util.TokenReplacingProperties
 
skip(long) - Method in class org.rhq.core.util.TokenReplacingReader
 
slurp(InputStream) - Static method in class org.rhq.core.util.stream.StreamUtil
Reads in the entire contents of the given input stream and returns the data in a byte array.
slurp(Reader) - Static method in class org.rhq.core.util.stream.StreamUtil
Equivalent of StreamUtil.slurp(InputStream) but using a reader instead of input stream.
snapshotLiveDeployment(DeploymentProperties, Pattern, Set<String>) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Looks at the live deployment and takes a snapshot of it and stores its metadata in its appropriate deployment metadata directory.
start() - Method in class org.rhq.core.util.progresswatch.ProgressWatcher
Start watching the progress of a given amount of work.
START_COMMAND_ENV_VAR_BAD_FORMAT - Static variable in interface org.rhq.core.util.UtilI18NResourceKeys
 
startProgram(ProcessToStart) - Method in class org.rhq.core.util.exec.ProcessExecutor
Starts a child process.
stop() - Method in class org.rhq.core.util.progresswatch.ProgressWatcher
Indicate this ProgressWatcher is finished watching.
StopWatch - Class in org.rhq.core.util
 
StopWatch() - Constructor for class org.rhq.core.util.StopWatch
 
StopWatch(long) - Constructor for class org.rhq.core.util.StopWatch
 
store(String, String, char[], byte[]) - Method in class org.rhq.core.util.obfuscation.PropertyObfuscationVault
 
storeToFile(File) - Method in class org.rhq.core.util.updater.FileHashcodeMap
Takes all map entries in this object and writes them to the given file such that it can later be loaded in via FileHashcodeMap.loadFromFile(File).
StreamCopyDigest - Class in org.rhq.core.util.stream
This copies stream data to another stream, while calculating the stream's message digest on the fly as the copy is performed.
StreamCopyDigest() - Constructor for class org.rhq.core.util.stream.StreamCopyDigest
 
StreamCopyDigest(MessageDigestGenerator) - Constructor for class org.rhq.core.util.stream.StreamCopyDigest
 
StreamRedirector - Class in org.rhq.core.util.exec
Redirects data coming in from one (input) stream into another (output) stream.
StreamRedirector(String, InputStream, OutputStream) - Constructor for class org.rhq.core.util.exec.StreamRedirector
Constructor for StreamRedirector that takes an input stream where we read data in and an output stream where we write the data read from the input stream.
StreamRedirectorRunnable - Class in org.rhq.core.util.exec
Redirects data coming in from one (input) stream into another (output) stream.
StreamRedirectorRunnable(String, InputStream, OutputStream) - Constructor for class org.rhq.core.util.exec.StreamRedirectorRunnable
Constructor for StreamRedirectorRunnable that takes an input stream where we read data in and an output stream where we write the data read from the input stream.
StreamUtil - Class in org.rhq.core.util.stream
Provides some utilities to work on streams and some (de)serialization methods..
stringAsNumber(String) - Static method in class org.rhq.core.util.NumberUtil
Parse the input string (using the default locale) and return its numeric representation.
stringAsPercentage(String) - Static method in class org.rhq.core.util.NumberUtil
Parse the input string (using the default locale) and return its numeric percentage representation.
StringPropertyReplacer - Class in org.rhq.core.util
A utility class for replacing properties in strings.
StringPropertyReplacer() - Constructor for class org.rhq.core.util.StringPropertyReplacer
 
StringUtil - Class in org.rhq.core.util
 
StringUtil() - Constructor for class org.rhq.core.util.StringUtil
 
stripDriveLetter(StringBuilder) - Static method in class org.rhq.core.util.file.FileUtil
Strips the drive letter from the given Windows path.
sync() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
syncSpi() - Method in class org.rhq.core.util.preferences.FilePreferences
 
SYSTEM_PROPERTY_FILE - Static variable in class org.rhq.core.util.preferences.FilePreferencesFactory
 
systemRoot() - Method in class org.rhq.core.util.preferences.FilePreferencesFactory
 

T

TemplateEngine - Class in org.rhq.core.template
 
TemplateEngine(Map<String, String>) - Constructor for class org.rhq.core.template.TemplateEngine
 
ThrowableUtil - Class in org.rhq.core.util.exception
Utilities for working with throwables and their messages.
toHexString(byte[]) - Static method in class org.rhq.core.util.ByteUtil
Converts the byte array into a string of hexadecimal numbers.
TokenReplacingProperties - Class in org.rhq.core.util
This map is basically an extension of the Properties class that can resolve the references to values of other keys inside the values.
TokenReplacingProperties(Map<String, String>) - Constructor for class org.rhq.core.util.TokenReplacingProperties
 
TokenReplacingProperties(Properties) - Constructor for class org.rhq.core.util.TokenReplacingProperties
 
TokenReplacingReader - Class in org.rhq.core.util
Copied from http://tutorials.jenkov.com/java-howto/replace-strings-in-streams-arrays-files.html with fixes to TokenReplacingReader.read(char[], int, int) and added support for escaping.
TokenReplacingReader(Reader, Map<String, String>) - Constructor for class org.rhq.core.util.TokenReplacingReader
 
TokenReplacingReader(String, Map<String, String>, Deque<String>, Map<String, String>) - Constructor for class org.rhq.core.util.TokenReplacingReader
 
toString() - Method in class org.apache.maven.artifact.versioning.ComparableVersion
 
toString() - Method in class org.rhq.core.util.exception.ExceptionPackage
Returns a string consisting of the exception's name, the severity and message of the exception.
toString() - Method in exception org.rhq.core.util.exception.WrappedRemotingException
toString() - Method in class org.rhq.core.util.exec.ProcessExecutorResults
 
toString() - Method in class org.rhq.core.util.obfuscation.ObfuscatedPreferences
 
toString() - Method in class org.rhq.core.util.StopWatch
 
toString() - Method in class org.rhq.core.util.updater.DeployDifferences
 
toString() - Method in class org.rhq.core.util.updater.DeploymentDiskUsage
 
toString() - Method in class org.rhq.core.util.updater.DeploymentsMetadata
 
transformQueryForMultipleInParameters(String, String, int) - Static method in class org.rhq.core.util.jdbc.JDBCUtil
Populate the passed query with bindCount number of placeholders '?'.
truncate(String, int, boolean) - Static method in class org.rhq.core.util.StringUtil
 

U

UNKNOWN_DIR_HASHCODE - Static variable in class org.rhq.core.util.updater.FileHashcodeMap
 
UNKNOWN_FILE_HASHCODE - Static variable in class org.rhq.core.util.updater.FileHashcodeMap
 
unwrapArray(Integer[]) - Static method in class org.rhq.core.util.collection.ArrayUtils
 
unwrapCollection(Collection<Integer>) - Static method in class org.rhq.core.util.collection.ArrayUtils
 
unzipFile(File, File) - Static method in class org.rhq.core.util.ZipUtil
Unzips the content of the given zip file to the specified directory.
unzipFile(InputStream, File) - Static method in class org.rhq.core.util.ZipUtil
Writes the zip content out to the specified directory.
update(String, String) - Method in class org.rhq.core.util.PropertiesFileUpdate
Updates the properties file so it will contain the key with the value.
update(Properties) - Method in class org.rhq.core.util.PropertiesFileUpdate
Updates the existing properties file with the new properties.
useBackwardSlash(String) - Static method in class org.rhq.core.util.file.FileUtil
Ensure that the path uses only forward slash.
useForwardSlash(String) - Static method in class org.rhq.core.util.file.FileUtil
Ensure that the path uses only forward slash.
useNativeSlash(String) - Static method in class org.rhq.core.util.file.FileUtil
Ensure that the path uses only the proper file separator for the OS.
userRoot() - Method in class org.rhq.core.util.preferences.FilePreferencesFactory
 
UtilI18NResourceKeys - Interface in org.rhq.core.util
I18N resource bundle keys that identify the messages needed by the util module.

V

valueOf(String) - Static method in enum org.rhq.core.util.exception.Severity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.rhq.core.util.updater.DestinationComplianceMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.rhq.core.util.exception.Severity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class org.rhq.core.util.TokenReplacingProperties
Unlike in the default implementation the collection returned from this method IS NOT backed by this map.
values() - Static method in enum org.rhq.core.util.updater.DestinationComplianceMode
Returns an array containing the constants of this enum type, in the order they are declared.
visit(File) - Method in interface org.rhq.core.util.file.FileVisitor
Invoked for each file in a directory tree.
visit(ZipEntry, ZipInputStream) - Method in class org.rhq.core.util.updater.ExtractorZipFileVisitor
 
visit(ZipEntry, ZipInputStream) - Method in class org.rhq.core.util.updater.InMemoryZipFileVisitor
 
visit(ZipEntry, ZipInputStream) - Method in interface org.rhq.core.util.ZipUtil.ZipEntryVisitor
Visits a specific zip file entry.

W

walkZip(InputStream, ZipUtil.ZipEntryVisitor, boolean) - Static method in class org.rhq.core.util.ZipUtil
Walks the provided zip file stream.
walkZipFile(File, ZipUtil.ZipEntryVisitor) - Static method in class org.rhq.core.util.ZipUtil
Walks the entries of a zip file, allowing a listener to "visit" each node and perform tasks on the zip entry.
wasCleaned() - Method in class org.rhq.core.util.updater.DeployDifferences
Returns true if the delpoyment's destination directory was wiped of all files/directories before the new deployment files were copied to it.
wrapInArray(int[]) - Static method in class org.rhq.core.util.collection.ArrayUtils
 
wrapInList(int[]) - Static method in class org.rhq.core.util.collection.ArrayUtils
 
WrappedRemotingException - Exception in org.rhq.core.util.exception
This class can wrap up an exception in a non-object/serialized form to send to a remote system that might not have the exception class available for deserialization.
WrappedRemotingException(ExceptionPackage) - Constructor for exception org.rhq.core.util.exception.WrappedRemotingException
Constructor for WrappedRemotingException that wraps the actual exception information.
WrappedRemotingException(Throwable) - Constructor for exception org.rhq.core.util.exception.WrappedRemotingException
Constructor for WrappedRemotingException that takes the actual exception and wraps it in a ExceptionPackage.
WrappedRemotingException(Severity, Throwable) - Constructor for exception org.rhq.core.util.exception.WrappedRemotingException
Constructor for WrappedRemotingException that takes the actual exception and wraps it in a ExceptionPackage.
writeFile(InputStream, File) - Static method in class org.rhq.core.util.file.FileUtil
Writes the content in the input stream to the specified file.

Z

zipFileOrDirectory(File, File) - Static method in class org.rhq.core.util.ZipUtil
Zips up the given file or directory and stores the zip file at zipFile.
zipFileOrDirectory(File, ZipOutputStream) - Static method in class org.rhq.core.util.ZipUtil
 
ZipUtil - Class in org.rhq.core.util
A set of utility methods for working with zip files.
ZipUtil.ZipEntryVisitor - Interface in org.rhq.core.util
Used by ZipUtil.walkZipFile(File, ZipEntryVisitor) to visit zip entries.
A B C D E F G H I J K L M N O P R S T U V W Z 

Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.