- abortPendingOffers() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Aborts all current callers/threads waiting for a pending offer to be
accepted by the window.
- accept(File) - Method in class com.cloudhopper.commons.util.filefilter.CompositeFileFilter
-
- accept(File) - Method in class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
-
Accepts a File by its file extension.
- accept(File) - Method in class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
-
- accept(File) - Method in class com.cloudhopper.commons.util.filefilter.FileNameEndsWithFilter
-
Accepts a File if its filename endsWith a specific string.
- accept(File) - Method in class com.cloudhopper.commons.util.filefilter.FileNameStartsWithFilter
-
Accepts a File if its filename startsWith a specific string.
- actualValue - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
-
- add(Object, Object) - Method in class com.cloudhopper.commons.util.BeanProperty
-
Adds the property value on the object.
- add(byte) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Adds one byte to the buffer and throws an exception if the buffer is
full.
- add(byte[]) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Adds a byte array to this buffer.
- add(byte[], int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Adds a byte array to this buffer starting from the offset up to the
length requested.
- add(long) - Method in class com.cloudhopper.commons.util.RunningTotal
-
Adds a new value to our running total.
- addBuffer() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
-
Create a new buffer and store the
current one in linked list
- addFirst() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Adds an element to the front of the index if its not full.
- addLast() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Adds an element to the back of the index if its not full.
- addListener(WindowListener<K, R, P>) - Method in class com.cloudhopper.commons.util.windowing.Window
-
Adds a new WindowListener if and only if it isn't already present.
- addOrSet(Object, Object) - Method in class com.cloudhopper.commons.util.BeanProperty
-
Adds or Sets the property value on the object.
- AddressFormatException - Exception in com.cloudhopper.commons.util
-
Thrown when an invalid Address format is used.
- AddressFormatException(String) - Constructor for exception com.cloudhopper.commons.util.AddressFormatException
-
- AddressFormatException(String, Throwable) - Constructor for exception com.cloudhopper.commons.util.AddressFormatException
-
- append(CharSequence) - Method in class com.cloudhopper.commons.util.codec.URLDecoder
-
- append(char) - Method in class com.cloudhopper.commons.util.codec.URLDecoder
-
- append(CharSequence, int, int) - Method in class com.cloudhopper.commons.util.codec.URLDecoder
-
- append(CharSequence) - Method in class com.cloudhopper.commons.util.codec.URLEncoder
-
- append(char) - Method in class com.cloudhopper.commons.util.codec.URLEncoder
-
- append(CharSequence, int, int) - Method in class com.cloudhopper.commons.util.codec.URLEncoder
-
- appendHexString(StringBuilder, byte[]) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Appends a byte array to a StringBuilder with each byte in a "Big Endian"
hexidecimal format.
- appendHexString(StringBuilder, byte[], int, int) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Appends a byte array to a StringBuilder with each byte in a "Big Endian"
hexidecimal format.
- appendHexString(StringBuilder, byte) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Appends 2 characters to a StringBuilder with the byte in a "Big Endian"
hexidecimal format.
- appendHexString(StringBuilder, short) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Appends 4 characters to a StringBuilder with the short in a "Big Endian"
hexidecimal format.
- appendHexString(StringBuilder, int) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Appends 8 characters to a StringBuilder with the int in a "Big Endian"
hexidecimal format.
- appendHexString(StringBuilder, long) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Appends 16 characters to a StringBuilder with the long in a "Big Endian"
hexidecimal format.
- asBytes() - Method in class com.cloudhopper.commons.util.HexString
-
N.B.
- assertValidGetKey(String) - Static method in class com.cloudhopper.commons.util.DigitLookupMap
-
- assertValidGetKey(String) - Static method in class com.cloudhopper.commons.util.StringLookupMap
-
- assertValidKey(String) - Static method in class com.cloudhopper.commons.util.DigitLookupMap
-
- assertValidKey(String) - Static method in class com.cloudhopper.commons.util.StringLookupMap
-
- assertValidPutKey(String) - Static method in class com.cloudhopper.commons.util.DigitLookupMap
-
- assertValidPutKey(String) - Static method in class com.cloudhopper.commons.util.StringLookupMap
-
- asString() - Method in class com.cloudhopper.commons.util.HexString
-
- await() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- await(long) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- await() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Waits for this future to be completed within the amount of time remaining
from the original offerTimeoutMillis minus the amount of time it took
for the Window to accept the offer.
- await(long) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Waits for this future to be completed within the specified time limit.
- Base64Codec - Class in com.cloudhopper.commons.util.codec
-
Code originally copied from the OpenDS Java project.
- bb - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
-
- bb - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
-
- BeanProperty - Class in com.cloudhopper.commons.util
-
Represents a "bean" property for a class.
- BeanProperty(String, Class, Field) - Constructor for class com.cloudhopper.commons.util.BeanProperty
-
- BeanUtil - Class in com.cloudhopper.commons.util
-
This class implements utilities for working with classes.
- BeanUtil() - Constructor for class com.cloudhopper.commons.util.BeanUtil
-
- BufferException - Exception in com.cloudhopper.commons.util
-
- BufferException() - Constructor for exception com.cloudhopper.commons.util.BufferException
-
Creates a new instance of BufferException without detail message.
- BufferException(String) - Constructor for exception com.cloudhopper.commons.util.BufferException
-
Constructs an instance of BufferException with the specified detail message.
- BufferIsEmptyException - Exception in com.cloudhopper.commons.util
-
- BufferIsEmptyException() - Constructor for exception com.cloudhopper.commons.util.BufferIsEmptyException
-
Creates a new instance of BufferIsEmptyException without detail message.
- BufferIsEmptyException(String) - Constructor for exception com.cloudhopper.commons.util.BufferIsEmptyException
-
Constructs an instance of BufferIsEmptyException with the specified detail message.
- BufferIsFullException - Exception in com.cloudhopper.commons.util
-
- BufferIsFullException() - Constructor for exception com.cloudhopper.commons.util.BufferIsFullException
-
Creates a new instance of BufferIsFullException without detail message.
- BufferIsFullException(String) - Constructor for exception com.cloudhopper.commons.util.BufferIsFullException
-
Constructs an instance of BufferIsFullException with the specified detail message.
- BufferSizeException - Exception in com.cloudhopper.commons.util
-
- BufferSizeException() - Constructor for exception com.cloudhopper.commons.util.BufferSizeException
-
Creates a new instance of BufferSizeException without detail message.
- BufferSizeException(String) - Constructor for exception com.cloudhopper.commons.util.BufferSizeException
-
Constructs an instance of BufferSizeException with the specified detail message.
- ByteArrayUtil - Class in com.cloudhopper.commons.util
-
Utility class for working with byte arrays such as converting between
byte arrays and numbers.
- ByteArrayUtil() - Constructor for class com.cloudhopper.commons.util.ByteArrayUtil
-
- ByteBuffer - Class in com.cloudhopper.commons.util
-
This class implements a capacity constrained ByteBuffer using a circular array
of bytes.
- ByteBuffer() - Constructor for class com.cloudhopper.commons.util.ByteBuffer
-
Constructs a new instance of ByteBuffer with an
initial default capacity of 1024 bytes (DEFAULT_BUFFER_CAPACITY)
- ByteBuffer(int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
-
Constructs a new instance of ByteBuffer with the specified
capacity.
- ByteBuffer(byte[]) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
-
Constructs a new instance of ByteBuffer with a capacity
only large enough to hold they byte array.
- ByteBuffer(byte[], int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
-
Constructs a new instance of ByteBuffer with the specified
capacity.
- ByteBuffer(byte[], int, int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
-
Constructs a new instance of ByteBuffer with the specified
capacity.
- ByteBuffer(byte[], int, int, int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
-
Constructs a new instance of ByteBuffer with the specified
capacity.
- ByteBuffer(String) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
-
Constructs a new instance of ByteBuffer.
- ByteBuffer(String, int) - Constructor for class com.cloudhopper.commons.util.ByteBuffer
-
Constructs a new instance of ByteBuffer with the specified
capacity.
- ByteUtil - Class in com.cloudhopper.commons.util
-
Utility class for methods to handle bytes.
- ByteUtil() - Constructor for class com.cloudhopper.commons.util.ByteUtil
-
- calculateNewIndex(long, long) - Method in class com.cloudhopper.commons.util.CircularIndex
-
- CALLER_NOT_WAITING - Static variable in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
The caller is not waiting on this entry
- CALLER_WAITING - Static variable in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
The caller is waiting on this entry
- CALLER_WAITING_TIMEOUT - Static variable in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
The caller was waiting, but gave up (timeout)
- canAdd() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Returns whether the "add" method would succeed or throw an exception.
- canAddOrSet() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Returns whether the "addOrSet" method would succeed or throw an exception.
- cancel() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- cancel(long) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- cancel(K) - Method in class com.cloudhopper.commons.util.windowing.Window
-
Cancels (completes) a request.
- cancel() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Completes (as a cancel) a request.
- cancel(long) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Completes (as a cancel) a request.
- cancelAll() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Cancels (completes) all requests.
- cancelAllExpired() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Cancels (completes) all expired requests.
- canGet() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Returns whether the "get" method would succeed or throw an exception.
- canSet() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Returns whether the "set" method would succeed or throw an exception.
- capacity() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Gets the total buffer allocated capacity, not the remaining capacity.
- capitalize(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Safely capitalizes a string by converting the first character to upper
case.
- cb - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
-
- cb - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
-
- cd - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
-
- ce - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
-
- charset - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
-
- charset - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
-
- checkBytes(byte[], int, int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- checkBytesNotNull(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- checkOffsetLength(int, int, int) - Static method in class com.cloudhopper.commons.util.ByteBuffer
-
Helper method for validating if an offset and length are valid for a given
byte array.
- CircularIndex - Class in com.cloudhopper.commons.util
-
Utility class for maintaining a circular index of a fixed capacity.
- CircularIndex(long) - Constructor for class com.cloudhopper.commons.util.CircularIndex
-
Creates a circular index based on a fixed capacity of elements.
- CircularIndex(long, boolean) - Constructor for class com.cloudhopper.commons.util.CircularIndex
-
- CircularIndex(long, long, long) - Constructor for class com.cloudhopper.commons.util.CircularIndex
-
- CircularIndex(long, long, long, boolean) - Constructor for class com.cloudhopper.commons.util.CircularIndex
-
Creates a circular index based on a fixed capacity of elements.
- ClassUtil - Class in com.cloudhopper.commons.util
-
This class implements utilities for working with classes.
- ClassUtil() - Constructor for class com.cloudhopper.commons.util.ClassUtil
-
- clear() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Clears the buffer and resets it.
- clear() - Method in interface com.cloudhopper.commons.util.LoadBalancedList
-
Clears all entries from the list.
- clear() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
-
- close() - Method in class com.cloudhopper.commons.util.codec.URLDecoder
-
- close() - Method in class com.cloudhopper.commons.util.codec.URLEncoder
-
- close() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
-
- com.cloudhopper.commons.util - package com.cloudhopper.commons.util
-
- com.cloudhopper.commons.util.annotation - package com.cloudhopper.commons.util.annotation
-
- com.cloudhopper.commons.util.codec - package com.cloudhopper.commons.util.codec
-
- com.cloudhopper.commons.util.filefilter - package com.cloudhopper.commons.util.filefilter
-
- com.cloudhopper.commons.util.time - package com.cloudhopper.commons.util.time
-
- com.cloudhopper.commons.util.windowing - package com.cloudhopper.commons.util.windowing
-
- compare(Level) - Method in enum com.cloudhopper.commons.util.annotation.Level
-
Compares the current instance to the level passed in as a parameter.
- compare(File, File) - Method in class com.cloudhopper.commons.util.FileUtil.FileNameDateTimeComparator
-
- complete(P) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- complete(P, long) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- complete(K, P) - Method in class com.cloudhopper.commons.util.windowing.Window
-
Successfully completes a request by setting the response on the associated future.
- complete(P) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Completes (as a success) a request by setting the response.
- complete(P, long) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Completes (as a success) a request by setting the response.
- CompositeFileFilter - Class in com.cloudhopper.commons.util.filefilter
-
Filters a file based on a composition of several other filters.
- CompositeFileFilter(FileFilter[]) - Constructor for class com.cloudhopper.commons.util.filefilter.CompositeFileFilter
-
- compress(File, String, boolean) - Static method in class com.cloudhopper.commons.util.CompressionUtil
-
Compresses the source file using a variety of supported compression
algorithms.
- compress(File, File, String, boolean) - Static method in class com.cloudhopper.commons.util.CompressionUtil
-
Compresses the source file using a variety of supported compression
algorithms.
- CompressionUtil - Class in com.cloudhopper.commons.util
-
Utility methods for compressing and uncompressing a file.
- CompressionUtil() - Constructor for class com.cloudhopper.commons.util.CompressionUtil
-
- CompressionUtil.Algorithm - Enum in com.cloudhopper.commons.util
-
Enumeration of all supported compression algorithms by this utility.
- compressQuotes(String, String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Compress 2 adjacent (single or double) quotes into a single (s or d)
quote when found in the middle of a String.
- contains(E) - Method in interface com.cloudhopper.commons.util.LoadBalancedList
-
Checks if the item is already contained in this list.
- contains(E) - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
-
- contains(String[], String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Checks if the targetString is contained within the array of strings.
- containsKey(K) - Method in class com.cloudhopper.commons.util.windowing.Window
-
Returns true if and only if a future with this key exists in this window.
- containsOnlyDigits(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Checks if a string contains only digits.
- copy() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Most efficient copy of this ByteBuffer.
- copy(int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Most efficient copy of this ByteBuffer.
- copy(int, int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Most efficient copy of this ByteBuffer.
- copy(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method of copying a DateTime
NOTE: The timestamp also should be in UTC.
- copy(File, File) - Static method in class com.cloudhopper.commons.util.FileUtil
-
Copy the source file to the target file.
- copy(File, File, boolean) - Static method in class com.cloudhopper.commons.util.FileUtil
-
Copy the source file to the target file while optionally permitting an
overwrite to occur in case the target file already exists.
- CountingRejectedExecutionHandler - Class in com.cloudhopper.commons.util
-
An implementation of a RejectedExecutionHandler that counts the number of
times it has been called.
- CountingRejectedExecutionHandler() - Constructor for class com.cloudhopper.commons.util.CountingRejectedExecutionHandler
-
- create(DateTimeDuration, DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Creates a new period for the specified duration starting from the
provided DateTime.
- createCommonSystemProperties() - Static method in class com.cloudhopper.commons.util.EnvironmentUtil
-
Creates a Properties object containing common system properties that are
determined using various Java routines.
- createDay(int, int, int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- createDay(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- createDayHourMinSecPeriod(long) - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
-
Creates a new Period that can be used properly with the "Uptime" styles
returned by this utility class.
- createFiveMinutes(int, int, int, int, int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- createFiveMinutes(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- createHour(int, int, int, int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- createHour(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- createLastYearMonths(DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Create a list of DateTimePeriods that represent the last year of
YearMonth periods.
- createMonth(int, int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- createMonth(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- createSortedSnapshot() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Creates an ordered snapshot of the requests in this window.
- createYear(int, DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- createYear(DateTime) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
- fail(Throwable) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- fail(Throwable, long) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- fail(K, Throwable) - Method in class com.cloudhopper.commons.util.windowing.Window
-
Fails (completes) a request by setting the cause of the failure on the associated future.
- fail(Throwable) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Completes (as a failure) a request by setting a throwable as the cause
of failure.
- fail(Throwable, long) - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Completes (as a failure) a request by setting a throwable as the cause
of failure.
- failAll(Throwable) - Method in class com.cloudhopper.commons.util.windowing.Window
-
Fails (completes) all requests by setting the same cause of the failure
on all associated futures.
- FastByteArrayOutputStream - Class in com.cloudhopper.commons.util
-
Originally found here: http://www.java2s.com/Code/Java/File-Input-Output/AspeedyimplementationofByteArrayOutputStream.htm
A speedy implementation of ByteArrayOutputStream.
- FastByteArrayOutputStream() - Constructor for class com.cloudhopper.commons.util.FastByteArrayOutputStream
-
- FastByteArrayOutputStream(int) - Constructor for class com.cloudhopper.commons.util.FastByteArrayOutputStream
-
- fieldClass - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
-
- fieldName - Variable in class com.cloudhopper.commons.util.MetaFieldInfo
-
- FileAlreadyExistsException - Exception in com.cloudhopper.commons.util
-
Exception represents a file already exists and cannot be overwritten.
- FileAlreadyExistsException(String) - Constructor for exception com.cloudhopper.commons.util.FileAlreadyExistsException
-
Constructs an instance of FileAlreadyExistsException with the specified detail message.
- FileAlreadyExistsException(String, Throwable) - Constructor for exception com.cloudhopper.commons.util.FileAlreadyExistsException
-
Constructs an instance of FileAlreadyExistsException with the specified detail message.
- FileExtensionFilter - Class in com.cloudhopper.commons.util.filefilter
-
Accepts a file based on its file extension against a list of one or more
acceptable file extensions.
- FileExtensionFilter(String) - Constructor for class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
-
Creates a new instance of a FileExtensionMatcher that will
perform a case insensitive match to this file extension.
- FileExtensionFilter(String[]) - Constructor for class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
-
Creates a new instance of a FileExtensionMatcher that will
perform a case insensitive match to this array of file extensions.
- FileExtensionFilter(String, boolean) - Constructor for class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
-
Creates a new instance of a FileExtensionMatcher that will
perform a match to this file extension.
- FileExtensionFilter(String[], boolean) - Constructor for class com.cloudhopper.commons.util.filefilter.FileExtensionFilter
-
Creates a new instance of a FileExtensionMatcher that will
perform a match to this array of file extensions.
- FileNameDateTimeFilter - Class in com.cloudhopper.commons.util.filefilter
-
Filters a file based on an embedded date within the filename.
- FileNameDateTimeFilter(DateTime) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
-
- FileNameDateTimeFilter(DateTime, DateTimeZone) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
-
- FileNameDateTimeFilter(DateTime, String) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
-
- FileNameDateTimeFilter(DateTime, String, DateTimeZone) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameDateTimeFilter
-
- FileNameEndsWithFilter - Class in com.cloudhopper.commons.util.filefilter
-
Accepts a file based on whether its filename endsWith a specific string.
- FileNameEndsWithFilter(String) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameEndsWithFilter
-
- FileNameEndsWithFilter(String, boolean) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameEndsWithFilter
-
- FileNameStartsWithFilter - Class in com.cloudhopper.commons.util.filefilter
-
Accepts a file based on whether its filename startsWith a specific string.
- FileNameStartsWithFilter(String) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameStartsWithFilter
-
- FileNameStartsWithFilter(String, boolean) - Constructor for class com.cloudhopper.commons.util.filefilter.FileNameStartsWithFilter
-
- FileUtil - Class in com.cloudhopper.commons.util
-
Utility class for handling Files.
- FileUtil.FileNameDateTimeComparator - Class in com.cloudhopper.commons.util
-
Class to compare Files by their embedded DateTimes.
- FileUtil.FileNameDateTimeComparator() - Constructor for class com.cloudhopper.commons.util.FileUtil.FileNameDateTimeComparator
-
Creates a default instance where the pattern is "yyyy-MM-dd" and the
default timezone of UTC.
- FileUtil.FileNameDateTimeComparator(String, DateTimeZone) - Constructor for class com.cloudhopper.commons.util.FileUtil.FileNameDateTimeComparator
-
- fill(Class<T>, Map<DateTime, T>, List<DateTimePeriod>) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriodDataUtil
-
- findBeanProperty(Class, String, boolean) - Static method in class com.cloudhopper.commons.util.BeanUtil
-
Finds a BeanProperty for the class type.
- findByFileExtension(String) - Static method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
-
Finds the matching compression algorithm by performing a case insensitive
search based on its file extension such as "gz" for gzip.
- findByName(String) - Static method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
-
Finds the matching compression algorithm by performing a case insensitive
search based on its name such as "gzip".
- findEnumConstant(Class<?>, String) - Static method in class com.cloudhopper.commons.util.ClassUtil
-
Finds an instance of an Enum constant on a class.
- findEnumConstant(Class<?>, String, boolean) - Static method in class com.cloudhopper.commons.util.ClassUtil
-
Finds an instance of an Enum constant on a class.
- findFiles(File, FileFilter) - Static method in class com.cloudhopper.commons.util.FileUtil
-
Finds all files (non-recursively) in a directory based on the FileFilter.
- floorToDay(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest day.
- floorToFiveMinutes(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest 5 minutes.
- floorToHalfHour(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest half hour (30 minutes).
- floorToHour(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest hour.
- floorToMinute(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest minute.
- floorToMinutePeriod(DateTime, int) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest specified period in minutes.
- floorToMonth(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest month.
- floorToQuarterHour(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest 15 minutes.
- floorToSecond(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest second.
- floorToTenMinutes(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest 10 minutes.
- floorToYear(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method that returns a new instance of a DateTime object rounded
downwards to the nearest year.
- flush(boolean) - Method in class com.cloudhopper.commons.util.codec.URLDecoder
-
- flush() - Method in class com.cloudhopper.commons.util.codec.URLDecoder
-
- flush(boolean) - Method in class com.cloudhopper.commons.util.codec.URLEncoder
-
- flush() - Method in class com.cloudhopper.commons.util.codec.URLEncoder
-
- formatForPrint(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Used to print out a string for error messages,
chops is off at 60 chars for historical reasons.
- free() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Gets the number of free bytes this buffer has remaining for writing.
- fromHexString(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Deprecated.
Please use new utility class HexUtil
- fromHexString(String, int, int) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Deprecated.
Please use new utility class HexUtil
- generateKey() - Static method in class com.cloudhopper.commons.util.EncryptUtil
-
- generateString(int) - Static method in class com.cloudhopper.commons.util.RandomUtil
-
Creates a random string using only lowercase ascii letters, uppercase
ascii letters, and digits.
- get(Object) - Method in class com.cloudhopper.commons.util.BeanProperty
-
Gets the property value on the object.
- get(int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Gets the byte at the given index relative to the beginning the circular
buffer.
- get(String) - Method in class com.cloudhopper.commons.util.DigitLookupMap
-
- get(String) - Method in interface com.cloudhopper.commons.util.SimpleMap
-
Returns the value to which this map maps the specified key.
- get(String) - Method in class com.cloudhopper.commons.util.StringLookupMap
-
- get() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
Returns the current value.
- get(K) - Method in class com.cloudhopper.commons.util.windowing.Window
-
Gets the a future by its key.
- getAcceptTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getAcceptTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the accept timestamp in milliseconds.
- getAcceptToDoneTime() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getAcceptToDoneTime() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the amount of time (in ms) from accept to done or -1 if a done
timestamp does not yet exist.
- getAddMethod() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Gets the underlying declared adder method for this property.
- getAllThreads() - Static method in class com.cloudhopper.commons.util.ThreadUtil
-
Gets all threads in the JVM.
- getAllThreadsMatching(String) - Static method in class com.cloudhopper.commons.util.ThreadUtil
-
Gets all threads if its name matches a regular expression.
- getAndSet(boolean) - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
Sets to the given value and returns the previous value.
- getAsciiBytes(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Get 7-bit ASCII character array from input String.
- getAsciiString(byte[]) - Static method in class com.cloudhopper.commons.util.StringUtil
-
- getAverage() - Method in class com.cloudhopper.commons.util.RunningTotal
-
Returns current average of our running total.
- getBeanMethods(Class<?>, String, Class<?>, boolean) - Static method in class com.cloudhopper.commons.util.ClassUtil
-
Gets the methods within this class that implements public "bean" methods
(get and set) for the property name.
- getCallerStateHint() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getCallerStateHint() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets a hint of the caller state such as whether the caller is waiting, not
waiting, or timed out while waiting for completion.
- getCapacity() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Gets the underlying capacity of the index.
- getCause() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getCause() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Returns the cause of the failed operation if the operation has
failed.
- getClassHierarchy(Class<?>) - Static method in class com.cloudhopper.commons.util.ClassUtil
-
Returns an array of class objects representing the entire class hierarchy
with the most-super class as the first element followed by all subclasses
in the order they are declared.
- getCount() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
-
- getDayHourMinSecPeriodType() - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
-
Gets a PeriodType that can be used to create a Period that is normalized
to only include the fields Day, Hour, Minute, and Second.
- getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeDay
-
- getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeFiveMinutes
-
- getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeHour
-
- getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeMonth
-
- getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets the default "Group By" enumeration based on the duration for this
period.
- getDefaultSubDuration() - Method in class com.cloudhopper.commons.util.time.DateTimeYear
-
- getDoneTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getDoneTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the done timestamp in milliseconds.
- getDuration() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets the duration this period represents such as a Month, Year, etc.
- getEnd() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets the exclusive ending DateTime for this period.
- getExpected() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
Returns the expected value of this state boolean.
- getExpireTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getExpireTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the expire timestamp in milliseconds.
- getField() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Gets the underlying declared field within the class for this property.
- getFileExtension() - Method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
-
Gets the extension associated with this compression algorithm such
as "gz" for gzip or "zip" for zip.
- getFirst() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Gets the index to the first element if it exists.
- getFreeSize() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Gets the current number of request that would be accepted by this
window without blocking.
- getGetMethod() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Gets the underlying declared getter method for this property.
- getHost() - Method in class com.cloudhopper.commons.util.URL
-
Gets the host such as "www.google.com" if the URL is "http://www.google.com"
- getHostFQDN() - Static method in class com.cloudhopper.commons.util.EnvironmentUtil
-
- getIndexName() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets an index name for this period appropriate for display to only identify
the particular row by the smallest possible identifer.
- getInternalFirst() - Method in class com.cloudhopper.commons.util.CircularIndex
-
protected methods just for testing purposes
- getInternalNext() - Method in class com.cloudhopper.commons.util.CircularIndex
-
- getKey() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets a key that is unique to this period.
- getKey() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getKey() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the key of the window entry.
- getLast() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Gets the index to the last element if it exists.
- getLinuxUptimeStyle() - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
-
Gets a PeriodFormatter in the Linux OS style such as "0 days, 01:05:12"
or "2 days, 07:00:00".
- getLongName() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets a long name for this period appropriate for display as the title
for a report such as "January 2009".
- getMaxSize() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Gets the maximum number of elements this index can support.
- getMaxSize() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Gets the max size of the window.
- getMBeanServerId(MBeanServer) - Static method in class com.cloudhopper.commons.util.ManagementUtil
-
Get the MBeanServerId of Agent ID for the provided MBeanServer.
- getMethod(Class<?>, String, Class<?>, Class<?>, boolean) - Static method in class com.cloudhopper.commons.util.ClassUtil
-
Gets the public method within the type that matches the method name, return type,
and single parameter type.
- getName() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Gets the name of the property such as "firstName".
- getName() - Method in enum com.cloudhopper.commons.util.CompressionUtil.Algorithm
-
Gets the name of this compression algorithm such as "gzip".
- getName() - Method in class com.cloudhopper.commons.util.NameValue
-
- getNext() - Method in interface com.cloudhopper.commons.util.LoadBalancedList
-
Gets the next item to use from the list.
- getNext() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
-
- getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeDay
-
- getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeFiveMinutes
-
- getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeHour
-
- getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeMonth
-
- getNext() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets the next period based on the duration.
- getNext() - Method in class com.cloudhopper.commons.util.time.DateTimeYear
-
- getNextFirst() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Gets the index where the next first element will be put.
- getNextLast() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Gets the index where the next last element will be put.
- getOfferTimestamp() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getOfferTimestamp() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the offer timestamp in milliseconds.
- getOfferToAcceptTime() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getOfferToAcceptTime() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the amount of time (in ms) from offer to accept.
- getOfferToDoneTime() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getOfferToDoneTime() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the amount of time (in ms) from offer to done or -1 if a done
timestamp does not yet exist.
- getPassword() - Method in class com.cloudhopper.commons.util.URL
-
Gets the password such as "test" if the URL is "http://root:test@www.google.com/"
or "t@st" if the URL is "http://root:t%40st@www.google.com/".
- getPath() - Method in class com.cloudhopper.commons.util.URL
-
Gets the path such as "/" if the URL is "http://www.google.com/" or
"/My Documents/index.html" if the URL is "http://www.google.com/My+Documents/index.html".
- getPendingOfferCount() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Gets the current number of callers/threads that are waiting for a pending
offer to be accepted.
- getPeriod() - Method in class com.cloudhopper.commons.util.time.DateTimePeriodData
-
- getPort() - Method in class com.cloudhopper.commons.util.URL
-
Gets the port such as 80 if the URL specifically included a port such as
"http://www.google.com:80/".
- getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeDay
-
- getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeFiveMinutes
-
- getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeHour
-
- getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeMonth
-
- getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets the previous period based on the duration.
- getPrevious() - Method in class com.cloudhopper.commons.util.time.DateTimeYear
-
- getProtocol() - Method in class com.cloudhopper.commons.util.URL
-
Gets the protocol such as "http" if the URL is "http://www.google.com"
- getQuery() - Method in class com.cloudhopper.commons.util.URL
-
Gets the query such as "id=1&pk=3" if the URL was "http://www.google.com/index.html?id=1&pk=3".
- getQueryProperties() - Method in class com.cloudhopper.commons.util.URL
-
- getQueryProperty(String) - Method in class com.cloudhopper.commons.util.URL
-
- getRejected() - Method in class com.cloudhopper.commons.util.CountingRejectedExecutionHandler
-
- getRemainingSize() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
-
- getRequest() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getRequest() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the request contained in the window entry.
- getResponse() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getResponse() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Gets the response associated with the window entry.
- getRootThreadGroup() - Static method in class com.cloudhopper.commons.util.ThreadUtil
-
Gets the "root" thread group for the entire JVM.
- getSetMethod() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Gets the underlying declared setter method for this property.
- getShortName() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets a short name for this period appropriate for display within a table
of data to identify a row.
- getSize() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Gets the current number of elements in this index.
- getSize() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
-
- getSize() - Method in interface com.cloudhopper.commons.util.LoadBalancedList
-
Gets the total number of items (size) of the list.
- getSize() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
-
- getSize() - Method in class com.cloudhopper.commons.util.RunningTotal
-
Returns current number of values in our running total.
- getSize() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Gets the current number of requests in the window.
- getStackTrace(Throwable) - Static method in class com.cloudhopper.commons.util.StackTraceUtil
-
- getStandardUptimeStyle() - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
-
Gets a PeriodFormatter in the standard Uptime style such as "0 days 0 hours 1 min 50 secs"
or "2 days 7 hours 1 min 50 secs".
- getStart() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Gets the inclusive starting DateTime for this period.
- getThread(long) - Static method in class com.cloudhopper.commons.util.ThreadUtil
-
Gets a thread by its assigned ID.
- getTotal() - Method in class com.cloudhopper.commons.util.RunningTotal
-
Returns current value of our running total.
- getType() - Method in class com.cloudhopper.commons.util.BeanProperty
-
Gets the Class type of the property such as "java.lang.String".
- getUsername() - Method in class com.cloudhopper.commons.util.URL
-
Gets the username such as "root" if the URL is "http://root@www.google.com/"
or "ro@t" if the URL is "http://ro%40t@www.google.com/".
- getValue() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
-
- getValue() - Method in class com.cloudhopper.commons.util.NameValue
-
- getValueDateTime() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
Returns a DateTime that represents the last time this boolean changed state.
- getValueDuration() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
Based on the time this method is called (System.currentTimeMillis), this
method returns a Period that represents the duration of time this value
has retained this value.
- getValueDurationInMills() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
Based on the time this method is called (System.currentTimeMillis), this
method returns a long that represents the duration of time this value
has retained this value.
- getValues() - Method in interface com.cloudhopper.commons.util.LoadBalancedList
-
Gets a list of all nodes.
- getValues() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
-
- getValueTimeMillis() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
Returns the timestamp (num of milliseconds via System.currentTimeMillis) of the
last time this boolean changed state.
- getWeight() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
-
- getWindowSize() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- getWindowSize() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Returns the size of the window (number of requests in it) after this
request was added.
- incrementCount() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
-
- indexOf(byte[]) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Returns the index within this buffer of the first occurrence of the
specified bytes.
- indexOf(byte[], int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Returns the index within this buffer of the first occurrence of the
specified bytes after the offset.
- indexOf(String[], String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Finds the first occurrence of the targetString in the array of strings.
- internalToMetaFieldInfoArray(Class, Object, String, String, String, boolean, boolean) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
-
Optionally, recursively returns a new MetaFieldInfo array of all Fields
annotated with MetaField in the object.
- isAlgorithmSupported(String) - Static method in class com.cloudhopper.commons.util.CompressionUtil
-
Checks if the compression algorithm is supported by this utility class.
- isCallerWaiting() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- isCallerWaiting() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Returns true if and only if the caller hinted at "WAITING" for
completion.
- isCancelled() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- isCancelled() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Returns true if and only if this future was cancelled by a
cancel() method.
- isDone() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- isDone() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Returns true if and only if this future is
complete, regardless of whether the operation was successful, failed,
or cancelled.
- isEmpty() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Tests if the buffer is empty.
- isEmpty() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Checks if the index is currently empty (contains no elements).
- isEmpty(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Checks if the string is an empty value which is true if the string is
null or if the string represents an empty string of "".
- isEqual(String, String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
- isEqual(String, String, boolean) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Checks if both strings are equal to each other.
- isExpected() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
Tests whether this state boolean is what we would expect it to be.
- isFileExtensionSupported(String) - Static method in class com.cloudhopper.commons.util.CompressionUtil
-
Checks if the file extension such as "gz" or "zip" is supported by this
utility class.
- isFree(int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Tests if the buffer has enough free space to store N bytes.
- isFull() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Tests if the buffer is full.
- isFull() - Method in class com.cloudhopper.commons.util.CircularIndex
-
Checks if the index is currently full (contains all elements).
- isPrintableChar(char) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Return true if the character is printable in ASCII.
- isSafeChar(char) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Returns true if the char is considered a "safe" char.
- isSafeString(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Returns true if the String is considered a "safe" string where only specific
characters are allowed to be used.
- isSuccess() - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- isSuccess() - Method in interface com.cloudhopper.commons.util.windowing.WindowFuture
-
Returns true if and only if the operation was completed
successfully.
- isValidFileExtension(String) - Static method in class com.cloudhopper.commons.util.FileUtil
-
Checks if the extension is valid.
- Sequencer - Class in com.cloudhopper.commons.util
-
This class implements an extremely efficient, thread-safe way to generate a
simple incrementing sequence of Longs.
- Sequencer() - Constructor for class com.cloudhopper.commons.util.Sequencer
-
Constructs a new instance of Sequencer a default starting
sequence number of 0.
- Sequencer(long) - Constructor for class com.cloudhopper.commons.util.Sequencer
-
Constructs a new instance of Sequencer with the specified
starting value.
- set(Object, Object) - Method in class com.cloudhopper.commons.util.BeanProperty
-
Sets the property value on the object.
- set(E, int) - Method in interface com.cloudhopper.commons.util.LoadBalancedList
-
Adds the item to the list if it doesn't yet exist.
- set(E, int) - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
-
- set(boolean) - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
Unconditionally sets to the given value.
- setCallerStateHint(int) - Method in class com.cloudhopper.commons.util.windowing.DefaultWindowFuture
-
- setCount(int) - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
-
- setHost(String) - Method in class com.cloudhopper.commons.util.URL
-
Sets the host such as "www.google.com" if the URL is "http://www.google.com"
- setPassword(String) - Method in class com.cloudhopper.commons.util.URL
-
Sets the password such as "test" if the URL is "http://root:test@www.google.com/"
or "t@st" if the URL is "http://root:t%40st@www.google.com/".
- setPath(String) - Method in class com.cloudhopper.commons.util.URL
-
Sets the path such as "/" if the URL is "http://www.google.com/" or
"/My Documents/index.html" if the URL is "http://www.google.com/My+Documents/index.html".
- setPort(Integer) - Method in class com.cloudhopper.commons.util.URL
-
Sets the port such as 80 if the URL should specifically include a port such as
"http://www.google.com:80/".
- setProtocol(String) - Method in class com.cloudhopper.commons.util.URL
-
Sets the protocol such as "http" if the URL is "http://www.google.com"
- setQuery(String) - Method in class com.cloudhopper.commons.util.URL
-
- setUsername(String) - Method in class com.cloudhopper.commons.util.URL
-
Sets the username such as "root" if the URL is "http://root@www.google.com/"
or "ro@t" if the URL is "http://ro%40t@www.google.com/".
- setWeight(int) - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
-
- SimpleMap<V> - Interface in com.cloudhopper.commons.util
-
A more simplified map interface than a java.util.Map where only a small subset
of functionality is supported.
- singleByteBuffer - Variable in class com.cloudhopper.commons.util.codec.URLEncoderOutputStream
-
- singleCharBuffer - Variable in class com.cloudhopper.commons.util.codec.URLDecoder
-
- singleCharBuffer - Variable in class com.cloudhopper.commons.util.codec.URLEncoder
-
- size() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Gets the current buffer size.
- size() - Method in class com.cloudhopper.commons.util.DigitLookupMap
-
Returns the number of key-value mappings in this map.
- size() - Method in interface com.cloudhopper.commons.util.SimpleMap
-
Returns the number of key-value mappings in this map.
- size() - Method in class com.cloudhopper.commons.util.StringLookupMap
-
- slice(String, int, int, boolean) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Return a slice (substring) of the passed in value, optionally trimmed.
- split(String, char) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Splits a string around matches of the given delimiter character.
- splitHostFQDN(String) - Static method in class com.cloudhopper.commons.util.EnvironmentUtil
-
- SQLEqualsIgnoreCase(String, String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Compares two strings
Strings will be uppercased in english and compared
equivalent to s1.equalsIgnoreCase(s2)
throws NPE if s1 is null
- SQLToUpperCase(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Convert string to uppercase
Always use the java.util.ENGLISH locale
- StackTraceUtil - Class in com.cloudhopper.commons.util
-
Simple utilities to return the stack trace of an exception as a String.
- StackTraceUtil() - Constructor for class com.cloudhopper.commons.util.StackTraceUtil
-
- startMonitor() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Starts the monitor if this Window has an executor.
- startsWith(byte[]) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Tests if the buffer starts with the byte array prefix.
- stopMonitor() - Method in class com.cloudhopper.commons.util.windowing.Window
-
Stops the monitor if its running.
- stringify(int[]) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Turn an array of ints into a printable string.
- StringLookupMap<V> - Class in com.cloudhopper.commons.util
-
A more simplified map interface than a java.util.Map where only a small subset
of functionality is supported.
- StringLookupMap() - Constructor for class com.cloudhopper.commons.util.StringLookupMap
-
- StringLookupMap(boolean) - Constructor for class com.cloudhopper.commons.util.StringLookupMap
-
- StringUtil - Class in com.cloudhopper.commons.util
-
A set of String utilities.
- StringUtil() - Constructor for class com.cloudhopper.commons.util.StringUtil
-
- stripQuotes(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
If present, this method will strip off the leading and trailing "
character in the string parameter.
- substituteWithEnvironment(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Searches the string for occurrences of the pattern $ENV{key} and
attempts to replace this pattern with a value from the System environment
obtained using the 'key'.
- substituteWithProperties(String, String, String, Properties) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Searches string for occurrences of a pattern, extracts out a key name
between the startStr and endStr tokens, then attempts to replace the
property value into the string.
- SubstitutionException - Exception in com.cloudhopper.commons.util
-
Root exception for StringUtil where environment variables can be used to
replace certain properties.
- SubstitutionException(String) - Constructor for exception com.cloudhopper.commons.util.SubstitutionException
-
Constructs an instance of SubstitutionException with the specified detail message.
- synchronizedList(LoadBalancedList<E>) - Static method in class com.cloudhopper.commons.util.LoadBalancedLists
-
Creates a synchronized version of a LoadBalancedList by putting a lock
around any method that reads or writes to the internal data structure.
- thisMonth(DateTimeZone) - Static method in class com.cloudhopper.commons.util.time.DateTimePeriodSelector
-
- ThreadUtil - Class in com.cloudhopper.commons.util
-
A utility class for working with threads in a JVM.
- ThreadUtil() - Constructor for class com.cloudhopper.commons.util.ThreadUtil
-
- TimedStateBoolean - Class in com.cloudhopper.commons.util
-
Wrapper around Java AtomicBoolean to include the DateTime of when the state last
changed, effectively providing a "time" of the current state.
- TimedStateBoolean(boolean) - Constructor for class com.cloudhopper.commons.util.TimedStateBoolean
-
Creates a new instance with the initalValue.
- TimedStateBoolean(boolean, boolean) - Constructor for class com.cloudhopper.commons.util.TimedStateBoolean
-
Creates a new instance with the initalValue.
- toArray() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Gets a copy of the current buffer as byte array.
- toArray(int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Gets a copy of the current buffer as byte array, but only copies data
starting from an offset and length.
- toArray(int, int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Gets a copy of the current buffer as byte array, but the new byte[]
has the specified capacity.
- toArray(int, int, byte[], int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Will copy data from this ByteBuffer's buffer into the targetBuffer.
- toByte(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toByte(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toByteArray(byte) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toByteArray(short) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toByteArray(int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toByteArray(long) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toByteArray() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
-
- toByteArray(CharSequence) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Creates a byte array from a CharSequence (String, StringBuilder, etc.)
containing only valid hexidecimal formatted characters.
- toByteArray(CharSequence, int, int) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Creates a byte array from a CharSequence (String, StringBuilder, etc.)
containing only valid hexidecimal formatted characters.
- toCorrectKeyCaseSensitivity(String) - Method in class com.cloudhopper.commons.util.StringLookupMap
-
- toDateTime(Timestamp) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method of converting a SQL Timestamp into a DateTime that
it set specifically to be in UTC.
- toDays() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Converts this period to a list of day periods.
- toFiveMinutes() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Converts this period to a list of five minute periods.
- toHashedBase64String(String) - Method in class com.cloudhopper.commons.util.Hasher
-
Hashes the input String into a Base-64 encoded hashed String.
- toHashedBase64String(byte[]) - Method in class com.cloudhopper.commons.util.Hasher
-
Hashes the input bytes into a Base-64 encoded hashed String.
- toHashedBytes(byte[]) - Method in class com.cloudhopper.commons.util.Hasher
-
Hashes the input bytes into a hashed byte[] -- no special encoding.
- toHashedHexString(String) - Method in class com.cloudhopper.commons.util.Hasher
-
Hashes the input String into a hex encoded hashed String.
- toHashedHexString(byte[]) - Method in class com.cloudhopper.commons.util.Hasher
-
Hashes the input bytes into a hex encoded hashed String.
- toHexByte(String, int, int) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Deprecated.
Please use new utility class HexUtil
- toHexString() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Return a hexidecimal String representation of the current buffer with each byte
displayed in a 2 character hexidecimal format.
- toHexString(int, int) - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Return a hexidecimal String representation of the current buffer with each byte
displayed in a 2 character hexidecimal format.
- toHexString(byte[]) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Creates a String from a byte array with each byte in a "Big Endian"
hexidecimal format.
- toHexString(byte[], int, int) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Creates a String from a byte array with each byte in a "Big Endian"
hexidecimal format.
- toHexString(byte) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Creates a 2 character hex String from a byte with the byte in a "Big Endian"
hexidecimal format.
- toHexString(short) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Creates a 4 character hex String from a short with the short in a "Big Endian"
hexidecimal format.
- toHexString(int) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Creates an 8 character hex String from an int twith the int in a "Big Endian"
hexidecimal format.
- toHexString(long) - Static method in class com.cloudhopper.commons.util.HexUtil
-
Creates a 16 character hex String from a long with the long in a "Big Endian"
hexidecimal format.
- toHexString(byte[]) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Deprecated.
Please use new utility class HexUtil
- toHexString(byte[], int, int) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Deprecated.
Please use new utility class HexUtil
- toHours() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Converts this period to a list of hour periods.
- toInt() - Method in enum com.cloudhopper.commons.util.annotation.Level
-
- toInt(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toInt(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toLinuxUptimeStyleString(long) - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
-
Helper method to create a "Linux" uptime styled string that represents
the duration (in milliseconds).
- toLong(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toLong(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toMetaFieldInfoArray(Object) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
-
Returns a new MetaFieldInfo array of all Fields annotated with MetaField
in the runtime object type.
- toMetaFieldInfoArray(Object, String) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
-
Returns a new MetaFieldInfo array of all Fields annotated with MetaField
in the runtime object type.
- toMetaFieldInfoArray(Object, String, boolean) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
-
Returns a new MetaFieldInfo array of all Fields annotated with MetaField
in the runtime object type.
- toMetaFieldInfoArray(Class, Object, String, boolean, boolean) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
-
Returns a new MetaFieldInfo array of all Fields annotated with MetaField
in the object type.
- toMetaFieldInfoString(Object) - Static method in class com.cloudhopper.commons.util.MetaFieldUtil
-
Creates a string for an object based on the MetaField annotations.
- toMonths() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Converts this period to a list of month periods.
- toNodeArrayIndex(char) - Static method in class com.cloudhopper.commons.util.DigitLookupMap
-
Returns the node array index of the character for 0-9, or 10 for the '*'
character.
- toPeriods(DateTimeDuration) - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Converts this period to a list of periods for the given duration.
- toShort(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toShort(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toStackTraceString(String, StackTraceElement[]) - Static method in class com.cloudhopper.commons.util.StackTraceUtil
-
Defines a custom format for the stack trace as String.
- toStandardUptimeStyleString(long) - Static method in class com.cloudhopper.commons.util.PeriodFormatterUtil
-
Helper method to create a "Standard" uptime styled string that represents
the duration (in milliseconds).
- toString() - Method in class com.cloudhopper.commons.util.ByteBuffer
-
Returns a string representation of the current buffer.
- toString() - Method in class com.cloudhopper.commons.util.CircularIndex
-
- toString(double, int) - Static method in class com.cloudhopper.commons.util.DecimalUtil
-
Thread-safe version of converting a double value to a String when only
a certain number of digits are desired after a decimal point.
- toString() - Method in class com.cloudhopper.commons.util.FastByteArrayOutputStream
-
- toString() - Method in enum com.cloudhopper.commons.util.Hasher.Algorithm
-
- toString() - Method in class com.cloudhopper.commons.util.HexString
-
- toString() - Method in class com.cloudhopper.commons.util.LoadBalancedList.Node
-
- toString() - Method in class com.cloudhopper.commons.util.RoundRobinLoadBalancedList
-
- toString() - Method in class com.cloudhopper.commons.util.RunningAverage
-
Returns a string representing the current running average.
- toString(int) - Method in class com.cloudhopper.commons.util.RunningAverage
-
Returns a string representing the current running average, but will use
the new precision rather than the one in the constructor.
- toString() - Method in class com.cloudhopper.commons.util.RunningTotal
-
Returns a string representing the current running total.
- toString() - Method in class com.cloudhopper.commons.util.TimedStateBoolean
-
- toString() - Method in class com.cloudhopper.commons.util.URL
-
Builds and returns a properly encoded URL in its full string form such as
"http://www.google.com/".
- toStringArray(Object[]) - Static method in class com.cloudhopper.commons.util.StringUtil
-
A method that receive an array of Objects and return a
String array representation of that array.
- toStringWithNullAsEmpty(Object) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Returns the value from calling "toString()" on the object, but is a safe
version that gracefully handles NULL objects by returning a String of "".
- toStringWithNullAsNull(Object) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Returns the value from calling "toString()" on the object, but is a safe
version that gracefully handles NULL objects by returning null (rather
than causing a NullPointerException).
- toStringWithNullAsReplaced(Object) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Returns the value from calling "toString()" on the object, but is a safe
version that gracefully handles NULL objects by returning a String of "".
- toTimestamp(DateTime) - Static method in class com.cloudhopper.commons.util.DateTimeUtil
-
Null-safe method of converting a DateTime to a Timestamp.
- toUnsignedByte(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toUnsignedByte(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toUnsignedInt(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toUnsignedInt(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toUnsignedShort(byte[]) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toUnsignedShort(byte[], int, int) - Static method in class com.cloudhopper.commons.util.ByteArrayUtil
-
- toYears() - Method in class com.cloudhopper.commons.util.time.DateTimePeriod
-
Converts this period to a list of year periods.
- trimTrailing(String) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Trim off trailing blanks but not leading blanks
- truncate(String, int) - Static method in class com.cloudhopper.commons.util.StringUtil
-
Truncate a String to the given length with no warnings
or error raised if it is bigger.