| Modifier and Type | Field and Description |
|---|---|
static ScheduledThreadPoolExecutor |
EXECUTOR |
static String |
OS_NAME |
static Mapper<Object,Object> |
TRANSFORM_TO_SIMPLE_CLASS_NAME |
static Mapper<Object,Object> |
TRANSFORM_TO_STRING |
AMP, ASTERISK, BYTE_0, COL, CR, CR_, CR_LF, CR_LF_CR_LF, DELETE, EMPTY_ARRAY, EMPTY_STRING_ARRAY, EQ, F, GET, GET_OR_POST, HEAD, HTTP_VERBS, LAST_6, LF, LF_, LF_LF, MALFORMED_CHAR, NOT_FOUND, OPTIONS, PATCH, POST, PUT, SEMI_COL, SEPARATOR_LINE, SPACE, SPACE_, T, TRACE, UTF8_2_BYTES_LEAD, UTF8_3_BYTES_LEAD, UTF8_4_BYTES_LEAD, UTF8_CONTINUATION| Modifier and Type | Method and Description |
|---|---|
static String |
annotations(Class<? extends Annotation>[] annotations) |
static void |
append(StringBuilder sb,
String separator,
String value) |
static void |
benchmark(String name,
int count,
Operation<Integer> operation) |
static void |
benchmark(String name,
int count,
Runnable runnable) |
static void |
benchmarkComplete(String name,
int count,
long startTime) |
static void |
benchmarkMT(int threadsN,
String name,
int count,
CountDownLatch outsideLatch,
Runnable runnable) |
static void |
benchmarkMT(int threadsN,
String name,
int count,
Runnable runnable) |
static boolean |
bootService(String setup,
String service) |
static int |
bytesToInt(String s) |
static long |
bytesToLong(String s) |
static short |
bytesToShort(String s) |
static <K,V> Map<K,V> |
cast(Map<?,?> map) |
static String |
classes(List<Class<?>> classes) |
static String |
classNames(List<String> classes) |
static <T> T |
connect(String address,
int port,
F3<T,InputStream,BufferedReader,DataOutputStream> protocol) |
static <T> T |
connect(String address,
int port,
int timeout,
F3<T,InputStream,BufferedReader,DataOutputStream> protocol) |
static int |
countNonNull(Object... values) |
static Object[] |
deleteAt(Object[] arr,
int index) |
static Object |
deserialize(byte[] buf) |
static Object |
deserialize(ByteBuffer buf) |
static void |
doBenchmark(String name,
int count,
Runnable runnable,
boolean silent) |
static boolean |
dockerized() |
static <T> T |
dynamic(Class<T> targetInterface,
Dynamic dynamic) |
static void |
endMeasure() |
static void |
endMeasure(long count,
String info) |
static void |
endMeasure(String info) |
static boolean |
exists(Callable<?> accessChain) |
static <T> T[] |
expand(T[] arr,
int factor) |
static <T> T[] |
expand(T[] arr,
T item) |
static String |
fillIn(String template,
Object... namesAndValues) |
static String |
fillIn(String template,
String placeholder,
String value) |
static void |
filterAndInvokeMainClasses(Object[] beans,
Set<Class<?>> invoked) |
static Class<?> |
getCallingClass(Class<?>... ignoreClasses) |
static Class<?> |
getCallingMainClass() |
static String |
getCallingPackage(Class<?>... ignoreClasses) |
static List<?> |
getPage(Iterable<?> items,
int page,
int pageSize,
Integer size,
BoolWrap isLastPage) |
static boolean |
hasConsole() |
static boolean |
hasHibernate() |
static boolean |
hasJPA() |
static boolean |
hasLogback() |
static boolean |
hasRapidoidGUI() |
static boolean |
hasRapidoidJPA() |
static boolean |
hasRapidoidWatch() |
static boolean |
hasSlf4jImpl() |
static boolean |
hasValidation() |
static String |
id() |
static int |
intFrom(byte a,
byte b,
byte c,
byte d) |
static void |
invokeMain(Class<?> clazz,
String[] args) |
static boolean |
isArray(Object value) |
static boolean |
isAscii(String s) |
static boolean |
isInsideTest() |
static boolean |
isSpecialArg(String arg) |
static boolean |
isValidationError(Throwable error) |
static String |
javaVersion() |
static void |
joinThread(Thread thread) |
static RapidoidThreadLocals |
locals() |
static void |
logProperties(Properties props) |
static void |
logSection(String msg) |
static RapidoidThread |
loop(Runnable loop) |
static <T> Map<String,T> |
lowercase(Map<String,T> map) |
static boolean |
matchingProfile(Class<?> clazz) |
static Object |
maybeMasked(Object value) |
static void |
multiThreaded(int threadsN,
Mapper<Integer,Void> executable) |
static void |
multiThreaded(int threadsN,
Runnable executable) |
static <T> List<T> |
page(Iterable<T> items,
int page,
int pageSize) |
static Map<String,Object> |
parseArgs(List<String> args) |
static String |
path(String... parts) |
static int |
processId() |
static String |
processName() |
static <T> Map<String,T> |
protectSensitiveInfo(Map<String,T> data,
T replacement) |
static String |
refinePath(String path) |
static void |
reset() |
static Throwable |
rootCause(Throwable e) |
static byte |
sbyte(int n) |
static boolean |
sensitiveKey(String key) |
static <T extends Serializable> |
serializable(Object value) |
static byte[] |
serialize(Object value) |
static void |
serialize(Object value,
ByteBuffer buf) |
static short |
shortFrom(byte a,
byte b) |
static String |
stackTraceOf(Throwable e) |
static void |
startMeasure() |
static void |
terminate() |
static void |
terminate(int afterSeconds) |
static void |
terminateIfIdleFor(int idleSeconds) |
static String |
textToId(String s) |
static Thread |
thread(Runnable runnable) |
static byte[] |
toBytes(Object obj) |
static int |
ubyte(byte b) |
static String |
uri(String... parts) |
static String |
urlDecode(String value) |
static String |
urlDecodeOrKeepOriginal(String s) |
static String |
urlEncode(String value) |
static void |
wait(CountDownLatch latch) |
static void |
wait(CountDownLatch latch,
long timeout,
TimeUnit unit) |
static void |
waitFor(Object obj) |
static boolean |
waitInterruption(long millis) |
static boolean |
withWatchModule() |
static byte[] |
writeAndRead(String address,
int port,
byte[] req,
int timeout) |
public static final String OS_NAME
public static final ScheduledThreadPoolExecutor EXECUTOR
public static byte[] serialize(Object value)
public static Object deserialize(byte[] buf)
public static void serialize(Object value, ByteBuffer buf)
public static Object deserialize(ByteBuffer buf)
public static <T> T connect(String address, int port, F3<T,InputStream,BufferedReader,DataOutputStream> protocol)
public static <T> T connect(String address, int port, int timeout, F3<T,InputStream,BufferedReader,DataOutputStream> protocol)
public static byte[] writeAndRead(String address, int port, byte[] req, int timeout)
public static short bytesToShort(String s)
public static int bytesToInt(String s)
public static long bytesToLong(String s)
public static int intFrom(byte a,
byte b,
byte c,
byte d)
public static short shortFrom(byte a,
byte b)
public static boolean waitInterruption(long millis)
public static void waitFor(Object obj)
public static void joinThread(Thread thread)
public static void doBenchmark(String name, int count, Runnable runnable, boolean silent)
public static void benchmarkComplete(String name, int count, long startTime)
public static void benchmarkMT(int threadsN,
String name,
int count,
CountDownLatch outsideLatch,
Runnable runnable)
public static void startMeasure()
public static void endMeasure()
public static void endMeasure(String info)
public static void endMeasure(long count,
String info)
public static void multiThreaded(int threadsN,
Runnable executable)
public static void append(StringBuilder sb, String separator, String value)
public static <T extends Serializable> T serializable(Object value)
public static RapidoidThread loop(Runnable loop)
public static Class<?> getCallingMainClass()
public static byte[] toBytes(Object obj)
public static boolean isArray(Object value)
public static <T> T[] expand(T[] arr,
int factor)
public static <T> T[] expand(T[] arr,
T item)
public static void wait(CountDownLatch latch)
public static void wait(CountDownLatch latch, long timeout, TimeUnit unit)
public static boolean exists(Callable<?> accessChain)
public static int countNonNull(Object... values)
public static boolean withWatchModule()
public static void terminate(int afterSeconds)
public static void terminateIfIdleFor(int idleSeconds)
public static void terminate()
public static byte sbyte(int n)
public static int ubyte(byte b)
public static void logSection(String msg)
public static void logProperties(Properties props)
public static boolean hasValidation()
public static boolean hasJPA()
public static boolean hasHibernate()
public static boolean hasRapidoidJPA()
public static boolean hasRapidoidGUI()
public static boolean hasRapidoidWatch()
public static boolean hasLogback()
public static boolean hasSlf4jImpl()
public static boolean isValidationError(Throwable error)
public static List<?> getPage(Iterable<?> items, int page, int pageSize, Integer size, BoolWrap isLastPage)
public static void filterAndInvokeMainClasses(Object[] beans, Set<Class<?>> invoked)
public static String annotations(Class<? extends Annotation>[] annotations)
public static <T> Map<String,T> protectSensitiveInfo(Map<String,T> data, T replacement)
public static boolean sensitiveKey(String key)
public static int processId()
public static String processName()
public static String javaVersion()
public static boolean matchingProfile(Class<?> clazz)
public static boolean isInsideTest()
public static void reset()
public static boolean isAscii(String s)
public static RapidoidThreadLocals locals()
public static boolean dockerized()
public static String id()
public static boolean hasConsole()
public static boolean isSpecialArg(String arg)
Copyright © 2014–2016 Nikolche Mihajlovski and contributors. All rights reserved.