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

A

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
 
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.
arrayToString(Object[]) - Static method in class org.rhq.core.clientapi.util.StringUtil
Print out an array as a String
arrayToString(boolean[]) - Static method in class org.rhq.core.clientapi.util.StringUtil
Print out an array as a String
arrayToString(Object[], char) - Static method in class org.rhq.core.clientapi.util.StringUtil
Print out an array as a String
arrayToString(int[]) - Static method in class org.rhq.core.clientapi.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
 
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
 

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.clientapi.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.
clear() - Method in class org.rhq.core.util.collection.IntHashMap
Clears this hashtable so that it contains no keys.
collectionToString(Collection, String) - Static method in class org.rhq.core.clientapi.util.StringUtil
 
collectionToString(Collection) - Static method in class org.rhq.core.clientapi.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
 
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.updater.FileHashcodeMap
 
containsValue(Object) - Method in class org.rhq.core.util.collection.IntHashMap
Returns true if this HashMap maps one or more keys to this value.
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(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

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
Constructors 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
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.
dryRun(DeployDifferences) - Method in class org.rhq.core.util.updater.Deployer
Convienence method that is equivalent to deploy(diff, true).

E

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.
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.clientapi.util.StringUtil
Split a string on delimiter boundaries, and place each element into a List.
explodeQuoted(String) - Static method in class org.rhq.core.clientapi.util.StringUtil
Split a string up by whitespace, taking into account quoted subcomponents.
explodeToArray(String, String) - Static method in class org.rhq.core.clientapi.util.StringUtil
Split a string on delimiter boundaries, and place each element into an Array.
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
 
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.
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.clientapi.util.StringUtil
 
formatDuration(long, int, boolean) - Static method in class org.rhq.core.clientapi.util.StringUtil
 

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.
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(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.
getBundleName() - Method in class org.rhq.core.util.updater.DeploymentProperties
 
getBundleVersion() - Method in class org.rhq.core.util.updater.DeploymentProperties
 
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
 
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
 
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)
getFirstStackTrace(Throwable) - Static method in class org.rhq.core.clientapi.util.StringUtil
 
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.
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.
getPreviousDeploymentProperties(int) - Method in class org.rhq.core.util.updater.DeploymentsMetadata
Returns information about the previous deployment given a specific deployment ID.
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
 
getRawFiles() - Method in class org.rhq.core.util.updater.DeploymentData
 
getRawFilesToRealize() - Method in class org.rhq.core.util.updater.DeploymentData
 
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.
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
 
getStackAsString(Throwable) - Static method in class org.rhq.core.util.exception.ThrowableUtil
 
getStackTrace(Throwable) - Static method in class org.rhq.core.clientapi.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
 
getZipsExploded() - Method in class org.rhq.core.util.updater.DeploymentData
 

H

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.clientapi.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.
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.
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.
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.
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.
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
 
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.clientapi.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.clientapi.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
 

L

listToString(List, String) - Static method in class org.rhq.core.clientapi.util.StringUtil
Print out a List in a user-friendly string format.
listToString(List) - Static method in class org.rhq.core.clientapi.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.
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

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
normalizePath(String) - Static method in class org.rhq.core.clientapi.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

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.clientapi.util - package org.rhq.core.clientapi.util
 
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.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

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).
pluralize(String) - Static method in class org.rhq.core.clientapi.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 a process using 100% Java API.
ProcessExecutor() - Constructor for class org.rhq.core.util.exec.ProcessExecutor
 
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.
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.updater.FileHashcodeMap
 

R

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.
redirectStreams(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.
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(String, String) - Static method in class org.rhq.core.clientapi.util.StringUtil
 
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(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
 
removePrefix(String, String) - Static method in class org.rhq.core.clientapi.util.StringUtil
Remove a prefix from a string.
removeSection(String) - Method in class org.rhq.core.util.IniEditor
Removes a section if it exists.
repeatChars(char, int) - Static method in class org.rhq.core.clientapi.util.StringUtil
 
replace(String, String, String) - Static method in class org.rhq.core.clientapi.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
 
resetToZero() - Method in class org.rhq.core.util.progresswatch.ProgressWatcher
Reset the ProgressWatcher to zero.
run() - Method in class org.rhq.core.util.exec.StreamRedirector
 

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
 
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.
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.
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
 
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.
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.clientapi.util
 
StringUtil() - Constructor for class org.rhq.core.clientapi.util.StringUtil
 
stripDriveLetter(StringBuilder) - Static method in class org.rhq.core.util.file.FileUtil
Strips the drive letter from the given Windows path.

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.
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
Returns the ExceptionPackage.toString() of the actual exception.
toString() - Method in class org.rhq.core.util.exec.ProcessExecutorResults
 
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.clientapi.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.
useForwardSlash(String) - Static method in class org.rhq.core.util.file.FileUtil
Ensure that the path uses only forward slash.
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.
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.
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

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 L M N O P R S T U V W Z

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