Index

A B C D E F G H I J K L M N O P Q R S T U V W Z 
All Classes and Interfaces|All Packages|Constant Field Values

A

AbstractHandler - Class in eu.cloudnetservice.common.log
An abstract handler implementation which only requires the extending class to overwrite publish instead of implementing the (mostly) unused methods flush and close as well.
AbstractHandler() - Constructor for class eu.cloudnetservice.common.log.AbstractHandler
 
ACCEPTING_FILTER - Static variable in class eu.cloudnetservice.common.io.FileUtil
 
AcceptingLogHandler - Class in eu.cloudnetservice.common.log.defaults
A log handler which automatically formats the given log record and notifies the provided message handler.
AcceptingLogHandler(Consumer<String>) - Constructor for class eu.cloudnetservice.common.log.defaults.AcceptingLogHandler
Constructs a new accepting log handler instance.
addHandler(Handler) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
addLanguageFile(String, InputStream, ClassLoader) - Static method in class eu.cloudnetservice.common.language.I18n
Registers the language properties file which must be loadable from the given stream to the given language and loader source.
addLanguageFile(String, Path, ClassLoader) - Static method in class eu.cloudnetservice.common.language.I18n
Registers the language properties file at the given path to the given language and loader source.
addLanguageFile(String, Properties, ClassLoader) - Static method in class eu.cloudnetservice.common.language.I18n
Registers the language properties file to the given language and loader source.
anyMatch(Collection<? extends Named>, String) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Checks if any of the given values matches the given regex.
anyMatch(Collection<? extends Named>, String, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Checks if any of the given values matches the given regex.
atOrAbove() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Checks if the version of the current java runtime is at least this java version.

B

build() - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
Constructs a new column formatter instance from the values supplied to this builder.
build() - Method in class eu.cloudnetservice.common.column.RowedFormatter.Builder
Builds a new row based formatter from this builder.
builder() - Static method in class eu.cloudnetservice.common.column.ColumnFormatter
Constructs a new builder for a colum formatter.
builder() - Static method in record class eu.cloudnetservice.common.column.RowedFormatter
Constructs a new builder for a rowed formatter.
Builder() - Constructor for class eu.cloudnetservice.common.column.ColumnFormatter.Builder
 
Builder() - Constructor for class eu.cloudnetservice.common.column.RowedFormatter.Builder
 

C

callable - Variable in class eu.cloudnetservice.common.concurrent.ListenableTask
 
classFileVersion - Variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
 
classFileVersion() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Get the class file version number of this java version.
close() - Method in class eu.cloudnetservice.common.io.ListenableOutputStream
Calls the given close listener and then closes the wrapped output stream, rethrowing any exception that was thrown by either of these two actions.
close() - Method in class eu.cloudnetservice.common.log.AbstractHandler
closeListener - Variable in class eu.cloudnetservice.common.io.ListenableOutputStream
 
closeWithLineSeparator - Variable in class eu.cloudnetservice.common.log.defaults.DefaultLogFormatter
 
column(Function<T, Object>) - Method in class eu.cloudnetservice.common.column.RowedFormatter.Builder
Sets the extractor function for the next column.
ColumnEntry - Record Class in eu.cloudnetservice.common.column
Represents a column in a table view.
ColumnEntry(int, String[]) - Constructor for record class eu.cloudnetservice.common.column.ColumnEntry
Creates an instance of a ColumnEntry record class.
ColumnFormatter - Class in eu.cloudnetservice.common.column
A formatter that is highly customizable to build tables from columns.
ColumnFormatter(String, String, char, char, char, String[]) - Constructor for class eu.cloudnetservice.common.column.ColumnFormatter
Constructs a new column formatter instance.
ColumnFormatter.Builder - Class in eu.cloudnetservice.common.column
A builder for a column formatter.
columnLeftBracket - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
 
columnLeftBracket - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
 
columnLeftBracket(char) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
Sets the left bracket to apply to the column.
columnMinLength - Variable in record class eu.cloudnetservice.common.column.ColumnEntry
The field for the columnMinLength record component.
columnMinLength() - Method in record class eu.cloudnetservice.common.column.ColumnEntry
Returns the value of the columnMinLength record component.
columnRightBracket - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
 
columnRightBracket - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
 
columnRightBracket(char) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
Sets the right bracket to apply to the column.
columns - Variable in class eu.cloudnetservice.common.column.RowedFormatter.Builder
 
columns - Variable in record class eu.cloudnetservice.common.column.RowedFormatter
The field for the columns record component.
columns() - Method in record class eu.cloudnetservice.common.column.RowedFormatter
Returns the value of the columns record component.
columns(List<Function<T, Object>>) - Method in class eu.cloudnetservice.common.column.RowedFormatter.Builder
Sets the extractor functions for all columns.
columnTitles - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
 
columnTitles - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
 
columnTitles(String...) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
Sets the column titles to use for the table.
columnTitles(List<String>) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
Sets the column titles to use for the table.
completedTask(Object) - Static method in class eu.cloudnetservice.common.concurrent.Task
Creates a new task that already has a defined result.
config(String, Throwable, Object...) - Method in class eu.cloudnetservice.common.log.Logger
Logs the given message using the config level.
convertBytesToMb(long) - Static method in class eu.cloudnetservice.common.resource.ResourceFormatter
Converts the given byte count to a megabyte value.
convertToColumns(Collection<T>) - Method in record class eu.cloudnetservice.common.column.RowedFormatter
Converts the given input data into columns to prepare them to be converted into a table.
convertToColumns(T...) - Method in record class eu.cloudnetservice.common.column.RowedFormatter
Converts the given input data into columns to prepare them to be converted into a table.
convertToPercentage(double) - Static method in class eu.cloudnetservice.common.resource.ResourceFormatter
Converts the given double value into a percentage.
copy(Path, Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
Copies the source file to the given destination.
copy(InputStream, OutputStream) - Static method in class eu.cloudnetservice.common.io.FileUtil
Copies the input stream to the output stream.
copy(InputStream, Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
Copies the input stream to given target path.
copyDirectory(Path, Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
Copies the target directory to the given destination and creates all needed parent directories.
copyDirectory(Path, Path, DirectoryStream.Filter<Path>) - Static method in class eu.cloudnetservice.common.io.FileUtil
Copies the target directory to the given destination and creates all needed parent directories.
count - Variable in class eu.cloudnetservice.common.concurrent.CountingTask
 
count() - Method in class eu.cloudnetservice.common.concurrent.CountingTask
Gets the current count of this task.
countDown() - Method in class eu.cloudnetservice.common.concurrent.CountingTask
Decrements the count of this task by one and publishes the count change.
CountingTask<V> - Class in eu.cloudnetservice.common.concurrent
The counting task is a task that starts at a specified count and is capable of counting both up and down.
CountingTask(V, int) - Constructor for class eu.cloudnetservice.common.concurrent.CountingTask
Constructs a new counting task with a starting count and a value to complete after counting to 0.
countTo(int) - Method in class eu.cloudnetservice.common.concurrent.CountingTask
Sets the count of this counting task to the given one and publishes the count change.
countUp() - Method in class eu.cloudnetservice.common.concurrent.CountingTask
Increments the count of this task by one and publishes the count change.
CpuUsageResolver - Class in eu.cloudnetservice.common.resource
A utility class to resolve the usage of the host system CPU.
CpuUsageResolver() - Constructor for class eu.cloudnetservice.common.resource.CpuUsageResolver
 
createDirectory(Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
Creates all needed parent directories and the given directory only if the given path does not exist already.
createdLoggers - Variable in class eu.cloudnetservice.common.log.FallbackLoggerFactory
 
createTempFile() - Static method in class eu.cloudnetservice.common.io.FileUtil
Resolves a random path in the temp directory of the cloud and creates all needed parents directories for a temporary file including the FileUtil.TEMP_DIR.
CURRENT_LANGUAGE - Static variable in class eu.cloudnetservice.common.language.I18n
 

D

DATE_TIME_FORMATTER - Static variable in class eu.cloudnetservice.common.log.defaults.DefaultLogFormatter
 
DECIMAL_FORMAT_2DIGIT_PRECISION - Static variable in class eu.cloudnetservice.common.resource.ResourceFormatter
 
DEFAULT_ALPHABET_UPPERCASE - Static variable in class eu.cloudnetservice.common.util.StringUtil
 
DEFAULT_AUTO_FLUSH - Static variable in class eu.cloudnetservice.common.log.io.LogOutputStream
 
DEFAULT_CHARSET - Static variable in class eu.cloudnetservice.common.log.io.LogOutputStream
 
DEFAULT_COUNT - Static variable in class eu.cloudnetservice.common.log.defaults.DefaultFileHandler
 
DEFAULT_LIMIT - Static variable in class eu.cloudnetservice.common.log.defaults.DefaultFileHandler
 
DefaultFileHandler - Class in eu.cloudnetservice.common.log.defaults
Represents the default file handler implementation of CloudNet, allowing more precise configuration of the resulting log files which are created and then written to.
DefaultFileHandler(String, int, int, boolean) - Constructor for class eu.cloudnetservice.common.log.defaults.DefaultFileHandler
Constructs a new default file handler instance.
defaultFormatter - Variable in class eu.cloudnetservice.common.column.RowedFormatter.Builder
 
defaultFormatter - Variable in record class eu.cloudnetservice.common.column.RowedFormatter
The field for the defaultFormatter record component.
defaultFormatter() - Method in record class eu.cloudnetservice.common.column.RowedFormatter
Returns the value of the defaultFormatter record component.
defaultFormatter(ColumnFormatter) - Method in class eu.cloudnetservice.common.column.RowedFormatter.Builder
Sets the default formatter for the columns.
DefaultLogFormatter - Class in eu.cloudnetservice.common.log.defaults
The default log formatter which prints out console messages plain without any special coloring.
DefaultLogFormatter(boolean) - Constructor for class eu.cloudnetservice.common.log.defaults.DefaultLogFormatter
Constructs a new default log formatter instance.
defaultLogLevel() - Static method in class eu.cloudnetservice.common.log.LoggingUtil
Gets the default log level configured for the CloudNet runtime using the cloudnet.logging.defaultlevel system property.
delete(Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
Deletes the file or directory at the given path.
dispatchRecord(Logger, LogRecord) - Method in class eu.cloudnetservice.common.log.defaults.ThreadedLogRecordDispatcher
Called when a log record needs to be dispatched for a logger.
dispatchRecord(Logger, LogRecord) - Method in interface eu.cloudnetservice.common.log.LogRecordDispatcher
Called when a log record needs to be dispatched for a logger.
displayName - Variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
 
displayName() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Get the display name of this java version.

E

END_CLEAN - Static variable in class eu.cloudnetservice.common.log.defaults.DefaultLogFormatter
An instance of the log formatter which does not append a line separator at the end of the formatting.
END_LINE_SEPARATOR - Static variable in class eu.cloudnetservice.common.log.defaults.DefaultLogFormatter
An instance of the log formatter which appends a line separator at the end of the formatting.
endsWithIgnoreCase(String, String) - Static method in class eu.cloudnetservice.common.util.StringUtil
Checks if the given string ends with the given suffix ignoring the string casing.
ensureChild(Path, Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
Ensures that the given child path is a child path of the given root path and throwing an exception otherwise.
ensureSafeZipEntryName(String) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Ensures that the given name does not contain any characters that might lead to path traversal or other malicious behavior.
Entry(ClassLoader, Map<String, ThreadLocal<MessageFormat>>) - Constructor for record class eu.cloudnetservice.common.language.I18n.Entry
Creates an instance of a Entry record class.
ENTRY_FORMAT - Static variable in class eu.cloudnetservice.common.column.ColumnFormatter
 
equals(Object) - Method in record class eu.cloudnetservice.common.column.ColumnEntry
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class eu.cloudnetservice.common.column.RowedFormatter
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class eu.cloudnetservice.common.language.I18n.Entry
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class eu.cloudnetservice.common.tuple.Tuple2
Indicates whether some other object is "equal to" this one.
eu.cloudnetservice.common - package eu.cloudnetservice.common
 
eu.cloudnetservice.common.column - package eu.cloudnetservice.common.column
 
eu.cloudnetservice.common.concurrent - package eu.cloudnetservice.common.concurrent
 
eu.cloudnetservice.common.hash - package eu.cloudnetservice.common.hash
 
eu.cloudnetservice.common.io - package eu.cloudnetservice.common.io
 
eu.cloudnetservice.common.jvm - package eu.cloudnetservice.common.jvm
 
eu.cloudnetservice.common.language - package eu.cloudnetservice.common.language
 
eu.cloudnetservice.common.log - package eu.cloudnetservice.common.log
 
eu.cloudnetservice.common.log.defaults - package eu.cloudnetservice.common.log.defaults
 
eu.cloudnetservice.common.log.io - package eu.cloudnetservice.common.log.io
 
eu.cloudnetservice.common.resource - package eu.cloudnetservice.common.resource
 
eu.cloudnetservice.common.tuple - package eu.cloudnetservice.common.tuple
 
eu.cloudnetservice.common.util - package eu.cloudnetservice.common.util
 
extract(InputStream, Path) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Extracts all entries from the given input stream to the given target directory while catching all occurring exceptions and redirecting them into the debug log.
extract(Path, Path) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Extracts all entries from the zip file at the given zip path to the given target directory while catching all occurring exceptions and redirecting them into the debug log.
extractEntry(ZipInputStream, ZipEntry, Path) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Extracts the zip entry from the given zip input stream and copies it to the given destination.
extractZipStream(ZipInputStream, Path) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Extracts all entries from the zip stream to the given target directory while catching all occurring exceptions and redirecting them into the debug log.

F

FallbackLoggerFactory - Class in eu.cloudnetservice.common.log
The fallback logger factory which creates the loggers based on java.util.logging loggers which get wrapped into custom loggers.
FallbackLoggerFactory() - Constructor for class eu.cloudnetservice.common.log.FallbackLoggerFactory
 
FallbackPassthroughLogger - Class in eu.cloudnetservice.common.log
A logger instance which wraps a given java.util.logging logger.
FallbackPassthroughLogger(Logger) - Constructor for class eu.cloudnetservice.common.log.FallbackPassthroughLogger
Constructs a new fallback logger instance based on the given java.util.logging logger.
FileUtil - Class in eu.cloudnetservice.common.io
This file utility class wraps convenient non-blocking-io methods that use checked exceptions into methods that catch those exceptions and redirect them into the error log.
FileUtil() - Constructor for class eu.cloudnetservice.common.io.FileUtil
 
filterWildcard(Collection<T>, String) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Filters all values out of the given inputValues which are matching the given pattern.
filterWildcard(Collection<T>, String, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Filters all values out of the given inputValues which are matching the given pattern.
fine(String, Throwable, Object...) - Method in class eu.cloudnetservice.common.log.Logger
Logs the given message using the fine level.
finer(String, Throwable, Object...) - Method in class eu.cloudnetservice.common.log.Logger
Logs the given message using the finer level.
finest(String, Throwable, Object...) - Method in class eu.cloudnetservice.common.log.Logger
Logs the given message using the finest level.
first - Variable in record class eu.cloudnetservice.common.tuple.Tuple2
The field for the first record component.
first() - Method in record class eu.cloudnetservice.common.tuple.Tuple2
Returns the value of the first record component.
fixPattern(String, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Prepares the given regex input by replacing all wildcard characters with pattern-syntax wildcard chars.
fixUnclosedGroups(String, int) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Searches for unclosed group chars based on the given error description.
flush() - Method in class eu.cloudnetservice.common.io.ListenableOutputStream
flush() - Method in class eu.cloudnetservice.common.log.AbstractHandler
flush() - Method in class eu.cloudnetservice.common.log.io.LogOutputStream
flushLock - Variable in class eu.cloudnetservice.common.log.io.LogOutputStream
 
forceLog(LogRecord) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
Force logs the given record by directly flushing it to the underlying handlers.
forceLog(LogRecord) - Method in class eu.cloudnetservice.common.log.Logger
Force logs the given record by directly flushing it to the underlying handlers.
forInformative(Logger) - Static method in class eu.cloudnetservice.common.log.io.LogOutputStream
Creates a new log output stream instance logging all messages to the given logger with the info log level.
forLogger(Logger) - Static method in class eu.cloudnetservice.common.log.defaults.ThreadedLogRecordDispatcher
Creates a new threaded log record dispatcher instance using the given logger as the target and formatting the default thread name format using the given loggers name.
format(Collection<T>) - Method in record class eu.cloudnetservice.common.column.RowedFormatter
Converts the given input data into a formatted table using the default formatter given to this formatter.
format(LogRecord) - Method in class eu.cloudnetservice.common.log.defaults.DefaultLogFormatter
format(T...) - Method in record class eu.cloudnetservice.common.column.RowedFormatter
Converts the given input data into a formatted table using the default formatter given to this formatter.
formatLines(ColumnEntry...) - Method in class eu.cloudnetservice.common.column.ColumnFormatter
Formats the given column entries into a table based on the formatter configuration.
formattedColumnTitles - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
 
formattedEntries - Variable in record class eu.cloudnetservice.common.column.ColumnEntry
The field for the formattedEntries record component.
formattedEntries() - Method in record class eu.cloudnetservice.common.column.ColumnEntry
Returns the value of the formattedEntries record component.
formatTwoDigitPrecision(double) - Static method in class eu.cloudnetservice.common.resource.ResourceFormatter
Formats the given double value with a two digit precision after the decimal point.
forSevere(Logger) - Static method in class eu.cloudnetservice.common.log.io.LogOutputStream
Creates a new log output stream instance logging all messages to the given logger with the severe log level.
fromClassFileVersion(double) - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Finds the java version enum constant that is representing the given class file version.
fromMajor(int) - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Finds the exact known java version from the given major version.

G

generateRandomString(int) - Static method in class eu.cloudnetservice.common.util.StringUtil
Generates a random string consisting of uppercase characters and digits with the provided length.
get(long, TimeUnit, V) - Method in class eu.cloudnetservice.common.concurrent.Task
This blocks the calling thread until the result of the task is available.
getDef(V) - Method in class eu.cloudnetservice.common.concurrent.Task
This blocks the calling thread until the result of the task is available.
getFilter() - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
getHandlers() - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
getLevel() - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
getOrNull() - Method in class eu.cloudnetservice.common.concurrent.Task
This blocks the calling thread until the result of the task is available.
getParent() - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
getResourceBundle() - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
getResourceBundleName() - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
getUseParentHandlers() - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
GROUP_CHARS - Static variable in class eu.cloudnetservice.common.util.WildcardUtil
 
guessFromMajor(int) - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Guesses the java version from the given major version, returning either JavaVersion.JAVA_NEXT or JavaVersion.JAVA_UNSUPPORTED in case no known version uses the given major version.

H

handler - Variable in class eu.cloudnetservice.common.log.defaults.AcceptingLogHandler
 
hashCode() - Method in record class eu.cloudnetservice.common.column.ColumnEntry
Returns a hash code value for this object.
hashCode() - Method in record class eu.cloudnetservice.common.column.RowedFormatter
Returns a hash code value for this object.
hashCode() - Method in record class eu.cloudnetservice.common.language.I18n.Entry
Returns a hash code value for this object.
hashCode() - Method in record class eu.cloudnetservice.common.tuple.Tuple2
Returns a hash code value for this object.
HashUtil - Class in eu.cloudnetservice.common.hash
Deprecated, for removal: This API element is subject to removal in a future version.
for removal in a future version, do not use.
HashUtil() - Constructor for class eu.cloudnetservice.common.hash.HashUtil
Deprecated.
 
headerValuesSpacerChar - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
 
headerValuesSpacerChar - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
 
headerValuesSpacerChar(char) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
Sets the spacer character to apply between the header of a table and the table values.

I

I18n - Class in eu.cloudnetservice.common.language
The main entry point for localization made in the CloudNet system.
I18n() - Constructor for class eu.cloudnetservice.common.language.I18n
 
I18n.Entry - Record Class in eu.cloudnetservice.common.language
A registered entry in this registry mapping the loader source and all messages of it.
info(String, Throwable, Object...) - Method in class eu.cloudnetservice.common.log.Logger
Logs the given message using the info level.
IS_WINDOWS - Static variable in class eu.cloudnetservice.common.io.ZipUtil
 
isInRange(JavaVersion, JavaVersion) - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Checks if this java version is newer or at the given lower bound and older or at the given upper bound.
isLoggable(Level) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
isNewerOrAt(JavaVersion) - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Checks if this java version is newer or at the given other version.
isOlderOrAt(JavaVersion) - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Checks if this java version is older or at the given other version.
isPartOfPattern(char[], int) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Checks if the current content index is part of the pattern or escaped.

J

JAR_FILE_SYSTEM_PROVIDER - Static variable in class eu.cloudnetservice.common.io.FileUtil
 
JAVA_10 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 10.
JAVA_11 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 11 (LTS).
JAVA_12 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 12.
JAVA_13 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 13.
JAVA_14 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 14.
JAVA_15 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 15.
JAVA_16 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 16.
JAVA_17 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 17 (LTS).
JAVA_18 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 18.
JAVA_19 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 19.
JAVA_20 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 20.
JAVA_21 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 21 (LTS).
JAVA_8 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 8 (LTS).
JAVA_9 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Java version 9.
JAVA_NEXT - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Represents all java versions after the latest known release in this list.
JAVA_UNSUPPORTED - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
Represents all java version before 8.
JAVA_VERSIONS - Static variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
 
JavaVersion - Enum Class in eu.cloudnetservice.common.jvm
An enumeration of all java versions starting from 8.
JavaVersion(int, double, String) - Constructor for enum class eu.cloudnetservice.common.jvm.JavaVersion
Constructs a new java version constant.

K

knownLanguages() - Static method in class eu.cloudnetservice.common.language.I18n
Gets all the names of the known languages to this translation manager.

L

language() - Static method in class eu.cloudnetservice.common.language.I18n
Get the current language to which each message will be translated.
language(String) - Static method in class eu.cloudnetservice.common.language.I18n
Sets the current message to which all messages should get translated.
languageEntries - Variable in record class eu.cloudnetservice.common.language.I18n.Entry
The field for the languageEntries record component.
languageEntries() - Method in record class eu.cloudnetservice.common.language.I18n.Entry
Returns the value of the languageEntries record component.
LATEST_VERSION - Static variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
 
leftSpacer - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
 
leftSpacer - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
 
leftSpacer(String) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
Sets the left spacer to apply to the column.
level - Variable in class eu.cloudnetservice.common.log.io.LogOutputStream
 
ListenableOutputStream<O extends OutputStream> - Class in eu.cloudnetservice.common.io
An output stream implementation that holds a listener to call when the stream gets closed.
ListenableOutputStream(O, CheckedConsumer<O>) - Constructor for class eu.cloudnetservice.common.io.ListenableOutputStream
Constructs a new listenable output stream using the given stream as the target and the given close listener to call when the stream gets closed.
ListenableTask<V> - Class in eu.cloudnetservice.common.concurrent
The listenable task is a task that is allowed to be executed over and over again.
ListenableTask(Callable<V>) - Constructor for class eu.cloudnetservice.common.concurrent.ListenableTask
Constructs a new listenable task with the given callable
loadFromLangPath(Class<?>) - Static method in class eu.cloudnetservice.common.language.I18n
Loads all language files which are located in the jar at given class source and registers them to the loader of the given class.
loadLoggerFactory() - Static method in class eu.cloudnetservice.common.log.LogManager
Selects the logger factory use.
log(Level, String, Throwable, Object...) - Method in class eu.cloudnetservice.common.log.Logger
Logs the given message using the provided level.
log(LogRecord) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
logger - Variable in class eu.cloudnetservice.common.log.defaults.ThreadedLogRecordDispatcher
 
logger - Variable in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
 
logger - Variable in class eu.cloudnetservice.common.log.io.LogOutputStream
 
logger(Class<?>) - Static method in class eu.cloudnetservice.common.log.LogManager
Gets a logger from the current logger factory which has the name of the given class.
logger(String) - Method in class eu.cloudnetservice.common.log.FallbackLoggerFactory
Gets or creates a logger with the given name.
logger(String) - Method in interface eu.cloudnetservice.common.log.LoggerFactory
Gets or creates a logger with the given name.
logger(String) - Static method in class eu.cloudnetservice.common.log.LogManager
Gets a logger from the current logger factory which has the given name.
Logger - Class in eu.cloudnetservice.common.log
Represents the logger which is used withing CloudNet.
Logger(String, String) - Constructor for class eu.cloudnetservice.common.log.Logger
Constructs a new logger instance.
LOGGER - Static variable in class eu.cloudnetservice.common.io.FileUtil
 
LOGGER - Static variable in class eu.cloudnetservice.common.io.ZipUtil
 
LOGGER - Static variable in class eu.cloudnetservice.common.language.I18n
 
LOGGER_FACTORY - Static variable in class eu.cloudnetservice.common.log.LogManager
 
loggerFactory() - Static method in class eu.cloudnetservice.common.log.LogManager
Gets the current logger factory which the system uses.
LoggerFactory - Interface in eu.cloudnetservice.common.log
A factory for logger objects.
LoggingUtil - Class in eu.cloudnetservice.common.log
Holds some utility methods to work with loggers.
LoggingUtil() - Constructor for class eu.cloudnetservice.common.log.LoggingUtil
 
LogManager - Class in eu.cloudnetservice.common.log
The log manager provides static access to underlying api to shortcut logger creation methods for easier accessibility.
LogManager() - Constructor for class eu.cloudnetservice.common.log.LogManager
 
LogOutputStream - Class in eu.cloudnetservice.common.log.io
A special implementation of an output stream specifically made to log all the written content to it to a provided logger instance.
LogOutputStream(Level, Logger) - Constructor for class eu.cloudnetservice.common.log.io.LogOutputStream
Creates a new log output stream instance.
logRecordDispatcher - Variable in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
 
logRecordDispatcher() - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
Get the log record dispatcher used by this logger.
logRecordDispatcher() - Method in class eu.cloudnetservice.common.log.Logger
Get the log record dispatcher used by this logger.
logRecordDispatcher(LogRecordDispatcher) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
Sets the log record dispatcher.
logRecordDispatcher(LogRecordDispatcher) - Method in class eu.cloudnetservice.common.log.Logger
Sets the log record dispatcher.
LogRecordDispatcher - Interface in eu.cloudnetservice.common.log
Represents a dispatcher for log records.

M

majorVersion - Variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
 
majorVersion() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Returns the major version number of this java version.
mapZipFile(Path, CheckedFunction1<FileSystem, T>, T) - Static method in class eu.cloudnetservice.common.io.FileUtil
Opens the given zip into a FileSystem and passes it into the given function.
matches(String, Pattern, Named, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Tries to match the given data name using the compiled pattern, falling back to a direct equal check if the given compiled pattern is null.
MESSAGE_FORMAT - Static variable in class eu.cloudnetservice.common.language.I18n
 
move(Path, Path, CopyOption...) - Static method in class eu.cloudnetservice.common.io.FileUtil
Moves the file at the source path to the given destination path.

N

name() - Method in interface eu.cloudnetservice.common.Named
Get the unique name identifier of this object in the related scope.
Named - Interface in eu.cloudnetservice.common
Identifies that the object implementing this interface can be identified using the name supplied by the Named.name() method.
newInstance(Logger, String) - Static method in class eu.cloudnetservice.common.log.defaults.ThreadedLogRecordDispatcher
Creates a new threaded log record dispatcher instance using the given logger as the target and the given thread name.
newInstance(Logger, Level) - Static method in class eu.cloudnetservice.common.log.io.LogOutputStream
Creates a new log output stream instance logging all messages to the given logger using the given log level.
newInstance(String, boolean) - Static method in class eu.cloudnetservice.common.log.defaults.DefaultFileHandler
Constructs a new file handler using the given file name pattern and append settings.
newInstance(String, int, int, boolean) - Static method in class eu.cloudnetservice.common.log.defaults.DefaultFileHandler
Constructs a new file handler using the given file name pattern, limit, count and append settings.
newInstance(Path, boolean) - Static method in class eu.cloudnetservice.common.log.defaults.DefaultFileHandler
Constructs a new file handler using the given file name pattern and append settings.
newInstance(Path, int, int, boolean) - Static method in class eu.cloudnetservice.common.log.defaults.DefaultFileHandler
Constructs a new file handler using the given file name pattern, limit, count and append settings.
newInstance(Consumer<String>) - Static method in class eu.cloudnetservice.common.log.defaults.AcceptingLogHandler
Constructs a new accepting log handler instance.

O

ONE_MB_IN_BYTES - Static variable in class eu.cloudnetservice.common.resource.ResourceFormatter
 
openZipFile(Path, CheckedConsumer<FileSystem>) - Static method in class eu.cloudnetservice.common.io.FileUtil
Opens the given zip into a FileSystem and passes it into the given consumer.
OS_BEAN - Static variable in class eu.cloudnetservice.common.resource.CpuUsageResolver
 

P

printStackTraceInto(StringBuilder, LogRecord) - Static method in class eu.cloudnetservice.common.log.LoggingUtil
Prints the throwable of the log record into the given string builder.
processCpuLoad() - Static method in class eu.cloudnetservice.common.resource.CpuUsageResolver
Reads the process cpu usage for the current jvm process and converts the returned value into a percentage.
publish(LogRecord) - Method in class eu.cloudnetservice.common.log.defaults.AcceptingLogHandler
publishCountChange() - Method in class eu.cloudnetservice.common.concurrent.CountingTask
Checks if the count of this task is 0 or less if that is the case this task is completed with its result value.

Q

queue - Variable in class eu.cloudnetservice.common.log.defaults.ThreadedLogRecordDispatcher
 

R

REGISTERED_ENTRIES - Static variable in class eu.cloudnetservice.common.language.I18n
 
removeHandler(Handler) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
removeHandlers(Logger) - Static method in class eu.cloudnetservice.common.log.LoggingUtil
Removes all registered handlers from the given logger.
repeat(char, int) - Static method in class eu.cloudnetservice.common.util.StringUtil
Repeats the given character the given amount times and returns a string consisting of the reputation result.
resolve(Path, String...) - Static method in class eu.cloudnetservice.common.io.FileUtil
Resolves the given array for the base path and returns the final path after all children are resolved one after another.
resolveActualJavaVersions() - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Constructs an array of the java versions that are actually usable in the runtime (this excludes the unsupported and next constants).
resolveCodeSourceOfClass(Class<?>) - Static method in class eu.cloudnetservice.common.resource.ResourceResolver
Resolves the parent location of the given class on the file system or on the class path.
resolveError(Class<?>, String) - Static method in class eu.cloudnetservice.common.resource.ResourceResolver
Constructs a new, unified illegal state exception that can be thrown to indicate that there was some error resolving the URI of a class.
resolveRuntimeVersion() - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Resolves the runtime version of the current jvm.
ResourceFormatter - Class in eu.cloudnetservice.common.resource
A small utility class to convert resource values between different formats.
ResourceFormatter() - Constructor for class eu.cloudnetservice.common.resource.ResourceFormatter
 
ResourceResolver - Class in eu.cloudnetservice.common.resource
A utility class to resolve the location of class resource on the class path or file system.
ResourceResolver() - Constructor for class eu.cloudnetservice.common.resource.ResourceResolver
 
resultValue - Variable in class eu.cloudnetservice.common.concurrent.CountingTask
 
rightSpacer - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
 
rightSpacer - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
 
rightSpacer(String) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
Sets the right spacer to apply to the column.
ROOT_LOGGER_NAME - Static variable in interface eu.cloudnetservice.common.log.LoggerFactory
The name of the root logger used by the system.
rootLogger() - Static method in class eu.cloudnetservice.common.log.LogManager
Gets the root logger for the system from the currently used logger factory.
RowedFormatter<T> - Record Class in eu.cloudnetservice.common.column
A formatter for rows based on columns.
RowedFormatter(ColumnFormatter, List<Function<T, Object>>) - Constructor for record class eu.cloudnetservice.common.column.RowedFormatter
Creates an instance of a RowedFormatter record class.
RowedFormatter.Builder<T> - Class in eu.cloudnetservice.common.column
A builder that can be used to construct a new row based formatter.
run() - Method in class eu.cloudnetservice.common.log.defaults.ThreadedLogRecordDispatcher
run(boolean) - Method in class eu.cloudnetservice.common.concurrent.ListenableTask
Runs the callable provided to this listenable task.
RUNTIME_VERSION - Static variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
 
runtimeVersion() - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Get the java version enum constant representing the current runtime version.

S

second - Variable in record class eu.cloudnetservice.common.tuple.Tuple2
The field for the second record component.
second() - Method in record class eu.cloudnetservice.common.tuple.Tuple2
Returns the value of the second record component.
SECURE_RANDOM - Static variable in class eu.cloudnetservice.common.util.StringUtil
 
SERVICE - Static variable in class eu.cloudnetservice.common.concurrent.Task
 
setFilter(Filter) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
setLevel(Level) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
setParent(Logger) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
setResourceBundle(ResourceBundle) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
setUseParentHandlers(boolean) - Method in class eu.cloudnetservice.common.log.FallbackPassthroughLogger
severe(String, Throwable, Object...) - Method in class eu.cloudnetservice.common.log.Logger
Logs the given message using the severe level.
source - Variable in record class eu.cloudnetservice.common.language.I18n.Entry
The field for the source record component.
source() - Method in record class eu.cloudnetservice.common.language.I18n.Entry
Returns the value of the source record component.
startsWithIgnoreCase(String, String) - Static method in class eu.cloudnetservice.common.util.StringUtil
Checks if the given string starts with the given prefix ignoring the string casing.
state - Variable in class eu.cloudnetservice.common.concurrent.ListenableTask
 
STATE_DONE - Static variable in class eu.cloudnetservice.common.concurrent.ListenableTask
 
STATE_NEW - Static variable in class eu.cloudnetservice.common.concurrent.ListenableTask
 
STATE_RUN - Static variable in class eu.cloudnetservice.common.concurrent.ListenableTask
 
StringUtil - Class in eu.cloudnetservice.common.util
Utility class for working with strings.
StringUtil() - Constructor for class eu.cloudnetservice.common.util.StringUtil
 
supply(Runnable) - Static method in class eu.cloudnetservice.common.concurrent.Task
Supplies and executes the given runnable in a cached thread pool and wraps it into a task.
supply(Callable<V>) - Static method in class eu.cloudnetservice.common.concurrent.Task
Supplies the given supplier into the cached thread pool.
supported() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Checks if this java version constant is actually supported.
systemCpuLoad() - Static method in class eu.cloudnetservice.common.resource.CpuUsageResolver
Reads the current system cpu usage and converts the returned value into a percentage.

T

Task<V> - Class in eu.cloudnetservice.common.concurrent
This task is a Future which can be completed at any time in the future and provides some useful shortcuts for completable futures.
Task() - Constructor for class eu.cloudnetservice.common.concurrent.Task
 
TEMP_DIR - Static variable in class eu.cloudnetservice.common.io.FileUtil
 
THREAD_NAME_FORMAT - Static variable in class eu.cloudnetservice.common.log.defaults.ThreadedLogRecordDispatcher
 
ThreadedLogRecordDispatcher - Class in eu.cloudnetservice.common.log.defaults
A log record dispatcher which dispatches requested log records on a single thread one at a time.
ThreadedLogRecordDispatcher(Logger, String) - Constructor for class eu.cloudnetservice.common.log.defaults.ThreadedLogRecordDispatcher
Constructs a new threaded log record dispatcher instance.
toLower(String) - Static method in class eu.cloudnetservice.common.util.StringUtil
Converts all the characters in the given string to lower case using a locale insensitive operation.
toPrintStream() - Method in class eu.cloudnetservice.common.log.io.LogOutputStream
Wraps this log output stream into a print stream which automatically flushes and uses the UTF-8 charset encoding.
toPrintStream(boolean, Charset) - Method in class eu.cloudnetservice.common.log.io.LogOutputStream
Wraps this log output stream in a print stream using the given auto flush and charset settings.
toSha256(byte[]) - Static method in class eu.cloudnetservice.common.hash.HashUtil
Deprecated.
 
toSha256(String) - Static method in class eu.cloudnetservice.common.hash.HashUtil
Deprecated.
 
toString() - Method in record class eu.cloudnetservice.common.column.ColumnEntry
Returns a string representation of this record class.
toString() - Method in record class eu.cloudnetservice.common.column.RowedFormatter
Returns a string representation of this record class.
toString() - Method in record class eu.cloudnetservice.common.language.I18n.Entry
Returns a string representation of this record class.
toString() - Method in record class eu.cloudnetservice.common.tuple.Tuple2
Returns a string representation of this record class.
toUpper(String) - Static method in class eu.cloudnetservice.common.util.StringUtil
Converts all the characters in the given string to upper case using a locale insensitive operation.This method returns null in case the given string is null.
trans(String, Object...) - Static method in class eu.cloudnetservice.common.language.I18n
Tries to translate the given message key using all currently registered language files for the language this registry currently uses.
tryCompile(String, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Compiles the given pattern string and (when needed) tries to automatically fix syntax errors in it.
tryFixPattern(PatternSyntaxException, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
Tries to automatically fix a pattern based on the given exception.
tryTranslate(String, Object...) - Method in record class eu.cloudnetservice.common.language.I18n.Entry
Tries to translate the given key and formats it with the given arguments.
Tuple2<F,S> - Record Class in eu.cloudnetservice.common.tuple
A pair consisting of two elements: the first and second one.
Tuple2(F, S) - Constructor for record class eu.cloudnetservice.common.tuple.Tuple2
Creates an instance of a Tuple2 record class.

U

unregisterLanguageFiles(ClassLoader) - Static method in class eu.cloudnetservice.common.language.I18n
Unregisters all language files which were registered by providing the given class loader.

V

valueOf(String) - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Returns the enum constant of this class with the specified name.
values() - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
Returns an array containing the constants of this enum class, in the order they are declared.

W

walkFileTree(Path, BiConsumer<Path, Path>) - Static method in class eu.cloudnetservice.common.io.FileUtil
Walks the file tree, while visiting directories too, starting at the given path and passes the root directory together with the next file or directory into the bi consumer.
walkFileTree(Path, BiConsumer<Path, Path>, boolean) - Static method in class eu.cloudnetservice.common.io.FileUtil
Walks the file tree, but only visits directories if specified, starting at the given path and passes the root directory together with the next file or directory into the bi consumer.
walkFileTree(Path, BiConsumer<Path, Path>, boolean, String) - Static method in class eu.cloudnetservice.common.io.FileUtil
Walks the file tree while filtering for the given glob and only visiting directories if specified.
walkFileTree(Path, BiConsumer<Path, Path>, boolean, DirectoryStream.Filter<Path>) - Static method in class eu.cloudnetservice.common.io.FileUtil
Walks the file tree while filtering with the given filter and only visiting directories if specified.
warning(String, Throwable, Object...) - Method in class eu.cloudnetservice.common.log.Logger
Logs the given message using the warning level.
WildcardUtil - Class in eu.cloudnetservice.common.util
Small utility class which supports pattern based searching through given input collections and tries to fix mistakes in the given pattern input.
WildcardUtil() - Constructor for class eu.cloudnetservice.common.util.WildcardUtil
 
withFormatter(Formatter) - Method in class eu.cloudnetservice.common.log.defaults.AcceptingLogHandler
Sets the formatter of this handler and returns the same instance as used to call the method, for chaining.
withFormatter(Formatter) - Method in class eu.cloudnetservice.common.log.defaults.DefaultFileHandler
Sets the formatter of this handler and returns the same instance as used to call the method, for chaining.
wrap(String...) - Static method in record class eu.cloudnetservice.common.column.ColumnEntry
Wraps the given entries into a column entry.
wrapFuture(CompletableFuture<V>) - Static method in class eu.cloudnetservice.common.concurrent.Task
Wraps the given completable future into a cloudnet task.
wrapped - Variable in class eu.cloudnetservice.common.io.ListenableOutputStream
 
write(byte[]) - Method in class eu.cloudnetservice.common.io.ListenableOutputStream
write(byte[], int, int) - Method in class eu.cloudnetservice.common.io.ListenableOutputStream
write(int) - Method in class eu.cloudnetservice.common.io.ListenableOutputStream

Z

ZIP_FILE_SYSTEM_PROPERTIES - Static variable in class eu.cloudnetservice.common.io.FileUtil
 
zipDir(ZipOutputStream, Path, Predicate<Path>) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Walks the file tree of the given directory and copies all files and directories that match the filter into the zip output stream.
zipToFile(Path, Path) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Walks the file tree of the given directory and copies all files and directories without any filtering into a new zip output stream at the given target destination.
zipToFile(Path, Path, Predicate<Path>) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Walks the file tree of the given directory and copies all files and directories that match the filter into a new zip output stream at the given target destination.
zipToStream(Path) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Zips the given directory into an input stream without filtering any files and returns it.
zipToStream(Path, Predicate<Path>) - Static method in class eu.cloudnetservice.common.io.ZipUtil
Zips the given directory into a zip input stream while filtering with the given filter and returning the new input stream.
ZipUtil - Class in eu.cloudnetservice.common.io
This zip utility class makes the process of zipping files and directories as well as extracting from zips easier and prevents malicious zip names.
ZipUtil() - Constructor for class eu.cloudnetservice.common.io.ZipUtil
 
A B C D E F G H I J K L M N O P Q R S T U V W Z 
All Classes and Interfaces|All Packages|Constant Field Values