Skip navigation links
A C D E F G H I L M N O P R S T V W 

A

append(CharSequence) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
append(CharSequence, int, int) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
append(char) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 

C

CapturedPrintStream - Class in org.terracotta.utilities.io
Extends PrintStream to capture the output to an in-memory or file-backed buffer.
CapturedPrintStream.FileCapturedPrintStream - Class in org.terracotta.utilities.io
A PrintStream to capture to a file-backed buffer.
CapturedPrintStream.MemoryCapturedPrintStream - Class in org.terracotta.utilities.io
A PrintStream to capture to a memory-based buffer.
CHARSET - Static variable in class org.terracotta.utilities.exec.Shell.Encoding
The Charset to use when interacting with the shell.
checkError() - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
close() - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
close() - Method in class org.terracotta.utilities.io.NullOutputStream
 
close() - Method in class org.terracotta.utilities.logging.LoggingOutputStream
 
configuredMaxDirectMemory() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the amount of direct, off-heap memory specified using the MaxDirectMemorySize JVM option.
configuredMaxDirectMemoryInfo() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the MemoryInfo.MaxDirectMemoryInfo instance describing the max direct memory value specified by JVM option.
copy(Path, Path, CopyOption...) - Static method in class org.terracotta.utilities.io.Files
Copies a file or directory.
copy(InputStream, Path, CopyOption...) - Static method in class org.terracotta.utilities.io.Files
Copies the bytes from an InputStream to the specified target file.
createFile(Path, FileAttribute<?>...) - Static method in class org.terracotta.utilities.io.Files
Creates a file at the specified path retrying the operation if an AccessDeniedException is raised.
createFile(Path, Duration, FileAttribute<?>...) - Static method in class org.terracotta.utilities.io.Files
Creates a file at the specified path retrying the operation if an AccessDeniedException is raised.
CustomLoaderBasedObjectInputStream - Class in org.terracotta.utilities.classloading
 
CustomLoaderBasedObjectInputStream(InputStream, ClassLoader) - Constructor for class org.terracotta.utilities.classloading.CustomLoaderBasedObjectInputStream
 

D

DEFAULT_BUFFER_SIZE - Static variable in class org.terracotta.utilities.logging.LoggingOutputStream
 
delete(Path) - Static method in class org.terracotta.utilities.io.Files
Deletes the file system path specified by first renaming the file then performing the delete.
delete(Path, Duration) - Static method in class org.terracotta.utilities.io.Files
Deletes the file system path specified by first renaming the file then performing the delete.
delete(Path, Duration, Runnable) - Static method in class org.terracotta.utilities.io.Files
Deletes the file system path specified by first renaming the file then performing the delete.
deleteIfExists(Path) - Static method in class org.terracotta.utilities.io.Files
Deletes the file system path specified if it exists.
deleteTree(Path) - Static method in class org.terracotta.utilities.io.Files
Deletes the file system tree beginning at the specified path.
deleteTree(Path, Duration) - Static method in class org.terracotta.utilities.io.Files
Deletes the file system tree beginning at the specified path.
deleteTree(Path, Duration, Runnable) - Static method in class org.terracotta.utilities.io.Files
Deletes the file system tree beginning at the specified path.
directBufferCount() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the number of directly allocated off-heap buffers.
directMemoryInUse() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the amount of off-heap memory in use for direct ByteBuffers.
dump(byte[]) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
Writes the contents of byte[] to the PrintStream provided.
dumpBuffer(IntBuffer, PrintStream) - Static method in class org.terracotta.utilities.io.buffer.DumpUtility
A convenience method that allocates a DumpUtility instance, dumps a buffer, and discards the DumpUtility instance.
dumpBuffer(LongBuffer, PrintStream) - Static method in class org.terracotta.utilities.io.buffer.DumpUtility
A convenience method that allocates a DumpUtility instance, dumps a buffer, and discards the DumpUtility instance.
dumpBuffer(ByteBuffer, PrintStream) - Static method in class org.terracotta.utilities.io.buffer.DumpUtility
A convenience method that allocates a DumpUtility instance, dumps a buffer, and discards the DumpUtility instance.
dumpBuffer(IntBuffer) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
Attempts to dump a IntBuffer.
dumpBuffer(LongBuffer) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
Attempts to dump a LongBuffer.
dumpBuffer(ByteBuffer) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
Writes the contents of ByteBuffer to the PrintStream provided.
DumpUtility - Class in org.terracotta.utilities.io.buffer
Provides methods to dump Buffer instances.
DumpUtility(PrintStream) - Constructor for class org.terracotta.utilities.io.buffer.DumpUtility
Constructs a new DumpUtility using the PrintStream provided.
DumpUtility(PrintStream, CharSequence) - Constructor for class org.terracotta.utilities.io.buffer.DumpUtility
Constructs a new DumpUtility using the PrintStream and line prefix provided.
DumpUtility.FieldInaccessibleException - Exception in org.terracotta.utilities.io.buffer
Thrown if reflective access to a required internal field fails.

