Jexler utilities. Includes some static methods that could be useful in Groovy scripts or in Java (for writing custom services or tools).
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
SHUTDOWN_TIMEOUT_MSG |
|
static java.lang.String |
STARTUP_TIMEOUT_MSG |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.lang.String |
getStackTrace(java.lang.Throwable throwable)Get stack trace for given throwable as a string. |
|
static java.lang.String |
toSingleLine(java.lang.String multi)Replace line breaks in string with '%n'. |
|
static void |
waitAtLeast(long ms)Wait at least for the indicated time in milliseconds. |
|
static boolean |
waitForShutdown(Jexler jexler, long timeout)Wait for jexler shutdown and report issue if did not shut down in time. |
|
static boolean |
waitForShutdown(JexlerContainer container, long timeout)Wait for container shutdown and report an issue for each jexler that did not shut down in time. |
|
static boolean |
waitForStartup(Jexler jexler, long timeout)Wait for jexler startup and report issue if did not start in time. |
|
static boolean |
waitForStartup(JexlerContainer container, long timeout)Wait for container startup and report an issue for each jexler that did not start in time. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get stack trace for given throwable as a string.
Replace line breaks in string with '%n'. Replaces CRLF, CR, LF with '%n', in that order. return string with replacements, null if given string is null
Wait at least for the indicated time in milliseconds.
ms - time to wait in msWait for jexler shutdown and report issue if did not shut down in time.
Wait for container shutdown and report an issue for each jexler that did not shut down in time.
Wait for jexler startup and report issue if did not start in time.
Wait for container startup and report an issue for each jexler that did not start in time.