A C D E G H I K M N O P R S T U V W X
A
- ALIAS_GET - Static variable in class org.refcodes.runtime.ReflectionUtility
- ALIAS_HAS - Static variable in class org.refcodes.runtime.ReflectionUtility
- ALIAS_IS - Static variable in class org.refcodes.runtime.ReflectionUtility
- ALIAS_SET - Static variable in class org.refcodes.runtime.ReflectionUtility
- ALIAS_TOSTRING - Static variable in class org.refcodes.runtime.ReflectionUtility
- ALL - org.refcodes.runtime.ConfigLocator
- APPLICATION - org.refcodes.runtime.SystemContext
-
Specifies an application specific granularity.
- APPLICATION_ALL - org.refcodes.runtime.ConfigLocator
- APPLICATION_BASE - org.refcodes.runtime.ConfigLocator
- APPLICATION_BASE_ALL - org.refcodes.runtime.ConfigLocator
- APPLICATION_BASE_CONFIG - org.refcodes.runtime.ConfigLocator
- APPLICATION_BASE_DOT_CONFIG - org.refcodes.runtime.ConfigLocator
- APPLICATION_BASE_DOT_ETC - org.refcodes.runtime.ConfigLocator
- APPLICATION_BASE_DOT_SETTINGS - org.refcodes.runtime.ConfigLocator
- APPLICATION_BASE_ETC - org.refcodes.runtime.ConfigLocator
- APPLICATION_BASE_SETTINGS - org.refcodes.runtime.ConfigLocator
- APPLICATION_PARENT_ALL - org.refcodes.runtime.ConfigLocator
- APPLICATION_PARENT_CONFIG - org.refcodes.runtime.ConfigLocator
- APPLICATION_PARENT_DOT_CONFIG - org.refcodes.runtime.ConfigLocator
- APPLICATION_PARENT_DOT_ETC - org.refcodes.runtime.ConfigLocator
- APPLICATION_PARENT_DOT_SETTINGS - org.refcodes.runtime.ConfigLocator
- APPLICATION_PARENT_ETC - org.refcodes.runtime.ConfigLocator
- APPLICATION_PARENT_SETTINGS - org.refcodes.runtime.ConfigLocator
- APPLICATION_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session and an application specific granularity.
C
- ConfigLocator - Enum in org.refcodes.runtime
-
This enumeration represents configuration folder locations (of type
File
) and configuration file retrieval as of the chosen configuration mode. - containsDir(File, List<File>...) - Static method in class org.refcodes.runtime.RuntimeUtility
- Correlation - Enum in org.refcodes.runtime
-
The
Correlation
assigns an according (as of the enumeration) Correlation-ID to the invoking process, this ID is used in log files and is part of the process's request or response pay-load in order to track process execution throughout a JVM. - CYGWIN - org.refcodes.runtime.Terminal
D
- disableRequestCorrelation() - Method in interface org.refcodes.runtime.RequestCorrelation
-
Disables the automatic Request-Correlation mechanism.
- disableSessionCorrelation() - Method in interface org.refcodes.runtime.SessionCorrelation
-
Disables the automatic Session-Correlation mechanism.
- DumpBuilder - Interface in org.refcodes.runtime
-
The
DumpBuilder
assists you in inspecting the content of an object. - DumpBuilderImpl - Class in org.refcodes.runtime
-
Extend the
toDump(Object, Map)
wit aList
if visited objects and a "nested"-counter and dig recursively into the object. - DumpBuilderImpl() - Constructor for class org.refcodes.runtime.DumpBuilderImpl
E
- enableRequestCorrelation() - Method in interface org.refcodes.runtime.RequestCorrelation
-
Enables the automatic Request-Correlation mechanism.
- enableSessionCorrelation() - Method in interface org.refcodes.runtime.SessionCorrelation
-
Enables the automatic Session-Correlation mechanism.
- EnvironmentUtility - Class in org.refcodes.runtime
-
Utility class with helpful methods for working with a system's environment variables.
- exec(int, String) - Static method in class org.refcodes.runtime.SystemUtility
-
Executes a command and returns the output.
- exec(int, String...) - Static method in class org.refcodes.runtime.SystemUtility
-
Executes a command and returns the output.
- exec(String) - Static method in class org.refcodes.runtime.SystemUtility
-
Executes a command and returns the output.
- exec(String...) - Static method in class org.refcodes.runtime.SystemUtility
-
Executes a command and returns the output.
G
- getCallerStackTraceElement() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the
StackTraceElement
belonging to the direct caller of this method. - getCallerStackTraceElement(Class<?>) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the
StackTraceElement
belonging to the caller of the callee. - getCallerStackTraceElement(Class<?>...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Same as
RuntimeUtility.getCallerStackTraceElement(Class)
with the difference that the passed callees are tried out one after the other until the first caller determined for a callee is returned. - getCallerStackTraceElement(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the
StackTraceElement
belonging to the caller of the callee. - getCallerStackTraceElement(StackTraceElement...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Same as
RuntimeUtility.getCallerStackTraceElement(StackTraceElement)
with the difference that the passed callees are tried out one after the other until the first caller determined for a callee is returned. - getCallerStackTraceElement(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the
StackTraceElement
belonging to the caller of the callee. - getCallerStackTraceElement(String...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Same as
RuntimeUtility.getCallerStackTraceElement(String)
with the difference that the passed callees are tried out one after the other until the first caller determined for a callee is returned. - getCallerType() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the type of the (
Class
) belonging to the direct caller of this method. - getCallerType(Class<?>) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the type of the (
Class
) belonging to the caller of the callee. - getCallerType(Class<?>...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Same as
RuntimeUtility.getCallerType(Class)
with the difference that the passed callees are tried out one after the other until the first caller determined for a callee is returned. - getCallerType(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the type of the (
Class
) belonging to the caller of the callee. - getCallerType(StackTraceElement...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Same as
RuntimeUtility.getCallerType(StackTraceElement)
with the difference that the passed callees are tried out one after the other until the first caller determined for a callee is returned. - getCallerType(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the type of the (
Class
) belonging to the caller of the callee. - getCallerType(String...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Same as
RuntimeUtility.getCallerType(String)
with the difference that the passed callees are tried out one after the other until the first caller determined for a callee is returned. - getComputerName() - Static method in class org.refcodes.runtime.SystemUtility
-
Determines the computer's name.
- getCurrentTerminalHeight() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the current height in characters of the system's terminal in use.
- getCurrentTerminalWidth() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the current width in characters of the system's terminal in use.
- getEnvironmentVariable() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Returns the according environment variable after having converted the key as of
KeyAccessor.getKey()
to an environment variable. - getEnvironmentVariable(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Returns the according environment variable after having converted the provided key to an environment variable.
- getEnvironmentVariable(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Returns the according environment variable after having converted the provided key to an environment variable.
- getFolders() - Method in enum org.refcodes.runtime.ConfigLocator
-
Returns the folders to be examined by the according enumeration's configuration in the order as of evaluation.
- getFolders(File...) - Method in enum org.refcodes.runtime.ConfigLocator
-
Returns the folders to be examined by the according enumeration's configuration in the order as of evaluation.
- getId() - Method in enum org.refcodes.runtime.Correlation
-
Retrieves the Correlation-ID assigned to the current
Thread
. - getKey() - Method in class org.refcodes.runtime.PropertyBuilderImpl
- getLineBreak() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the operating system as of
OperatingSystem.toOperatingSystem()
and in case aOperatingSystem.WINDOWS
is being detected, then \r\n" (CRLF) is returned, else "\n" (LF) is returned. - getMainClass() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the main class launching the application.
- getObject() - Method in class org.refcodes.runtime.DumpBuilderImpl
- getPid() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Bad hack to get the JVM's (process ID) PID of the process running your JVM instance.
- getResult() - Method in class org.refcodes.runtime.ProcessResult
- getSystemProperty() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Returns the according system's property after having converted the key as of
KeyAccessor.getKey()
to a system property. - getSystemProperty(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Returns the according system's property after having converted the provided key to a system property.
- getSystemProperty(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Returns the according system's property after having converted the provided key to a system property.
- getTerminalEncoding() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the encoding of the system (system's console) in use as of
System.out
. - getTerminalHeight() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the height in characters of the system's terminal in use.
- getTerminalHeight(int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines the height in characters of the system's terminal in use.
- getTerminalWidth() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the width in characters of the system's terminal in use.
- getTerminalWidth(int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines the width in characters of the system's terminal in use.
- getUname() - Static method in class org.refcodes.runtime.SystemUtility
-
If on a *nix alike system, this method returns the output of the "uname -a" command: "uname" prints system information, "-a" instructs it to print all information.
H
- hasAnyCorrelationId() - Static method in enum org.refcodes.runtime.Correlation
-
Evaluates whether any of the given Correlation-IDs is present (not null).
- hasGetterAttribute(Object, String, Class<?>) - Static method in class org.refcodes.runtime.ReflectionUtility
-
This method tests whether the given java beans getter attribute is found for the given object.
- hasRequestCorrelation() - Method in interface org.refcodes.runtime.RequestCorrelation
-
Determines whether Request-Correlation is being enabled or disabled.
- hasSessionCorrelation() - Method in interface org.refcodes.runtime.SessionCorrelation
-
Determines whether Session-Correlation is being enabled or disabled.
- hasSetterAttribute(Object, String, Class<?>) - Static method in class org.refcodes.runtime.ReflectionUtility
-
This method tests whether the given java beans setter attribute is found for the given object.
- HOST - org.refcodes.runtime.SystemContext
-
Specifies a host specific granularity.
- HOST_APPLICATION - org.refcodes.runtime.SystemContext
-
Specifies an application on a host specific granularity.
- HOST_APPLICATION_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for an application on a host specific granularity.
- HOST_ETC - org.refcodes.runtime.ConfigLocator
- HOST_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for a host specific granularity.
- HOST_USER - org.refcodes.runtime.SystemContext
-
Specifies a user on a host specific granularity.
- HOST_USER_APPLICATION - org.refcodes.runtime.SystemContext
-
Specifies an application for a user on a host specific granularity.
- HOST_USER_APPLICATION_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for an application for a user on a host specific granularity.
- HOST_USER_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for a user on a host specific granularity.
I
- isAnsiTerminal() - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether ANSI escape sequences are supported by the terminal.
- isAnsiTerminalPreferred() - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether ANSI escape sequences are forced to be supported or not by REFCODES.ORG artifacts.
- isApplicationBase() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where the JAR resides) folder.
- isApplicationBaseConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where the JAR resides) "config" subfolder.
- isApplicationBaseDotConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where the JAR resides) ".config" subfolder.
- isApplicationBaseDotEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where the JAR resides) ".etc" subfolder.
- isApplicationBaseDotSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where the JAR resides) ".settings" subfolder.
- isApplicationBaseEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where the JAR resides) "etc" subfolder.
- isApplicationBaseSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where the JAR resides) "settings" subfolder.
- isApplicationLevel() - Method in enum org.refcodes.runtime.SystemContext
-
Determines whether the granularity is on an application level.
- isApplicationParentConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent folder of the folder where the JAR resides) "config" subfolder.
- isApplicationParentDotConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent folder of the folder where the JAR resides) ".config" subfolder.
- isApplicationParentDotEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent folder of the folder where the JAR resides) ".etc" subfolder.
- isApplicationParentDotSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent folder of the folder where the JAR resides) ".settings" subfolder.
- isApplicationParentEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent folder of the folder where the JAR resides) "etc" subfolder.
- isApplicationParentSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent folder of the folder where the JAR resides) "settings" subfolder.
- isCurrentlyLineBreakRequired(int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether wee need an explicit line-break for the given width on the current operating system and used terminal.
- isHostEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the host's "/etc" folder.
- isHostLevel() - Method in enum org.refcodes.runtime.SystemContext
-
Determines whether the granularity is on a host level.
- isLineBreakRequired(int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether wee need an explicit line-break for the given width on the current operating system and used terminal.
- isLineBreakRequired(int, int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether wee need an explicit line-break for the given width on the current operating system and used terminal.
- isSessionLevel() - Method in enum org.refcodes.runtime.SystemContext
-
Determines whether the granularity is on a session level, e.g. valid just for the lifetime of the current runtime Java's invocation.
- isUnderTest() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Determines whether this code is executed from inside a unit test or not.
- isUser() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" folder.
- isUserConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder "config".
- isUserDotConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder ".config".
- isUserDotEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder ".etc".
- isUserDotSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder ".settings".
- isUserEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder "etc".
- isUserLevel() - Method in enum org.refcodes.runtime.SystemContext
-
Determines whether the granularity is on a user level.
- isUserSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder "settings".
K
- kill(Long) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Bad hack to kill an OS thread by PID.
- killProcess(Long) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Bad hack to kill an OS thread by PID.
M
- MAC - org.refcodes.runtime.OperatingSystem
N
- nextId() - Method in enum org.refcodes.runtime.Correlation
-
Creates a new Correlation-ID no matter whether there is a Correlation-ID already assigned to the current thread or not.
- NON_EXISTING_VALUE - Static variable in class org.refcodes.runtime.ReflectionUtility
- NONE - org.refcodes.runtime.Shell
- NonExistingValueClass() - Constructor for class org.refcodes.runtime.ReflectionUtility.NonExistingValueClass
O
- OperatingSystem - Enum in org.refcodes.runtime
-
Enumeration with the (supported) operating systems.
- org.refcodes.runtime - package org.refcodes.runtime
-
This package contains runtime related interfaces and enumerations.
P
- POWER_SHELL - org.refcodes.runtime.Shell
-
MS Windows PowerShell:.
- ProcessResult - Class in org.refcodes.runtime
-
Retrieves the Result of the given process as
String
. - ProcessResult(Process) - Constructor for class org.refcodes.runtime.ProcessResult
-
Constructs a
ProcessResult
instance which will synchronously return the process' result viaProcessResult.getResult()
(andProcessResult.toString()
accordingly). - ProcessResult(Process, int) - Constructor for class org.refcodes.runtime.ProcessResult
-
Constructs a
ProcessResult
instance which will synchronously return the process' result viaProcessResult.getResult()
(andProcessResult.toString()
accordingly). - PropertyBuilder - Interface in org.refcodes.runtime
-
Converts a key to the format of a system property (camel-case) or an environment variable (snake-case in upper-case).
- PropertyBuilderImpl - Class in org.refcodes.runtime
-
The Class PropertyBuilderImpl.
- PropertyBuilderImpl() - Constructor for class org.refcodes.runtime.PropertyBuilderImpl
- pullId() - Method in enum org.refcodes.runtime.Correlation
-
Returns a Correlation-ID in any case: Creates a new Correlation-ID in case there is none yet for the current thread.
- putProperty(Map<String, String>, String, String, char) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Puts a property and resolves the key in case of name collisions.
R
- ReflectionUtility - Class in org.refcodes.runtime
-
The Class ReflectionUtility.
- ReflectionUtility.NonExistingValueClass - Class in org.refcodes.runtime
-
This class indicates a non existing value in the name-to-value mapping.
- REQUEST - org.refcodes.runtime.Correlation
-
A single request spanning over multiple systems.
- RequestCorrelation<B extends RequestCorrelation<B>> - Interface in org.refcodes.runtime
-
Provides methods to set Request-Correlation behavior: When enabled via
RequestCorrelation.setRequestCorrelation(boolean)
(or the like), then an existing Request-Correlation-ID might be forwarded by setting it into theCorrelation
singleton viaCorrelation.REQUEST
'sCorrelation.setId(String)
. - RuntimeUtility - Class in org.refcodes.runtime
-
Utility for acquiring runtime information on software systems, classes or objects.
S
- SESSION - org.refcodes.runtime.Correlation
-
Identifying a session for multiple requests spanning over multiple systems. traced.
- SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session specific granularity, valid just for the current invocation of the Java runtime.
- SessionCorrelation<B extends SessionCorrelation<B>> - Interface in org.refcodes.runtime
-
Provides methods to set Session-Correlation behavior: When enabled via
SessionCorrelation.setSessionCorrelation(boolean)
(or the like), then an existing Session-Correlation-ID might be forwarded by setting it into theCorrelation
singleton viaCorrelation.SESSION
'sCorrelation.setId(String)
. - setAttribute(Object, String, Object) - Static method in class org.refcodes.runtime.ReflectionUtility
-
This method sets a java beans attribute for the given object.
- setAttribute(Object, Attribute) - Static method in class org.refcodes.runtime.ReflectionUtility
-
This method sets a java beans attribute for the given object.
- setId(String) - Method in enum org.refcodes.runtime.Correlation
-
Assigns the given Correlation-ID to the current
Thread
. - setKey(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
- setObject(Object) - Method in class org.refcodes.runtime.DumpBuilderImpl
- setRequestCorrelation(boolean) - Method in interface org.refcodes.runtime.RequestCorrelation
-
Enables or disables the automatic Request-Correlation mechanism.
- setSessionCorrelation(boolean) - Method in interface org.refcodes.runtime.SessionCorrelation
-
Enables or disables the automatic Session-Correlation mechanism.
- Shell - Enum in org.refcodes.runtime
-
Enumeration with the (relevant) shells (command line interpreters).
- SHELL - org.refcodes.runtime.Shell
-
Unix / Linux / BSD like shell.
- SKIP - org.refcodes.runtime.ConfigLocator
- SystemContext - Enum in org.refcodes.runtime
-
Describes the context within a system's environment regarding host, user and application contexts as well as the currently invoked Java runtime session.
- SystemUtility - Class in org.refcodes.runtime
-
Utility for acquiring system information on the machine this process is running in.
T
- Terminal - Enum in org.refcodes.runtime
-
Enumeration with the (relevant) terminals as well as interpolated terminal metrics.
- toAbsolutePathFromEnvironment(String, String...) - Static method in class org.refcodes.runtime.EnvironmentUtility
-
This method converts a relative path to an absolute path relative to the path specified in the first system property provided being set with a value.
- toAbsoluteUserHomePath(String) - Static method in class org.refcodes.runtime.EnvironmentUtility
-
This method converts a relative path to an absolute path relative to the user's home folder.
- toBeanAttributes(Object) - Static method in class org.refcodes.runtime.ReflectionUtility
-
This method uses reflection on order to analyze a given object.
- toBestCallerStackTraceElement(Class<?>) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the caller of the callee.The "best matching"StackTraceElement
is considered to be the one not belonging to any "internal" API in a package namespace such as "com.sun.*", "java.*" or "javax.*". - toBestCallerStackTraceElement(Class<?>[]) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the caller of one of the callees (in the order passed to the method).The "best matching"StackTraceElement
is considered to be the one not belonging to any "internal" API in a package namespace such as "com.sun.*", "java.*" or "javax.*". - toBestCallerStackTraceElement(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the caller of the callee.The "best matching"StackTraceElement
is considered to be the one not belonging to any "internal" API in a package namespace such as "com.sun.*", "java.*" or "javax.*". - toBestCallerStackTraceElement(StackTraceElement[]) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the caller of one of the callees (in the order passed to the method).The "best matching"StackTraceElement
is considered to be the one not belonging to any "internal" API in a package namespace such as "com.sun.*", "java.*" or "javax.*". - toBestCallerStackTraceElement(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the caller of the callee. - toBestCallerStackTraceElement(String[]) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the caller of one of the callees (in the order passed to the method).The "best matching"StackTraceElement
is considered to be the one not belonging to any "internal" API in a package namespace such as "com.sun.*", "java.*" or "javax.*". - toClass(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the
Class
type to which theStackTraceElement
belongs. - toClassName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the class name of the caller of this method without the fully qualified package name part.
- toClassName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the class name part from a
StackTraceElement
. - toClassName(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the class name part from a fully qualified class name (which has the fully qualified package name as part of its name).
- toClone(T) - Static method in class org.refcodes.runtime.RuntimeUtility
-
A
Cloneable
object cannot directly be cloned by casting it to beCloneable
:-( Thereforee this method does the job. - toContextId() - Method in enum org.refcodes.runtime.SystemContext
-
Creates an ID most probably unique as specified by the enumeration instance this method is invoked on.
- toContextId(String) - Method in enum org.refcodes.runtime.SystemContext
-
Creates an ID most probably unique as specified by the enumeration instance this method is invoked on.
- toContextIds(int) - Method in enum org.refcodes.runtime.SystemContext
-
Creates an array of IDs most probably unique as specified by the provided argument this method is invoked on.
- toContextIds(int, String) - Method in enum org.refcodes.runtime.SystemContext
-
Creates an array of IDs most probably unique as specified by the provided argument this method is invoked on.
- toContextSequence() - Method in enum org.refcodes.runtime.SystemContext
-
Creates a
String
most probably unique as specified by the enumeration instance this method is invoked on. - toContextSequence(String) - Method in enum org.refcodes.runtime.SystemContext
-
Creates a
String
most probably unique as specified by the enumeration instance this method is invoked on. - toDump() - Method in interface org.refcodes.runtime.DumpBuilder
-
Dumps the state of the contained object (as of
ObjectAccessor.ObjectMutator.setObject(Object)
) into aMap
which is returned as result. - toDump(Object) - Method in interface org.refcodes.runtime.DumpBuilder
-
Dumps the state of the provided object into a
Map
which is returned as result. - toDump(Object) - Method in class org.refcodes.runtime.DumpBuilderImpl
-
Dumps the state of the provided object into a
Map
which is returned as result. - toDump(Object, Map<String, String>) - Static method in class org.refcodes.runtime.DumpBuilderImpl
-
Dumps the state of the implementing instance into the provided
Map
which is returned as result. - toEnvironmentVariable() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the key as of
KeyAccessor.getKey()
to an environment variable. - toEnvironmentVariable(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the provided key to an environment variable.
- toEnvironmentVariable(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Converts the provided key to an environment variable.
- toFile(String) - Method in enum org.refcodes.runtime.ConfigLocator
-
Retrieves the first
File
identified by the given filename located in one of the according enumeration's configuration locations. - toFile(String, File...) - Method in enum org.refcodes.runtime.ConfigLocator
-
Retrieves the first
File
identified by the given filename located in one of the according enumeration's configuration locations. - toFullCorrelationId() - Static method in enum org.refcodes.runtime.Correlation
-
Returns a
String
with all Correlation-IDs found separated by aDelimiter.CORRELATION_ID
character from each other. - toFullyQualifiedClassName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified method name of the caller of this method.
- toFullyQualifiedClassName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified class name from a
StackTraceElement
. - toFullyQualifiedMethodName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified method name of the caller of this method.
- toFullyQualifiedMethodName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified method name from a
StackTraceElement
. - toFullyQualifiedPackageName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified package name of the caller of this method without the class name part.
- toFullyQualifiedPackageName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified package name from a
StackTraceElement
. - toFullyQualifiedPackageName(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the fully qualified package name part from a fully qualified class name (which has the fully qualified package name as part of its name).
- toHostIpAddress() - Static method in class org.refcodes.runtime.SystemUtility
-
Tries to determine a no-localhost IP-Address for this machine.
- toHostMacAddress() - Static method in class org.refcodes.runtime.SystemUtility
-
Tries to determine the host Mac-Address for this machine.
- toLauncherDir() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Generates the base path relative to the given class location.
- toLineBreak(int) - Static method in enum org.refcodes.runtime.Terminal
-
Uses
Terminal.isLineBreakRequired(int)
to retrieve the character sequence required to suffix to a line in order to get a line break without risking any empty lines as of automatic line wrapping. - toMethodName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified method name of the caller of this method.
- toMethodName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the method name from a
StackTraceElement
. - toNextKey(Map<String, String>, String, char) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the next free key in the properties in case of key name collisions..
- toNormalized(String, char) - Static method in class org.refcodes.runtime.PropertyBuilderImpl
- toOperatingSystem() - Static method in enum org.refcodes.runtime.OperatingSystem
-
Determines the operating system your application is currently running on.
- toOption(String, String...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
When the provided argument starts with one of the provided prefixes, then the portion of the argument without the prefix is returned, which represents the option in question.
- toPath() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the key as of
KeyAccessor.getKey()
to a path (as ofPathMap
). - toPath(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the provided key as of
KeyAccessor.getKey()
to a path (as ofPathMap
). - toPath(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Converts the provided key as of
KeyAccessor.getKey()
to a path (as ofPathMap
). - toPlatformSpecificPath(String) - Static method in class org.refcodes.runtime.EnvironmentUtility
-
This method concerts the given path to a platform specific path, mainly replacing the path separator accordingly.
- toPreferredTerminalHeight() - Static method in enum org.refcodes.runtime.Terminal
-
Does some calculation to always return a sound console height (never returns -1).
- toPreferredTerminalWidth() - Static method in enum org.refcodes.runtime.Terminal
-
Does some calculation to always return a sound console width (never returns -1).
- toPrettySystemInfo() - Static method in class org.refcodes.runtime.SystemUtility
-
Gathers all available system information from this Artifac's point of view.
- toProperties(String[]) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Creates a
Map
from the provided command line arguments using theCommandArgPrefix.toPrefixes()
prefixes to identify the keys (and the values) from the provided arguments. - toProperties(String[], String[], char) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Creates a
Map
from the provided command line arguments using the provided prefixes to identify the keys (and the values) from the provided arguments. - toPropertyValue(String, SystemProperty, EnvironmentVariable...) - Static method in class org.refcodes.runtime.SystemUtility
-
Gets the value for the provided properties, if non was found then the default value is taken.
- toPropertyValue(SystemProperty, EnvironmentVariable...) - Static method in class org.refcodes.runtime.SystemUtility
-
Gets the value for the provided properties, if non was found then null is returned.
- toShell() - Static method in enum org.refcodes.runtime.Shell
-
Tries to determine the command line interpreter (CLI) - if any - this process is running in, e.g. whether we are running in a DOS console environment or a Linux alike Shell.
- toStackTrace() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Gets the stack trace for the current thread.
- toString() - Method in class org.refcodes.runtime.ProcessResult
- toString(String, String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Creates a string of a super class's
Object.toString()
method and the provided "toString" text. - toSystemInfo() - Static method in class org.refcodes.runtime.SystemUtility
-
Gathers all available system information from this Artifac's point of view.
- toSystemProperty() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the key as of
KeyAccessor.getKey()
to a system property. - toSystemProperty(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the provided key to a system property.
- toSystemProperty(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Converts the provided key to a system property.
- toTerminal() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the terminal your application is currently in.
U
- UNIX - org.refcodes.runtime.OperatingSystem
-
Unix / Linux / BSD like operating system.
- UNKNOWN - org.refcodes.runtime.OperatingSystem
-
Unknown operating system.
- UNKNOWN - org.refcodes.runtime.Shell
- UNKNOWN - org.refcodes.runtime.Terminal
- USER - org.refcodes.runtime.ConfigLocator
- USER - org.refcodes.runtime.SystemContext
-
Specifies a user specific granularity.
- USER_ALL - org.refcodes.runtime.ConfigLocator
- USER_APPLICATION - org.refcodes.runtime.SystemContext
-
Specifies a user specific granularity.
- USER_APPLICATION_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session and a user specific granularity.
- USER_CONFIG - org.refcodes.runtime.ConfigLocator
- USER_DOT_CONFIG - org.refcodes.runtime.ConfigLocator
- USER_DOT_ETC - org.refcodes.runtime.ConfigLocator
- USER_DOT_SETTINGS - org.refcodes.runtime.ConfigLocator
- USER_ETC - org.refcodes.runtime.ConfigLocator
- USER_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for a user specific granularity.
- USER_SETTINGS - org.refcodes.runtime.ConfigLocator
V
- valueOf(String) - Static method in enum org.refcodes.runtime.ConfigLocator
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.Correlation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.OperatingSystem
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.Shell
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.SystemContext
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.Terminal
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.refcodes.runtime.ConfigLocator
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.refcodes.runtime.Correlation
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.refcodes.runtime.OperatingSystem
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.refcodes.runtime.Shell
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.refcodes.runtime.SystemContext
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.refcodes.runtime.Terminal
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WIN_CMD - org.refcodes.runtime.Shell
-
MS Windows WIN_CMD.EXE
- WINDOWS - org.refcodes.runtime.OperatingSystem
- withDisableRequestCorrelation() - Method in interface org.refcodes.runtime.RequestCorrelation
-
Builder method for the
RequestCorrelation.disableRequestCorrelation()
operation. - withDisableSessionCorrelation() - Method in interface org.refcodes.runtime.SessionCorrelation
-
Builder method for the
SessionCorrelation.disableSessionCorrelation()
operation. - withEnableRequestCorrelation() - Method in interface org.refcodes.runtime.RequestCorrelation
-
Builder method for the
RequestCorrelation.enableRequestCorrelation()
operation. - withEnableSessionCorrelation() - Method in interface org.refcodes.runtime.SessionCorrelation
-
Builder method for the
SessionCorrelation.enableSessionCorrelation()
operation. - withKey(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
- withObject(Object) - Method in class org.refcodes.runtime.DumpBuilderImpl
- withRequestCorrelation(boolean) - Method in interface org.refcodes.runtime.RequestCorrelation
-
Builder method for the
RequestCorrelation.setRequestCorrelation(boolean)
operation. - withSessionCorrelation(boolean) - Method in interface org.refcodes.runtime.SessionCorrelation
-
Builder method for the
SessionCorrelation.setSessionCorrelation(boolean)
operation.