A B C D E F G H I L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ACCEPTED_OPTIONS_COPY - Static variable in class org.terracotta.utilities.io.Files
-
CopyOptionvalues accepted byFiles.copy(Path, Path, CopyOption...). - accessor - Variable in enum org.terracotta.utilities.test.io.WindowsSpecialFolder
- addGroupSpace(int, StringBuilder, StringBuilder) - Static method in class org.terracotta.utilities.io.buffer.DumpUtility
- addressBytes - Variable in enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
- Aix() - Constructor for class org.terracotta.utilities.test.net.EphemeralPorts.Aix
- allLines(String...) - Static method in class org.terracotta.utilities.test.net.EphemeralPorts
-
Execute a command and return an
Iterablewith all response lines. - AllocatedPort(PortManager.PortRef, ReferenceQueue<? super PortManager.PortRef>) - Constructor for class org.terracotta.utilities.test.net.PortManager.AllocatedPort
- allocatedPorts - Variable in class org.terracotta.utilities.test.net.PortManager
-
References to outstanding
PortManager.PortRefinstances. - anyLocal() - Method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
-
Gets the byte-array form of "any local address" for this
IPVersion. - appendByte(byte) - Method in class org.terracotta.utilities.logging.LoggingOutputStream
- ASCENDING - org.terracotta.utilities.test.net.PortManager.BitSearch
-
Search in an ascending order of bit index.
- ASCII_ENCODER - Static variable in class org.terracotta.utilities.io.buffer.DumpUtility
-
CharsetEncoderused to test bytes for printability. - asProperties(String...) - Static method in class org.terracotta.utilities.test.net.EphemeralPorts
-
Execute a command and return a
Propertiesinstance composed from the output. - assignablePortCount - Variable in class org.terracotta.utilities.test.net.PortManager
-
The number of non-reserved ports.
- AUTHENTICATED_USERS - Static variable in class org.terracotta.utilities.test.io.CommonFiles.WindowsWellKnownIdentities
-
The principal name identifying the group corresponding to the Windows Security Identifier (SID)
S-1-5-11-- Authenticated Users.
B
- barrier - Variable in class org.terracotta.utilities.io.FilesSupport.PathHolder
- BitSearch() - Constructor for enum org.terracotta.utilities.test.net.PortManager.BitSearch
- BOUND - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting application
listen,connect,accept, orclosecall followingbind(lsof). - buffer - Variable in class org.terracotta.utilities.logging.LoggingOutputStream
- bufferSize - Variable in class org.terracotta.utilities.logging.LoggingOutputStream
- build() - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Constructs a
NetStat.BusyPortinstance from the content of thisBuilder. - builder() - Static method in class org.terracotta.utilities.test.net.NetStat.BusyPort
- builder(NetStat.BusyPort) - Static method in class org.terracotta.utilities.test.net.NetStat.BusyPort
- Builder() - Constructor for class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
- Builder(NetStat.BusyPort) - Constructor for class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
- BusyPort(long, InetSocketAddress, InetSocketAddress, NetStat.BusyPort.TcpState, String, String) - Constructor for class org.terracotta.utilities.test.net.NetStat.BusyPort
- byteCount - Variable in class org.terracotta.utilities.logging.LoggingOutputStream
C
- calculateReasons() - Static method in class org.terracotta.utilities.io.FilesSupport
-
Dynamically determine reasons for file operation retry.
- calculateReasons(Path) - Static method in class org.terracotta.utilities.io.FilesSupport
-
Testing seam.
- CapturedPrintStream - Class in org.terracotta.utilities.io
-
Extends
PrintStreamto capture the output to an in-memory buffer. - CapturedPrintStream() - Constructor for class org.terracotta.utilities.io.CapturedPrintStream
- CapturedPrintStream.LocalBufferedOutputStream - Class in org.terracotta.utilities.io
- CHARSET - Static variable in class org.terracotta.utilities.exec.Shell.Encoding
-
The
Charsetto use when interacting with the shell. - checkClosed() - Method in class org.terracotta.utilities.io.NullOutputStream
- checkCopyOptions(Set<? extends CopyOption>, Set<? extends CopyOption>) - Static method in class org.terracotta.utilities.io.Files
-
Verifies that only accepted
CopyOptions have been specified. - checkFileStore(Path, LinkOption...) - Method in class org.terracotta.utilities.io.Files.CopyingFileVisitor
-
Throws a
Files.FileStoreConstraintExceptionif the path provided, with links resolved according tolinkOptions, is not in the sameFileStoreas the specified copy source. - checkOpen() - Method in class org.terracotta.utilities.logging.LoggingOutputStream
- cleanReleasedPorts() - Method in class org.terracotta.utilities.test.net.PortManager
-
Releases
PortRefinstances no longer strongly held. - close() - Method in class org.terracotta.utilities.io.FilesSupport.PathHolder
-
Closes and unlocks the file.
- close() - Method in class org.terracotta.utilities.io.NullOutputStream
- close() - Method in class org.terracotta.utilities.logging.LoggingOutputStream
- close() - Method in class org.terracotta.utilities.test.net.PortManager.PortRef
-
Closes this
PortRef. - close(Set<PortManager.PortRef.CloseOption>) - Method in class org.terracotta.utilities.test.net.PortManager.PortRef
-
Closes this
PortRefusing the options provided. - CLOSE - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting application
closefollowing a socket/connection error (lsof/Linux). - CLOSE_WAIT - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting application-level connection termination (socket close) (RFC-793).
- closeChannelIfUnused() - Method in class org.terracotta.utilities.test.net.SystemLevelLocker
-
Closes
SystemLevelLocker.openChannelif there are no outstanding locks. - closed - Variable in class org.terracotta.utilities.io.NullOutputStream
- closed - Variable in class org.terracotta.utilities.logging.LoggingOutputStream
- closed - Variable in class org.terracotta.utilities.test.net.PortManager.PortRef
- CLOSED - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Not connected (RFC-793).
- CloseOption() - Constructor for enum org.terracotta.utilities.test.net.PortManager.PortRef.CloseOption
- closer - Variable in class org.terracotta.utilities.test.net.PortManager.AllocatedPort
- closers - Variable in class org.terracotta.utilities.test.net.PortManager.PortRef
- closers() - Method in class org.terracotta.utilities.test.net.PortManager.PortRef
-
Gets the "closers"
AtomicReferencefor use during weak-reference release. - CLOSING - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting connection termination request acknowledgement from remote (RFC-793).
- code - Variable in exception org.terracotta.utilities.test.io.WindowsSpecialFolder.SpecialFolderException
- code() - Method in exception org.terracotta.utilities.test.io.WindowsSpecialFolder.SpecialFolderException
- combine(BiConsumer<T, U>, BiConsumer<T, U>) - Static method in class org.terracotta.utilities.test.net.PortManager
-
Combines
BiConsumerinstances to run in reverse sequence. - commandLine - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
- commandLine - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort
- commandLine() - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort
-
Gets the long representation of the command.
- commandLine(String) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Sets the full/long command string for the connection.
- commandLines - Variable in class org.terracotta.utilities.exec.Shell.Result
- COMMON_APPLICATION_DATA - org.terracotta.utilities.test.io.WindowsSpecialFolder
-
Provides the
Pathcorresponding to theCommonApplicationDataspecial folder. - CommonFiles - Class in org.terracotta.utilities.test.io
-
Tool for creating a system-wide, all-user-writable application file.
- CommonFiles() - Constructor for class org.terracotta.utilities.test.io.CommonFiles
- CommonFiles.LoggerBridge - Class in org.terracotta.utilities.test.io
-
Bridge to permit variable-level use of SLF4j.
- CommonFiles.WindowsWellKnownIdentities - Class in org.terracotta.utilities.test.io
-
Windows Well-Known Security Identifiers (SIDs) for use with ACL operations.
- containedBy(Path, Path) - Method in class org.terracotta.utilities.io.Files.CopyingFileVisitor
-
Determines if a path is contained in the tree rooted by another.
- convertStringSidToPrincipalName(String, String) - Static method in class org.terracotta.utilities.test.io.CommonFiles.WindowsWellKnownIdentities
-
Use PowerShell to convert a string SID value to a principal name.
- copy(InputStream, Path, CopyOption...) - Static method in class org.terracotta.utilities.io.Files
-
Copies the bytes from an
InputStreamto the specified target file. - copy(Path, Path, CopyOption...) - Static method in class org.terracotta.utilities.io.Files
-
Copies a file or directory.
- CopyingFileVisitor(Path, Path, Set<CopyOption>, LinkOption[]) - Constructor for class org.terracotta.utilities.io.Files.CopyingFileVisitor
- copyInternal(Path, Path, CopyOption[]) - Static method in class org.terracotta.utilities.io.Files
-
Recursively, internally-called copy method.
- copyOptions - Variable in class org.terracotta.utilities.io.Files.CopyingFileVisitor
- copyOwnerPermissions(Path) - Static method in class org.terracotta.utilities.test.io.CommonFiles
-
Grant all permissions held by the owner to other users.
- createCommonAppFile(Path) - Static method in class org.terracotta.utilities.test.io.CommonFiles
-
Creates a file, using the relative path provided, in the system-appropriate directory for persistent, cross-process, cross-user data.
- createFile(Path, FileAttribute<?>...) - Static method in class org.terracotta.utilities.io.Files
-
Creates a file at the specified path retrying the operation if an
AccessDeniedExceptionis 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
AccessDeniedExceptionis raised. - createWindowsDirectorySymbolicLink(Path, Path, FileAttribute<?>...) - Static method in class org.terracotta.utilities.io.Files
-
Creates a Windows directory link.
- CREATOR_OWNER - Static variable in class org.terracotta.utilities.test.io.CommonFiles.WindowsWellKnownIdentities
-
The principal name identifying the user corresponding to the Windows Security Identifier (SID)
S-1-3-0-- Creator Owner. - CustomLoaderBasedObjectInputStream - Class in org.terracotta.utilities.classloading
- CustomLoaderBasedObjectInputStream(InputStream, ClassLoader) - Constructor for class org.terracotta.utilities.classloading.CustomLoaderBasedObjectInputStream
D
- DEEP_COPY - org.terracotta.utilities.io.Files.ExtendedOption
-
Indicates that, during recursive copy, linked content outside of the source tree should be copied and not linked.
- deepCopy - Variable in class org.terracotta.utilities.io.Files.CopyingFileVisitor
- DEFAULT_BUFFER_SIZE - Static variable in class org.terracotta.utilities.logging.LoggingOutputStream
- DEFAULT_OPERATION_TIME_LIMIT - Static variable in class org.terracotta.utilities.io.Files
- DEFAULT_OPERATION_TIME_LIMIT_MILLIS - Static variable in class org.terracotta.utilities.io.Files
- delegate - Variable in class org.terracotta.utilities.test.io.CommonFiles.LoggerBridge
- 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.
- DELETE_EXECUTOR - Static variable in class org.terracotta.utilities.io.Files
-
Executor service for background deletion tasks.
- DELETE_TCB - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Indicates the control block representing the TCP connection is being deleted (MSFT_NetTCPConnection).
- 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.
- deleteTreeWithBackgroundRetry(Path, boolean, Runnable) - Static method in class org.terracotta.utilities.io.Files
-
Attempts to delete a file/directory retrying in background in the event of a retryable failure.
- deleteTreeWithRetry(Path, boolean, Duration, Runnable) - Static method in class org.terracotta.utilities.io.Files
-
Delete the file or directory tree using a rename/delete scheme with retry for
FileSystemExceptioninstances indicating interference from temporary access by other processes. - deletionPath - Variable in class org.terracotta.utilities.io.Files.RetryingDeleteTask
- dereferencedPorts - Variable in class org.terracotta.utilities.test.net.PortManager
-
A
ReferenceQueueacceptingPortManager.PortRefinstances no longer held by the reserving party. - DESCENDING - org.terracotta.utilities.test.net.PortManager.BitSearch
-
Search in a descending order of bit index.
- diagnosticReleaseCheck(int, Set<PortManager.PortRef.CloseOption>) - Method in class org.terracotta.utilities.test.net.PortManager
-
Checks that the port being released is actually free and emits a detailed log message if not.
- DISABLE_PORT_RELEASE_CHECK - Static variable in class org.terracotta.utilities.test.net.PortManager
-
Reflects the value of the "DISABLE_PORT_RELEASE_CHECK" environment variable.
- DISABLE_PORT_RELEASE_CHECK_ENV_VARIABLE - Static variable in class org.terracotta.utilities.test.net.PortManager
-
Environment variable checked for disabling the port release check performed at the time a port obtained from PortManager is returned to PortManger.
- DISABLE_PORT_RELEASE_CHECK_PROPERTY - Static variable in class org.terracotta.utilities.test.net.PortManager
-
Property checked for disabling the port release check performed at the time a port obtained from
PortManageris returned toPortManager. - disablePortReleaseCheck() - Static method in class org.terracotta.utilities.test.net.PortManager
- DRIVE_SUBSTITUTIONS - Static variable in class org.terracotta.utilities.io.Files
- dump(byte[]) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
-
Writes the contents of
byte[]to thePrintStreamprovided. - dumpBuffer(ByteBuffer) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
-
Writes the contents of
ByteBufferto thePrintStreamprovided. - dumpBuffer(ByteBuffer, PrintStream) - Static method in class org.terracotta.utilities.io.buffer.DumpUtility
-
A convenience method that allocates a
DumpUtilityinstance, dumps a buffer, and discards theDumpUtilityinstance. - dumpBuffer(IntBuffer) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
-
Attempts to dump a
IntBuffer. - dumpBuffer(IntBuffer, PrintStream) - Static method in class org.terracotta.utilities.io.buffer.DumpUtility
-
A convenience method that allocates a
DumpUtilityinstance, dumps a buffer, and discards theDumpUtilityinstance. - dumpBuffer(LongBuffer) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
-
Attempts to dump a
LongBuffer. - dumpBuffer(LongBuffer, PrintStream) - Static method in class org.terracotta.utilities.io.buffer.DumpUtility
-
A convenience method that allocates a
DumpUtilityinstance, dumps a buffer, and discards theDumpUtilityinstance. - dumpBufferInternal(ByteBuffer) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
- dumpedSet - Variable in class org.terracotta.utilities.io.buffer.DumpUtility
-
Tracks objects already dumped.
- DumpUtility - Class in org.terracotta.utilities.io.buffer
-
Provides methods to dump
Bufferinstances. - DumpUtility(PrintStream) - Constructor for class org.terracotta.utilities.io.buffer.DumpUtility
-
Constructs a new
DumpUtilityusing thePrintStreamprovided. - DumpUtility(PrintStream, CharSequence) - Constructor for class org.terracotta.utilities.io.buffer.DumpUtility
-
Constructs a new
DumpUtilityusing thePrintStreamand line prefix provided. - DumpUtility.FieldInaccessibleException - Exception in org.terracotta.utilities.io.buffer
-
Thrown if reflective access to a required internal field fails.
E
- effectiveCopyOptions - Variable in class org.terracotta.utilities.io.Files.CopyingFileVisitor
- effectiveCopyOptions(Set<CopyOption>) - Static method in class org.terracotta.utilities.io.Files
- emitInstanceNotification(String) - Static method in class org.terracotta.utilities.test.net.PortManager
- Encoding() - Constructor for class org.terracotta.utilities.exec.Shell.Encoding
- eol - Variable in class org.terracotta.utilities.logging.LoggingOutputStream
- eolLeader - Variable in class org.terracotta.utilities.logging.LoggingOutputStream
- EphemeralPorts - Class in org.terracotta.utilities.test.net
- EphemeralPorts() - Constructor for class org.terracotta.utilities.test.net.EphemeralPorts
- EphemeralPorts.Aix - Class in org.terracotta.utilities.test.net
- EphemeralPorts.Linux - Class in org.terracotta.utilities.test.net
- EphemeralPorts.Mac - Class in org.terracotta.utilities.test.net
- EphemeralPorts.Range - Class in org.terracotta.utilities.test.net
- EphemeralPorts.RangeGetter - Interface in org.terracotta.utilities.test.net
- EphemeralPorts.SolarisAndHPUX - Class in org.terracotta.utilities.test.net
- EphemeralPorts.Windows - Class in org.terracotta.utilities.test.net
- ESTABLISHED - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
An "open" TCP connection over which data may be transferred (RFC-793).
- 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.
- executor - Variable in class org.terracotta.utilities.io.Files.RetryingDeleteTask
- exitCode - Variable in class org.terracotta.utilities.exec.Shell.Result
- exitCode() - Method in class org.terracotta.utilities.exec.Shell.Result
-
Gets the process exit code.
- exitCode() - Method in exception org.terracotta.utilities.test.net.NetStat.HostExecutionException
- ExtendedOption() - Constructor for enum org.terracotta.utilities.io.Files.ExtendedOption
F
- FieldInaccessibleException(String, Throwable) - Constructor for exception org.terracotta.utilities.io.buffer.DumpUtility.FieldInaccessibleException
- FILE_ATTRIBUTE_DIRECTORY - Static variable in class org.terracotta.utilities.io.Files
-
The
dos:attributesvalue indicating the file object is a directory. - FILE_STORE_CACHE - Static variable in class org.terracotta.utilities.io.Files
- Files - Class in org.terracotta.utilities.io
-
Provides sane file management operations.
- Files() - Constructor for class org.terracotta.utilities.io.Files
- Files.CopyingFileVisitor - Class in org.terracotta.utilities.io
-
A
FileVisitorimplementation that copies a directory tree. - Files.ExtendedOption - Enum in org.terracotta.utilities.io
-
CopyOptionvalues accepted byFiles. - Files.FileStoreConstraintException - Exception in org.terracotta.utilities.io
-
Thrown to indicate that a file copy was attempted outside of the origin
FileStore. - Files.RetryingDeleteTask - Class in org.terracotta.utilities.io
-
Task to perform a background deletion.
- Files.UnknownFileStore - Class in org.terracotta.utilities.io
-
FileStoreimplementation used internally for paths for which aFileStorecannot be obtained. - FilesSupport - Class in org.terracotta.utilities.io
-
Support methods for the
Filesimplementation. - FilesSupport() - Constructor for class org.terracotta.utilities.io.FilesSupport
- FilesSupport.PathHolder - Class in org.terracotta.utilities.io
-
Support class to open or lock a file for file operation impact assessment.
- 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
- FIN_WAIT_1 - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting connection termination request or acknowledgement of sent connection termination request from remote (RFC-793).
- FIN_WAIT_2 - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting connection termination request from remote (RFC-793).
- findRange() - Static method in class org.terracotta.utilities.test.net.EphemeralPorts
- findWindowsSystemRoot() - Static method in class org.terracotta.utilities.test.runtime.Os
-
Gets the Windows "System" folder.
- firstLine(String...) - Static method in class org.terracotta.utilities.test.net.EphemeralPorts
-
Execute a command and return the first response line.
- flush() - Method in class org.terracotta.utilities.logging.LoggingOutputStream
- flushDumpLine(PrintStream, StringBuilder, StringBuilder) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
-
Emit a dump line and prepare the buffers for the next.
- flushInternal() - Method in class org.terracotta.utilities.logging.LoggingOutputStream
- format(BasicFileAttributes) - Static method in class org.terracotta.utilities.io.Files
- fromId(String) - Static method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
-
Determines the
IPVersionfrom the identifier provided. - fromLsofString(String) - Static method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Determine the
TcpCodefrom the state string from thelsofcommand. - fromMicrosoftNumber(int) - Static method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Determine the
TcpStatefrom the state number corresponding to a MicrosoftSystem.Net.NetworkInformation.TcpStateenum value. - fromMicrosoftString(String) - Static method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Determine the
TcpStatefrom the state string from the MicrosoftGet-NetTCPConnectioncmdlet. - fromNettopString(String) - Static method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Determine the
TcpCodefrom the state string from thenettopcommand.
G
- get() - Method in enum org.terracotta.utilities.test.io.WindowsSpecialFolder
-
Gets the
Pathassigned to the identified special folder. - get() - Method in class org.terracotta.utilities.test.io.WindowsSpecialFolder.LazyProperty
- get() - Method in interface org.terracotta.utilities.test.io.WindowsSpecialFolder.LazyProperty.ThrowingSupplier
- getAttribute(String) - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
- getFieldValue(Class<V>, T, String) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
-
Gets the value of the designated field from the object instance provided.
- getFieldValue(Class<V>, T, String, boolean) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
-
Gets the value of the designated field from the object instance provided.
- getFileStore(Path) - Static method in class org.terracotta.utilities.io.Files
-
Gets the
FileStorefor the path provided. - getFileStoreAttributeView(Class<V>) - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
- getHandle(Level) - Static method in class org.terracotta.utilities.logging.LoggingOutputStream
- getInetSocketAddress(String, String) - Method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
-
Gets an
InetSocketAddressinstance composed of the IP address and port provided. - getInstance() - Static method in class org.terracotta.utilities.io.CapturedPrintStream
-
Instantiates a new
CapturedPrintStream. - getInstance() - Static method in class org.terracotta.utilities.test.net.PortManager
-
Gets the singleton instance of
PortManagerto use in a JVM. - getInstance(Logger, Level) - Static method in class org.terracotta.utilities.logging.LoggerBridge
-
Creates or gets the
LoggerBridgeinstance for the delegateLoggerandLevel. - getInstance(Logger, Level) - Static method in class org.terracotta.utilities.test.io.CommonFiles.LoggerBridge
-
Creates or gets the
LoggerBridgeinstance for the delegateLoggerandLevel. - getIsLevelEnabledMethodHandle(Level) - Static method in class org.terracotta.utilities.logging.LoggerBridge
- getJavaBasedSystemEncoding() - Static method in class org.terracotta.utilities.exec.Shell.Encoding
-
Gets the
Charsetused by the JDK to interpret host command output. - getLegacySettings() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Windows
- getLocalEndpoint() - Method in class org.terracotta.utilities.test.net.NetStat.InetEndpointPair
- getLogMethodHandle(Level) - Static method in class org.terracotta.utilities.logging.LoggerBridge
- getLogThrowableMethodHandle(Level) - Static method in class org.terracotta.utilities.logging.LoggerBridge
- getLower() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Range
-
The first port assigned to the ephemeral/dynamic port range.
- getNetshRange() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Windows
- getObjectId(Object) - Static method in class org.terracotta.utilities.io.buffer.DumpUtility
-
Gets an object identifier similar to the one produced by
Object.toString. - getOsArch() - Static method in class org.terracotta.utilities.test.runtime.Os
- getOsName() - Static method in class org.terracotta.utilities.test.runtime.Os
- getPidInternal() - Static method in class org.terracotta.utilities.test.net.PortManager.Pid
- getPlatform() - Static method in enum org.terracotta.utilities.test.net.NetStat.Platform
-
Gets the
Platformconstant for the current operating system. - getPortRef(int) - Method in class org.terracotta.utilities.test.net.PortManager
-
Gets the active
PortManager.PortRefinstance for the designated port. - getRange() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Aix
- getRange() - Static method in class org.terracotta.utilities.test.net.EphemeralPorts
- getRange() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Linux
- getRange() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Mac
- getRange() - Method in interface org.terracotta.utilities.test.net.EphemeralPorts.RangeGetter
- getRange() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.SolarisAndHPUX
- getRange() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Windows
- getRange() - Static method in class org.terracotta.utilities.test.net.ReservedPorts
-
Gets the list of port ranges considered reserved by the platform.
- getRanges() - Method in class org.terracotta.utilities.test.net.ReservedPorts.Linux
- getRanges() - Method in class org.terracotta.utilities.test.net.ReservedPorts.Windows
- getReader() - Method in class org.terracotta.utilities.io.CapturedPrintStream
-
Gets a
BufferedReaderover the bytes written to thisPrintStream. - getRemoteEndpoint() - Method in class org.terracotta.utilities.test.net.NetStat.InetEndpointPair
- getRetryReasons() - Static method in class org.terracotta.utilities.io.FilesSupport
-
Identifies the
FileSystemException.getReason()messages for which file operations that warrant a retry. - getShellEncoding() - Static method in class org.terracotta.utilities.exec.Shell.Encoding
-
Attempt to determine the "shell" character encoding -- the encoding used by the command interpreter to generate output lines.
- getSpecialFolder(String, boolean) - Static method in enum org.terracotta.utilities.test.io.WindowsSpecialFolder
-
Gets the
Pathto the identified Windows Special Folder. - getSubsts() - Static method in class org.terracotta.utilities.io.FilesSupport
-
If a Windows platform, gets the current SUBST assignments, if any.
- getTotalSpace() - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
- getUnallocatedSpace() - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
- getUpper() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Range
-
The last port assigned to the ephemeral/dynamic port range.
- getUsableSpace() - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
H
- handle - Variable in class org.terracotta.utilities.logging.LoggingOutputStream
- haveLeader - Variable in class org.terracotta.utilities.logging.LoggingOutputStream
- holdDirectory(Path) - Method in class org.terracotta.utilities.io.FilesSupport.PathHolder
- holdFile(Path) - Method in class org.terracotta.utilities.io.FilesSupport.PathHolder
-
Holds open a file for read.
- HostExecutionException(String, Throwable) - Constructor for exception org.terracotta.utilities.test.net.NetStat.HostExecutionException
- HostExecutionException(String, Shell.Result) - Constructor for exception org.terracotta.utilities.test.net.NetStat.HostExecutionException
- HostExecutionException(String, Shell.Result, Throwable) - Constructor for exception org.terracotta.utilities.test.net.NetStat.HostExecutionException
I
- IANA_DEFAULT_RANGE - Static variable in class org.terracotta.utilities.test.net.EphemeralPorts
- IDLE - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting application
bind,connect, orcloseon socket (lsof). - InetEndpointPair(InetSocketAddress, InetSocketAddress) - Constructor for class org.terracotta.utilities.test.net.NetStat.InetEndpointPair
- info() - Static method in class org.terracotta.utilities.test.net.NetStat
-
Gets the list of busy ports on the current host.
- info(int) - Static method in class org.terracotta.utilities.test.net.NetStat
-
Gets the list of busy ports associated with a single local port.
- INSTANCE - Static variable in class org.terracotta.utilities.test.net.PortManager
- INSTANCES - Static variable in class org.terracotta.utilities.logging.LoggerBridge
- INSTANCES - Static variable in class org.terracotta.utilities.test.io.CommonFiles.LoggerBridge
- IPV4 - org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
- IPV6 - org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
- IPVersion(Class<? extends InetAddress>, int, String...) - Constructor for enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
- IS_LEVEL_ENABLED - Static variable in class org.terracotta.utilities.logging.LoggerBridge
- IS_WINDOWS - Static variable in class org.terracotta.utilities.exec.Shell
- IS_WINDOWS - Static variable in class org.terracotta.utilities.io.Files
- IS_WINDOWS - Static variable in class org.terracotta.utilities.io.FilesSupport
- IS_WINDOWS - Static variable in class org.terracotta.utilities.test.io.CommonFiles
- isAix() - Static method in class org.terracotta.utilities.test.runtime.Os
- isArchx86() - Static method in class org.terracotta.utilities.test.runtime.Os
- isClassPermitted - Variable in class org.terracotta.utilities.classloading.FilteredObjectInputStream
- isClosed() - Method in class org.terracotta.utilities.test.net.PortManager.PortRef
-
Returns whether or not this
PortRefis closed. - isHpux() - Static method in class org.terracotta.utilities.test.runtime.Os
- isInRange(int) - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Range
- isLevelEnabled - Variable in class org.terracotta.utilities.logging.LoggerBridge
- isLevelEnabled - Variable in class org.terracotta.utilities.test.io.CommonFiles.LoggerBridge
- isLevelEnabled() - Method in class org.terracotta.utilities.logging.LoggerBridge
-
Checks if the delegate logger is active for the configured level.
- isLevelEnabled() - Method in class org.terracotta.utilities.test.io.CommonFiles.LoggerBridge
-
Checks if the delegate logger is active for the configured level.
- isLinux() - Static method in class org.terracotta.utilities.test.runtime.Os
- isMac() - Static method in class org.terracotta.utilities.test.runtime.Os
- isReadOnly() - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
- isReservablePort(int) - Method in class org.terracotta.utilities.test.net.PortManager
-
Indicates if the designated port is in the range of ports that may be allocated by this class.
- isSolaris() - Static method in class org.terracotta.utilities.test.runtime.Os
- isUnix() - Static method in class org.terracotta.utilities.test.runtime.Os
- isWindows() - Static method in class org.terracotta.utilities.test.runtime.Os
- iterator() - Method in class org.terracotta.utilities.exec.Shell.Result
-
Gets an iterator over the captured stdout/stderr lines.
L
- LAST_ACK - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting acknowledgement of connection termination request sent to remote (RFC-793).
- lazily(WindowsSpecialFolder.LazyProperty.ThrowingSupplier<T>) - Static method in class org.terracotta.utilities.test.io.WindowsSpecialFolder.LazyProperty
- LazyProperty(WindowsSpecialFolder.LazyProperty.ThrowingSupplier<T>) - Constructor for class org.terracotta.utilities.test.io.WindowsSpecialFolder.LazyProperty
- level - Variable in class org.terracotta.utilities.test.io.CommonFiles.LoggerBridge
- linePrefix - Variable in class org.terracotta.utilities.io.buffer.DumpUtility
-
The prefix to prepend to each emitted line.
- lines() - Method in class org.terracotta.utilities.exec.Shell.Result
-
Gets the list holding the captured stdout/stderr lines.
- linkOptions - Variable in class org.terracotta.utilities.io.Files.CopyingFileVisitor
- Linux() - Constructor for class org.terracotta.utilities.test.net.EphemeralPorts.Linux
- Linux() - Constructor for class org.terracotta.utilities.test.net.ReservedPorts.Linux
- LINUX - org.terracotta.utilities.test.net.NetStat.Platform
-
Handles processing for Linux variants.
- LISTEN - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting a connection request (RFC-793).
- loader - Variable in class org.terracotta.utilities.classloading.CustomLoaderBasedObjectInputStream
- LocalBufferedOutputStream(int) - Constructor for class org.terracotta.utilities.io.CapturedPrintStream.LocalBufferedOutputStream
- localEndpoint - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
- localEndpoint - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort
- localEndpoint - Variable in class org.terracotta.utilities.test.net.NetStat.InetEndpointPair
- localEndpoint() - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort
-
Gets the local endpoint socket address.
- localEndpoint(InetSocketAddress) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Sets the local endpoint for the connection.
- localEndpoint(NetStat.BusyPort.IPVersion, String, String) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Sets the local endpoint for the connection.
- LOCALHOST - Static variable in class org.terracotta.utilities.test.net.PortManager
- lock(PortManager.PortRef) - Method in class org.terracotta.utilities.test.net.SystemLevelLocker
-
Obtains a system-level lock against the lock file for the identified port.
- lockFile(Path) - Method in class org.terracotta.utilities.io.FilesSupport.PathHolder
-
Holds a lock on a file.
- lockFilePath - Variable in class org.terracotta.utilities.test.net.SystemLevelLocker
- log - Variable in class org.terracotta.utilities.logging.LoggerBridge
- log - Variable in class org.terracotta.utilities.test.io.CommonFiles.LoggerBridge
- log(String) - Method in class org.terracotta.utilities.logging.LoggingOutputStream
- 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, Object...) - Method in class org.terracotta.utilities.test.io.CommonFiles.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. - LOG - Static variable in class org.terracotta.utilities.logging.LoggerBridge
- LOG_METHODS - Static variable in class org.terracotta.utilities.logging.LoggingOutputStream
- LOG_THROWABLE - Static variable in class org.terracotta.utilities.logging.LoggerBridge
- logAcl(String, Level, Path) - Static method in class org.terracotta.utilities.test.io.CommonFiles
-
Logs the ACL for a
Pathat the logging level specified. - logFailedAttempt(FileSystemException) - Method in class org.terracotta.utilities.io.Files.RetryingDeleteTask
- LOGGER - Static variable in class org.terracotta.utilities.exec.Shell
- LOGGER - Static variable in class org.terracotta.utilities.io.Files
- LOGGER - Static variable in class org.terracotta.utilities.io.FilesSupport
- LOGGER - Static variable in class org.terracotta.utilities.io.FilesSupport.PathHolder
- LOGGER - Static variable in class org.terracotta.utilities.logging.LoggerBridge
- LOGGER - Static variable in class org.terracotta.utilities.logging.LoggingOutputStream
- LOGGER - Static variable in class org.terracotta.utilities.test.io.CommonFiles
- LOGGER - Static variable in enum org.terracotta.utilities.test.io.WindowsSpecialFolder
- LOGGER - Static variable in class org.terracotta.utilities.test.net.EphemeralPorts
- LOGGER - Static variable in class org.terracotta.utilities.test.net.NetStat
- LOGGER - Static variable in class org.terracotta.utilities.test.net.PortManager
- LOGGER - Static variable in class org.terracotta.utilities.test.net.ReservedPorts
- LOGGER - Static variable in class org.terracotta.utilities.test.net.SystemLevelLocker
- LoggerBridge - Class in org.terracotta.utilities.logging
-
Bridge to permit variable-level use of SLF4j.
- LoggerBridge(Logger, Level) - Constructor for class org.terracotta.utilities.logging.LoggerBridge
-
Creates a
LoggerBridgeinstance sending logging calls to the designatedLoggerat the specified level. - LoggerBridge(Logger, Level) - Constructor for class org.terracotta.utilities.test.io.CommonFiles.LoggerBridge
-
Creates a
LoggerBridgeinstance sending logging calls to the designatedLoggerat the specified level. - LOGGING_SUPPRESSION_FACTOR - Static variable in class org.terracotta.utilities.io.Files.RetryingDeleteTask
- LoggingOutputStream - Class in org.terracotta.utilities.logging
-
Implements an
OutputStreamthat forwards lines written to it to aLoggerat a specified level. - LoggingOutputStream(Logger, Level) - Constructor for class org.terracotta.utilities.logging.LoggingOutputStream
-
Creates a new
LoggingOutputStreamwriting to the provided logger and the specified level. - logPermissions(String, Level, Path) - Static method in class org.terracotta.utilities.test.io.CommonFiles
-
Logs the POSIX permissions for a
Pathat the logging level specified. - logThrowable - Variable in class org.terracotta.utilities.logging.LoggerBridge
- loopback() - Method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
-
Gets the byte-array form of the "loopback address" for this
IPVersion. - lower - Variable in class org.terracotta.utilities.test.net.EphemeralPorts.Range
- LSOF_COMMAND - Static variable in class org.terracotta.utilities.test.net.NetStat
- LSOF_WARNING_EMITTED - Static variable in class org.terracotta.utilities.test.net.NetStat
- lsofStateStrings - Variable in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
State values reported by
lsof.
M
- Mac() - Constructor for class org.terracotta.utilities.test.net.EphemeralPorts.Mac
- MAC - org.terracotta.utilities.test.net.NetStat.Platform
-
Handles processing for Mac OS X.
- main(String[]) - Static method in class org.terracotta.utilities.test.net.EphemeralPorts
- main(String[]) - Static method in class org.terracotta.utilities.test.net.NetStat
-
Writes the list returned by
NetStat.info()toSystem.out. - main(String[]) - Static method in class org.terracotta.utilities.test.net.ReservedPorts
- MAXIMUM_OPERATION_ATTEMPTS - Static variable in class org.terracotta.utilities.io.Files
- MAXIMUM_PORT_NUMBER - Static variable in class org.terracotta.utilities.test.net.PortManager
- mergeCommands(List<NetStat.BusyPort>) - Static method in enum org.terracotta.utilities.test.net.NetStat.Platform
-
Creates an updated
BusyPortlist merging in a more complete command string from thepscommand. - message(String, Shell.Result) - Static method in exception org.terracotta.utilities.test.net.NetStat.HostExecutionException
- MINIMUM_ASSIGNABLE_PORT_COUNT - Static variable in class org.terracotta.utilities.test.net.PortManager
- MINIMUM_OPERATION_REPEAT_DELAY - Static variable in class org.terracotta.utilities.io.Files
- MINIMUM_TIME_LIMIT - Static variable in class org.terracotta.utilities.io.Files
-
Deprecated.there is now no minimum time limit for operations
- msStateNumber - Variable in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Number associated with Microsoft's .Net TcpState enum.
- msStateString - Variable in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
String representation used by Microsoft.
N
- name() - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
- ndd - Variable in class org.terracotta.utilities.test.net.EphemeralPorts.SolarisAndHPUX
- netstat() - Method in enum org.terracotta.utilities.test.net.NetStat.Platform
-
Gets the list of TCP connections joined with information about the process that owns each connection.
- netstat(int) - Method in enum org.terracotta.utilities.test.net.NetStat.Platform
-
Gets the list of TCP connections for a single local port joined with information about the process that owns each connection.
- NetStat - Class in org.terracotta.utilities.test.net
-
Produces a network status collection similar to that obtained using
netstat. - NetStat() - Constructor for class org.terracotta.utilities.test.net.NetStat
-
Private niladic constructor to prevent instantiation.
- NetStat.BusyPort - Class in org.terracotta.utilities.test.net
-
Describes an active TCP port and associates it with the controlling process.
- NetStat.BusyPort.Builder - Class in org.terracotta.utilities.test.net
- NetStat.BusyPort.IPVersion - Enum in org.terracotta.utilities.test.net
-
Enumerates the types of IP addresses supported.
- NetStat.BusyPort.TcpState - Enum in org.terracotta.utilities.test.net
-
TCP Connection states.
- NetStat.HostExecutionException - Exception in org.terracotta.utilities.test.net
-
Thrown to indicate the failure of a host command used in construction of TCP connection status information.
- NetStat.InetEndpointPair - Class in org.terracotta.utilities.test.net
- NetStat.Platform - Enum in org.terracotta.utilities.test.net
-
Specifies the platform-dependent support for obtaining
netstat-like information. - NETTOP_COMMAND - Static variable in class org.terracotta.utilities.test.net.NetStat
- nettopStateString - Variable in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
State value reported by Mac OS X
nettopcommand. - nextFree(BitSet) - Method in enum org.terracotta.utilities.test.net.PortManager.BitSearch
-
Gets the function used to search the specified
BitSetfor the next clear (free) bit. - NO_RELEASE_CHECK - org.terracotta.utilities.test.net.PortManager.PortRef.CloseOption
-
Indicates that no busy check should be performed when closing the
PortRefand releasing a port. - noSpan - Variable in class org.terracotta.utilities.io.Files.CopyingFileVisitor
- NOSPAN_FILESTORES - org.terracotta.utilities.io.Files.ExtendedOption
-
Indicates that copying source files from different
FileStoreinstances is not permitted. - NullOutputStream - Class in org.terracotta.utilities.io
-
An
OutputStreamwhich discards all data written to it. - NullOutputStream() - Constructor for class org.terracotta.utilities.io.NullOutputStream
O
- onClose(BiConsumer<Integer, Set<PortManager.PortRef.CloseOption>>) - Method in class org.terracotta.utilities.test.net.PortManager.PortRef
-
Prepends a close action to this
PortRef. - openChannel - Variable in class org.terracotta.utilities.test.net.SystemLevelLocker
- operationDelay(Duration) - Static method in class org.terracotta.utilities.io.Files
- 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.test.io - package org.terracotta.utilities.test.io
- org.terracotta.utilities.test.net - package org.terracotta.utilities.test.net
- org.terracotta.utilities.test.runtime - package org.terracotta.utilities.test.runtime
- Os - Class in org.terracotta.utilities.test.runtime
-
O/S functions
- Os() - Constructor for class org.terracotta.utilities.test.runtime.Os
- osPlatform - Variable in enum org.terracotta.utilities.test.net.NetStat.Platform
- output() - Method in exception org.terracotta.utilities.test.net.NetStat.HostExecutionException
- outstandingLocks - Variable in class org.terracotta.utilities.test.net.SystemLevelLocker
- OWNER_TO_OTHER_MAPPING - Static variable in class org.terracotta.utilities.test.io.CommonFiles
-
Maps OWNER permissions into the corresponding OTHER permission.
P
- parseLsof(Stream<String>) - Static method in class org.terracotta.utilities.test.net.NetStat
-
Parses the output of
NetStat.LSOF_COMMAND. - parseLsofEndpoint(NetStat.BusyPort.IPVersion, String) - Static method in class org.terracotta.utilities.test.net.NetStat
- parseLsofEndpointPair(NetStat.BusyPort.IPVersion, String) - Static method in class org.terracotta.utilities.test.net.NetStat
-
Converts the TCP endpoint address pair obtained from the "name" field output from
lsofinto anInetSocketAddress. - parseNetTop(Stream<String>) - Static method in class org.terracotta.utilities.test.net.NetStat
-
Parses the output of
NetStat.NETTOP_COMMAND. - parseWindowsCsv(String) - Static method in class org.terracotta.utilities.test.net.NetStat
-
Parses a response line from
NetStat.POWERSHELL_NETSTAT_COMMAND. - PathHolder(Path, boolean) - Constructor for class org.terracotta.utilities.io.FilesSupport.PathHolder
- pathType(BasicFileAttributes) - Static method in class org.terracotta.utilities.io.FilesSupport
-
Determine the path type from
BasicFileAttributes. - Pid() - Constructor for class org.terracotta.utilities.test.net.PortManager.Pid
- PID - Static variable in class org.terracotta.utilities.test.net.PortManager.Pid
- platform() - Static method in class org.terracotta.utilities.test.runtime.Os
- Platform(String) - Constructor for enum org.terracotta.utilities.test.net.NetStat.Platform
- port - Variable in class org.terracotta.utilities.test.net.PortManager.AllocatedPort
- port - Variable in class org.terracotta.utilities.test.net.PortManager.PortRef
- port() - Method in class org.terracotta.utilities.test.net.PortManager.PortRef
-
Gets the reserved port number.
- PortManager - Class in org.terracotta.utilities.test.net
-
Manages TCP port reservation/de-reservation while attempting to avoid intra- and extra-JVM interference.
- PortManager() - Constructor for class org.terracotta.utilities.test.net.PortManager
-
Creates a
PortManagerinstance primed for reserving ports outside of current system's the ephemeral port range. - PortManager.AllocatedPort - Class in org.terracotta.utilities.test.net
-
Referenceimplementation used to track no longer used reserved ports. - PortManager.BitSearch - Enum in org.terracotta.utilities.test.net
-
Enumeration of search for a
BitSet. - PortManager.Pid - Class in org.terracotta.utilities.test.net
-
Determines the process identifier of the current process.
- PortManager.PortRef - Class in org.terracotta.utilities.test.net
-
Represents a reserved TCP port.
- PortManager.PortRef.CloseOption - Enum in org.terracotta.utilities.test.net
-
Options that may be used with
PortManager.PortRef.close(Set). - portMap - Variable in class org.terracotta.utilities.test.net.PortManager
-
Port allocation map.
- PortRef(int) - Constructor for class org.terracotta.utilities.test.net.PortManager.PortRef
- POWERSHELL_NETSTAT_COMMAND - Static variable in class org.terracotta.utilities.test.net.NetStat
- prepareCommand(String[], Object...) - Static method in enum org.terracotta.utilities.test.net.NetStat.Platform
-
Prepares a command array using
String.formatto substitute arguments. - preVisitDirectory(Path, BasicFileAttributes) - Method in class org.terracotta.utilities.io.Files.CopyingFileVisitor
-
Create the target directories using
Files.copy(Path, Path, CopyOption...)to in order to copy the directory attributes if requested. - printStream - Variable in class org.terracotta.utilities.io.buffer.DumpUtility
-
The
PrintStreamto which the dump is written. - processEndpoint(NetStat.BusyPort.IPVersion, String, String) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
- processId - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
- processId - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort
- processId() - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort
-
Gets the process id associated with this connection.
- processId(String) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Sets the process id for the connection.
- processNettopEndpoints(NetStat.BusyPort.IPVersion, NetStat.BusyPort.Builder, String, Pattern, Function<String, String>) - Static method in class org.terracotta.utilities.test.net.NetStat
- progressHelper - Variable in class org.terracotta.utilities.io.Files.RetryingDeleteTask
- PS_COMMAND - Static variable in enum org.terracotta.utilities.test.net.NetStat.Platform
- PS_PATTERN - Static variable in enum org.terracotta.utilities.test.net.NetStat.Platform
R
- random - Static variable in class org.terracotta.utilities.io.Files
- randomName(String) - Static method in class org.terracotta.utilities.io.Files
- range - Static variable in class org.terracotta.utilities.test.net.EphemeralPorts
- Range(int, int) - Constructor for class org.terracotta.utilities.test.net.EphemeralPorts.Range
- RECURSIVE - org.terracotta.utilities.io.Files.ExtendedOption
-
Recursively copy a directory and its content.
- reference - Variable in class org.terracotta.utilities.test.io.WindowsSpecialFolder.LazyProperty
- refusesConnect(int) - Method in class org.terracotta.utilities.test.net.PortManager
-
Determines if a client connection to the specified port is accepted or refused.
- RELATIVE_LOCK_FILE_PATH - Static variable in class org.terracotta.utilities.test.net.SystemLevelLocker
- release() - Method in class org.terracotta.utilities.test.net.PortManager.AllocatedPort
- release(int, FileLock) - Method in class org.terracotta.utilities.test.net.SystemLevelLocker
-
Release the system-level lock for the specified
PortRefinstance. - release(int, Set<PortManager.PortRef.CloseOption>) - Method in class org.terracotta.utilities.test.net.PortManager
- relocate(Path) - Method in class org.terracotta.utilities.io.Files.CopyingFileVisitor
-
Make the source path provided refer to the same place in the target.
- relocate(Path, Path, CopyOption...) - Static method in class org.terracotta.utilities.io.Files
-
Moves (relocates) the source to the target location.
- remoteEndpoint - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
- remoteEndpoint - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort
- remoteEndpoint - Variable in class org.terracotta.utilities.test.net.NetStat.InetEndpointPair
- remoteEndpoint() - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort
-
Gets the remote endpoint socket address.
- remoteEndpoint(InetSocketAddress) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Sets the remote endpoint for the connection.
- remoteEndpoint(NetStat.BusyPort.IPVersion, String, String) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Sets the remote endpoint for the connection.
- rename(Path, Path) - Static method in class org.terracotta.utilities.io.Files
-
Rename the file or directory with retry for
FileSystemExceptioninstances 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
FileSystemExceptioninstances 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
FileSystemExceptioninstances indicating interference from temporary access by other processes. - reserve(int) - Method in class org.terracotta.utilities.test.net.PortManager
-
Attempts to reserve the specified port.
- ReservedPorts - Class in org.terracotta.utilities.test.net
-
Identifies reserved ports on a platform.
- ReservedPorts() - Constructor for class org.terracotta.utilities.test.net.ReservedPorts
- ReservedPorts.Linux - Class in org.terracotta.utilities.test.net
-
Determine the reserved ports on a Linux platform.
- ReservedPorts.Windows - Class in org.terracotta.utilities.test.net
-
Determine the reserved ports on a Windows platform.
- reserveInternal(int) - Method in class org.terracotta.utilities.test.net.PortManager
-
Reserve and vet the specified candidate port.
- reservePort() - Method in class org.terracotta.utilities.test.net.PortManager
-
Reserve a single, randomly selected port.
- reservePorts(int) - Method in class org.terracotta.utilities.test.net.PortManager
-
Reserves the specified number of ports returning a list of
PortManager.PortRefinstances for those reserved. - reset() - Method in class org.terracotta.utilities.io.CapturedPrintStream.LocalBufferedOutputStream
- reset() - Method in class org.terracotta.utilities.io.CapturedPrintStream
-
Discards the captured output.
- resetTcp() - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Resets the TCP information in this
Builder. - resolveClass(ObjectStreamClass) - Method in class org.terracotta.utilities.classloading.CustomLoaderBasedObjectInputStream
- resolveClass(ObjectStreamClass) - Method in class org.terracotta.utilities.classloading.FilteredObjectInputStream
- restrictedPorts - Variable in class org.terracotta.utilities.test.net.PortManager
-
Marks the ports which cannot be allocated by this class.
- result - Variable in exception org.terracotta.utilities.test.net.NetStat.HostExecutionException
- Result(int, List<String>) - Constructor for class org.terracotta.utilities.exec.Shell.Result
- RETRY_REASONS - Static variable in class org.terracotta.utilities.io.Files
-
Identifies the
FileSystemException.getReason()messages for which file operations that warrant a retry. - retryDirNotEmpty - Variable in class org.terracotta.utilities.io.Files.RetryingDeleteTask
- RetryingDeleteTask(ExecutorService, Callable<Void>, Path, boolean, Runnable) - Constructor for class org.terracotta.utilities.io.Files.RetryingDeleteTask
- retryingRename(Path, Supplier<String>, Duration, Runnable) - Static method in class org.terracotta.utilities.io.Files
-
Attempts to rename the specified path to a new name relative to the parent directory.
- retryingRenamePath(Path, Supplier<Path>, Duration, Runnable) - Static method in class org.terracotta.utilities.io.Files
-
Attempts to rename the specified path to a new path.
- reverse() - Method in enum org.terracotta.utilities.test.net.PortManager.BitSearch
-
Gets the
BitSearchvalue that searches in the opposite direction. - rnd - Variable in class org.terracotta.utilities.test.net.PortManager
- root - Variable in class org.terracotta.utilities.io.Files.UnknownFileStore
- run() - Method in class org.terracotta.utilities.io.Files.RetryingDeleteTask
- runCommand(String[], Function<Stream<String>, List<T>>) - Static method in enum org.terracotta.utilities.test.net.NetStat.Platform
S
- serialVersionUID - Static variable in exception org.terracotta.utilities.io.buffer.DumpUtility.FieldInaccessibleException
- serialVersionUID - Static variable in exception org.terracotta.utilities.io.Files.FileStoreConstraintException
- serialVersionUID - Static variable in exception org.terracotta.utilities.test.io.WindowsSpecialFolder.SpecialFolderException
- serialVersionUID - Static variable in exception org.terracotta.utilities.test.net.NetStat.HostExecutionException
- Shell - Class in org.terracotta.utilities.exec
-
Utility functions for use with execution of shell commands.
- Shell() - Constructor for class org.terracotta.utilities.exec.Shell
-
Private niladic constructor to prevent instantiation.
- Shell.Encoding - Class in org.terracotta.utilities.exec
-
Singleton identifying the
Charsetused 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. - shortCommand - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
- shortCommand - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort
- shortCommand() - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort
-
Gets the short representation of the command as provided by the TCP connection information source.
- shortCommand(String) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Sets the short command string for the connection.
- shouldLog - Variable in class org.terracotta.utilities.io.Files.RetryingDeleteTask
- SolarisAndHPUX(boolean) - Constructor for class org.terracotta.utilities.test.net.EphemeralPorts.SolarisAndHPUX
- source - Variable in class org.terracotta.utilities.io.Files.CopyingFileVisitor
- source - Static variable in class org.terracotta.utilities.test.net.EphemeralPorts.Linux
- SOURCE - Static variable in class org.terracotta.utilities.test.net.ReservedPorts.Linux
- sourceFileStore - Variable in class org.terracotta.utilities.io.Files.CopyingFileVisitor
- SpecialFolderException(String, List<String>, int) - Constructor for exception org.terracotta.utilities.test.io.WindowsSpecialFolder.SpecialFolderException
- start() - Method in class org.terracotta.utilities.io.FilesSupport.PathHolder
-
Open or lock the file and return.
- started - Variable in class org.terracotta.utilities.io.FilesSupport.PathHolder
- state - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
- state - Variable in class org.terracotta.utilities.test.net.NetStat.BusyPort
- state() - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort
-
Gets the state of this TCP connection.
- state(NetStat.BusyPort.TcpState) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort.Builder
-
Sets the
NetStat.BusyPort.TcpStatefor the connection. - SUBST_PAIR - Static variable in class org.terracotta.utilities.io.FilesSupport
- successor(int) - Method in enum org.terracotta.utilities.test.net.PortManager.BitSearch
-
Advances the value to the next value appropriate for the direction.
- SUDO_PREFIX - Static variable in class org.terracotta.utilities.test.net.NetStat
- supplier - Variable in class org.terracotta.utilities.test.io.WindowsSpecialFolder.LazyProperty
- supportsFileAttributeView(Class<? extends FileAttributeView>) - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
- supportsFileAttributeView(String) - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
- SYN_RECEIVED - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting connection request acknowledgement after having sent and received a connection request (RFC-793).
- SYN_SENT - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting a matching connection request after having sent a connection request (RFC-793).
- SYSTEM - org.terracotta.utilities.test.io.WindowsSpecialFolder
-
Provides the
Pathcorresponding to theSystemspecial folder. - systemLevelLocker - Variable in class org.terracotta.utilities.test.net.PortManager
-
Manages port reservations at a system level using file locks.
- SystemLevelLocker - Class in org.terracotta.utilities.test.net
-
Supplies a system-level locking mechanism supporting port management.
- SystemLevelLocker() - Constructor for class org.terracotta.utilities.test.net.SystemLevelLocker
-
Creates a new instance of
SystemLevelLocker.
T
- target - Variable in class org.terracotta.utilities.io.Files.CopyingFileVisitor
- task - Variable in class org.terracotta.utilities.io.Files.RetryingDeleteTask
- TCP4_ENDPOINT_PATTERN - Static variable in class org.terracotta.utilities.test.net.NetStat
-
Pattern for parsing IPv4 endpoints expressed by
nettop. - TCP6_ENDPOINT_PATTERN - Static variable in class org.terracotta.utilities.test.net.NetStat
-
Pattern for parsing IPv6 endpoints expressed by
nettop. - TcpState(String, int, String, String...) - Constructor for enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
- thread - Variable in class org.terracotta.utilities.io.FilesSupport.PathHolder
- TIME_WAIT - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Awaiting expiration of TCP implementation-defined timeout before socket of closed connection can be re-used (RFC-793).
- toByteArray() - Method in class org.terracotta.utilities.io.CapturedPrintStream.LocalBufferedOutputStream
- toByteArray() - Method in class org.terracotta.utilities.io.CapturedPrintStream
-
Gets a copy of the content of this stream as a byte array.
- toString() - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
- toString() - Method in class org.terracotta.utilities.test.net.EphemeralPorts.Range
- toString() - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort
- toString(String) - Method in class org.terracotta.utilities.test.net.NetStat.BusyPort
-
Produces a print-suitable string of this
BusyPortinstance. - treeDelete(Path) - Static method in class org.terracotta.utilities.io.Files
-
Deletes the file or directory tree retrying for select
FileSystemExceptionand, optionally, aDirectoryNotEmptyException. - twoByteLineSeparator - Variable in class org.terracotta.utilities.logging.LoggingOutputStream
- type() - Method in class org.terracotta.utilities.io.Files.UnknownFileStore
U
- UNKNOWN - org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Connection state is unknown (MSFT_NetTCPConnection).
- UnknownFileStore(Path) - Constructor for class org.terracotta.utilities.io.Files.UnknownFileStore
- unspecified() - Method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
-
Returns an
InetAddressinstance indicating an "unspecified" (or failed) host address. - updateAcl(Path) - Static method in class org.terracotta.utilities.test.io.CommonFiles
-
Updates ACL-based permissions.
- updatePosixPermissions(Path) - Static method in class org.terracotta.utilities.test.io.CommonFiles
-
Updates POSIX-based permissions.
- upper - Variable in class org.terracotta.utilities.test.net.EphemeralPorts.Range
V
- valueOf(String) - Static method in enum org.terracotta.utilities.io.Files.ExtendedOption
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.terracotta.utilities.test.io.WindowsSpecialFolder
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.terracotta.utilities.test.net.NetStat.Platform
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.terracotta.utilities.test.net.PortManager.BitSearch
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.terracotta.utilities.test.net.PortManager.PortRef.CloseOption
-
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.
- values() - Static method in enum org.terracotta.utilities.test.io.WindowsSpecialFolder
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.terracotta.utilities.test.net.NetStat.BusyPort.TcpState
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.terracotta.utilities.test.net.NetStat.Platform
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.terracotta.utilities.test.net.PortManager.BitSearch
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.terracotta.utilities.test.net.PortManager.PortRef.CloseOption
-
Returns an array containing the constants of this enum type, in the order they are declared.
- versionIds - Variable in enum org.terracotta.utilities.test.net.NetStat.BusyPort.IPVersion
- visitFile(Path, BasicFileAttributes) - Method in class org.terracotta.utilities.io.Files.CopyingFileVisitor
-
Copy the source file using
Files.copy(Path, Path, CopyOption...)to the like location in the target copying attributes as requested.
W
- wasDumped(Object) - Method in class org.terracotta.utilities.io.buffer.DumpUtility
-
Tracks objects dumped by this
DumpUtilityinstance to permit avoidance of duplicate dumps of data structures. - Windows() - Constructor for class org.terracotta.utilities.test.net.EphemeralPorts.Windows
- Windows() - Constructor for class org.terracotta.utilities.test.net.ReservedPorts.Windows
- WINDOWS - org.terracotta.utilities.test.net.NetStat.Platform
-
Handles processing for Windows variants.
- WindowsSpecialFolder - Enum in org.terracotta.utilities.test.io
-
Provides the value for Windows Special Folder identifiers.
- WindowsSpecialFolder(String, boolean) - Constructor for enum org.terracotta.utilities.test.io.WindowsSpecialFolder
- WindowsSpecialFolder.LazyProperty<T> - Class in org.terracotta.utilities.test.io
-
A derived on first reference value holder.
- WindowsSpecialFolder.LazyProperty.ThrowingSupplier<T> - Interface in org.terracotta.utilities.test.io
- WindowsSpecialFolder.SpecialFolderException - Exception in org.terracotta.utilities.test.io
-
Thrown when the folder assigned to a Windows Special Folder identifier cannot be determined.
- WindowsWellKnownIdentities() - Constructor for class org.terracotta.utilities.test.io.CommonFiles.WindowsWellKnownIdentities
- write(byte[], int, int) - Method in class org.terracotta.utilities.io.NullOutputStream
- write(int) - Method in class org.terracotta.utilities.io.NullOutputStream
- write(int) - Method in class org.terracotta.utilities.logging.LoggingOutputStream
All Classes All Packages