- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- getAllMessages(Throwable) - Static method in class org.rhq.core.util.exception.ThrowableUtil
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- getZipFilesMap() - Method in class org.rhq.core.util.updater.DeploymentData
-
- getZipsExploded() - Method in class org.rhq.core.util.updater.DeploymentData
-
- 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
-
- 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.
- 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
-
- 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
-
- 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
-
- 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
-