E

effectiveMaxDirectMemory() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the maximum amount of direct, off-heap memory that can be used in this JVM.
effectiveMaxDirectMemoryInfo() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the MemoryInfo.MaxDirectMemoryInfo instance describing maximum amount of direct, off-heap memory that can be used in this JVM.
Encoding() - Constructor for class org.terracotta.utilities.exec.Shell.Encoding
 
execute(Charset, String...) - Static method in class org.terracotta.utilities.exec.Shell
Executes a command in the host and returns the command output, both stdout and stderr, as a list of strings.
exitCode() - Method in class org.terracotta.utilities.exec.Shell.Result
Gets the process exit code.

F

FieldInaccessibleException(String, Throwable) - Constructor for exception org.terracotta.utilities.io.buffer.DumpUtility.FieldInaccessibleException
 
Files - Class in org.terracotta.utilities.io
Provides sane file management operations.
Files.ExtendedOption - Enum in org.terracotta.utilities.io
CopyOption values accepted by Files.
Files.FileStoreConstraintException - Exception in org.terracotta.utilities.io
Thrown to indicate that a file copy was attempted outside of the origin FileStore.
FileStoreConstraintException(String, String, String) - Constructor for exception org.terracotta.utilities.io.Files.FileStoreConstraintException
 
FilteredObjectInputStream - Class in org.terracotta.utilities.classloading
 
FilteredObjectInputStream(InputStream, Predicate<Class<?>>, ClassLoader) - Constructor for class org.terracotta.utilities.classloading.FilteredObjectInputStream
 
flush() - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
flush() - Method in class org.terracotta.utilities.logging.LoggingOutputStream
 
format(String, Object...) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
format(Locale, String, Object...) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
formatSize(long) - Static method in class org.terracotta.utilities.memory.MemoryInfo
Formats a long memory byte-size value into a human-readable memory size.

G

getInstance(Path, boolean) - Static method in class org.terracotta.utilities.io.CapturedPrintStream
Instantiates a new CapturedPrintStream using file as a buffer and a caller-specified auto-flush setting.
getInstance(Path) - Static method in class org.terracotta.utilities.io.CapturedPrintStream
Instantiates a new CapturedPrintStream using file as a buffer and auto-flush enabled.
getInstance() - Static method in class org.terracotta.utilities.io.CapturedPrintStream
Instantiates a new CapturedPrintStream using an in-memory buffer.
getInstance(Logger, Level) - Static method in class org.terracotta.utilities.logging.LoggerBridge
Creates or gets the LoggerBridge instance for the delegate Logger and Level.
getInstance() - Static method in class org.terracotta.utilities.memory.MemoryInfo
Gets the singleton MemoryInfo instance.
getReader() - Method in class org.terracotta.utilities.io.CapturedPrintStream.FileCapturedPrintStream
Gets a BufferedReader over the bytes written to this PrintStream.
getReader() - Method in class org.terracotta.utilities.io.CapturedPrintStream
Gets a BufferedReader over the bytes written to this PrintStream.
getReader() - Method in class org.terracotta.utilities.io.CapturedPrintStream.MemoryCapturedPrintStream
 

H

heapInUse() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the total heap memory currently in use across all heap memory pools.

I

isLevelEnabled() - Method in class org.terracotta.utilities.logging.LoggerBridge
Checks if the delegate logger is active for the configured level.
iterator() - Method in class org.terracotta.utilities.exec.Shell.Result
Gets an iterator over the captured stdout/stderr lines.

L

lines() - Method in class org.terracotta.utilities.exec.Shell.Result
Gets the list holding the captured stdout/stderr lines.
log(String, Object...) - Method in class org.terracotta.utilities.logging.LoggerBridge
Submits a log event to the delegate logger at the level of this LoggerBridge.
log(String, Throwable) - Method in class org.terracotta.utilities.logging.LoggerBridge
Submits a log event to the delegate logger at the level of this LoggerBridge.
LoggerBridge - Class in org.terracotta.utilities.logging
Bridge to permit variable-level use of SLF4j.
LoggingOutputStream - Class in org.terracotta.utilities.logging
Implements an OutputStream that forwards lines written to it to a Logger at a specified level.
LoggingOutputStream(Logger, Level) - Constructor for class org.terracotta.utilities.logging.LoggingOutputStream
Creates a new LoggingOutputStream writing to the provided logger and the specified level.

M

mappedBufferCount() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the number of off-heap buffers used for mapped file buffers.
mappedMemoryInUse() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the amount of off-heap memory in use for mapped ByteBuffers.
maxDirectMemory() - Method in class org.terracotta.utilities.memory.MemoryInfo.MaxDirectMemoryInfo
Gets the max direct memory value, in bytes.
maxDirectMemoryAccessFault() - Method in class org.terracotta.utilities.memory.MemoryInfo.MaxDirectMemoryInfo
Gets the reason the max direct memory value is not available.
MemoryInfo - Class in org.terracotta.utilities.memory
Singleton class providing access to JVM memory information.
MemoryInfo.MaxDirectMemoryInfo - Class in org.terracotta.utilities.memory
Details of a max direct memory specification.
memoryPoolMXBeans() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the list of MemoryPoolMXBean instances.
MINIMUM_TIME_LIMIT - Static variable in class org.terracotta.utilities.io.Files
Deprecated.
there is now no minimum time limit for operations

N

NullOutputStream - Class in org.terracotta.utilities.io
An OutputStream which discards all data written to it.
NullOutputStream() - Constructor for class org.terracotta.utilities.io.NullOutputStream
 

O

offHeapBufferCount() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the number of all off-heap memory buffers in use.
offHeapMemoryInUse() - Method in class org.terracotta.utilities.memory.MemoryInfo
Gets the amount of off-heap memory in use.
org.terracotta.utilities.classloading - package org.terracotta.utilities.classloading
 
org.terracotta.utilities.exec - package org.terracotta.utilities.exec
 
org.terracotta.utilities.io - package org.terracotta.utilities.io
 
org.terracotta.utilities.io.buffer - package org.terracotta.utilities.io.buffer
 
org.terracotta.utilities.logging - package org.terracotta.utilities.logging
 
org.terracotta.utilities.memory - package org.terracotta.utilities.memory
 

P

print(boolean) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
print(char) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
print(int) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
print(long) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
print(float) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
print(double) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
print(char[]) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
print(String) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
print(Object) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
printf(String, Object...) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
printf(Locale, String, Object...) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println() - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println(boolean) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println(char) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println(int) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println(long) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println(float) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println(double) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println(char[]) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println(String) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
println(Object) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 

R

relocate(Path, Path, CopyOption...) - Static method in class org.terracotta.utilities.io.Files
Moves (relocates) the source to the target location.
rename(Path, Path) - Static method in class org.terracotta.utilities.io.Files
Rename the file or directory with retry for FileSystemException instances indicating interference from temporary access by other processes.
rename(Path, Path, Duration) - Static method in class org.terracotta.utilities.io.Files
Rename the file or directory with retry for FileSystemException instances indicating interference from temporary access by other processes.
rename(Path, Path, Duration, Runnable) - Static method in class org.terracotta.utilities.io.Files
Rename the file or directory with retry for FileSystemException instances indicating interference from temporary access by other processes.
reset() - Method in class org.terracotta.utilities.io.CapturedPrintStream.FileCapturedPrintStream
Discards the captured output.
reset() - Method in class org.terracotta.utilities.io.CapturedPrintStream.MemoryCapturedPrintStream
 
reset() - Method in class org.terracotta.utilities.io.CapturedPrintStream
Discards the captured output.
resolveClass(ObjectStreamClass) - Method in class org.terracotta.utilities.classloading.CustomLoaderBasedObjectInputStream
 
resolveClass(ObjectStreamClass) - Method in class org.terracotta.utilities.classloading.FilteredObjectInputStream
 

S

Shell - Class in org.terracotta.utilities.exec
Utility functions for use with execution of shell commands.
Shell.Encoding - Class in org.terracotta.utilities.exec
Singleton identifying the Charset used for encoding/decoding interactions with the "shell" command interpreter environment.
Shell.Result - Class in org.terracotta.utilities.exec
The Shell.execute(Charset, String...) command execution result.
sync() - Method in class org.terracotta.utilities.io.CapturedPrintStream.FileCapturedPrintStream
Ensures all buffered content is flushed to disk.

T

toByteArray() - Method in class org.terracotta.utilities.io.CapturedPrintStream.FileCapturedPrintStream
Gets a copy of the content of this stream as a byte array.
toByteArray() - Method in class org.terracotta.utilities.io.CapturedPrintStream.MemoryCapturedPrintStream
 
toByteArray() - Method in class org.terracotta.utilities.io.CapturedPrintStream
Gets a copy of the content of this stream as a byte array.

V

valueOf(String) - Static method in enum org.terracotta.utilities.io.Files.ExtendedOption
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.terracotta.utilities.io.Files.ExtendedOption
Returns an array containing the constants of this enum type, in the order they are declared.
valueSource() - Method in class org.terracotta.utilities.memory.MemoryInfo.MaxDirectMemoryInfo
Gets the name of the source of the max direct memory value.

W

write(int) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
write(byte[], int, int) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
write(byte[]) - Method in class org.terracotta.utilities.io.CapturedPrintStream
 
write(int) - Method in class org.terracotta.utilities.io.NullOutputStream
 
write(byte[], int, int) - Method in class org.terracotta.utilities.io.NullOutputStream
 
write(int) - Method in class org.terracotta.utilities.logging.LoggingOutputStream
 
A C D E F G H I L M N O P R S T V W 
Skip navigation links