|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.domian.util.InstrumentationUtils
public class InstrumentationUtils
Some convenient instrumentation methods and constants.
Field Summary | |
---|---|
static java.lang.String |
DEBUG_LEVEL_INDENTATION
|
static java.lang.String |
DOTS
|
static java.lang.String |
NOT_APPLICABLE
|
static java.lang.String |
NOT_SUPPORTED
|
static java.lang.String |
NOT_YET_SUPPORTED
|
static java.lang.String |
REDEFINED
|
static java.lang.String |
REDEFINED_ELSEWHERE
|
static java.lang.String |
SKIPPED
|
static java.lang.String |
TEMPORARILY_ISOLATED
|
static java.lang.String |
TEMPORARY
|
static java.lang.String |
TODO
|
static java.lang.String |
TRACE_LEVEL_INDENTATION
|
Constructor Summary | |
---|---|
InstrumentationUtils()
|
Method Summary | |
---|---|
static java.lang.String |
buildDebugLogLevelIterationMessage(int iterationNumber,
java.lang.Object instance,
java.lang.String methodName)
|
static java.lang.String |
buildMemoryConsumptionMessage()
|
static java.lang.String |
buildMessageWithStackTrace(java.lang.String message,
java.lang.Integer numberOfStackTraceLines,
int skipLines)
Builds a message containing a trailing stack trace. |
static java.lang.String |
buildMessageWithStackTrace(java.lang.Throwable throwable,
java.lang.String message,
java.lang.Integer numberOfStackTraceLines,
int skipLines)
Builds a message containing a trailing stack trace. |
static java.lang.String |
buildSimpleClassMethodString(java.lang.Object instance,
java.lang.String methodName)
|
static java.lang.String |
buildTestingOfMethodString(java.lang.Object testTarget,
java.lang.String methodName)
testTarget parameter to be used wherever test methods are inherited. |
static java.lang.String |
buildTestingOfMethodString(java.lang.Object instance,
java.lang.String methodName,
java.lang.String deviation)
testTarget parameter to be used wherever test methods are inherited. |
static java.lang.String |
buildTestingOfMethodString(java.lang.String methodName)
|
static java.lang.String |
buildThreadNumberAndMessage(java.lang.Object instance,
java.lang.String methodName,
java.lang.String message)
|
static java.lang.String |
buildThreadNumberAndMessage(java.lang.String message)
|
static java.lang.String |
getStackTrace(java.lang.Integer numberOfStackTraceLines,
java.lang.Integer skipLines)
|
static java.lang.String |
getStackTrace(java.lang.Throwable throwable,
java.lang.Integer numberOfStackTraceLines,
java.lang.Integer skipLines)
|
static java.lang.String |
prettyPrintLargeNumber(long bigNumber)
US-style pretty-printing of large numbers, adding a comma for every thousand. |
static void |
printPartitionRepository(PartitionRepository repo,
java.io.PrintStream printStream)
Instrumentation of partition repo structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DOTS
public static final java.lang.String NOT_SUPPORTED
public static final java.lang.String NOT_YET_SUPPORTED
public static final java.lang.String REDEFINED_ELSEWHERE
public static final java.lang.String REDEFINED
public static final java.lang.String NOT_APPLICABLE
public static final java.lang.String SKIPPED
public static final java.lang.String TODO
public static final java.lang.String TEMPORARILY_ISOLATED
public static final java.lang.String TEMPORARY
public static final java.lang.String DEBUG_LEVEL_INDENTATION
public static final java.lang.String TRACE_LEVEL_INDENTATION
Constructor Detail |
---|
public InstrumentationUtils()
Method Detail |
---|
public static java.lang.String buildTestingOfMethodString(java.lang.String methodName)
public static java.lang.String buildTestingOfMethodString(java.lang.Object testTarget, java.lang.String methodName)
testTarget
parameter to be used wherever test methods are inherited.
public static java.lang.String buildTestingOfMethodString(java.lang.Object instance, java.lang.String methodName, java.lang.String deviation)
testTarget
parameter to be used wherever test methods are inherited.
public static java.lang.String buildSimpleClassMethodString(java.lang.Object instance, java.lang.String methodName)
public static java.lang.String buildDebugLogLevelIterationMessage(int iterationNumber, java.lang.Object instance, java.lang.String methodName)
public static java.lang.String buildThreadNumberAndMessage(java.lang.String message)
public static java.lang.String buildThreadNumberAndMessage(java.lang.Object instance, java.lang.String methodName, java.lang.String message)
public static java.lang.String buildMemoryConsumptionMessage()
public static java.lang.String getStackTrace(java.lang.Integer numberOfStackTraceLines, java.lang.Integer skipLines)
numberOfStackTraceLines
- the number of stack trace lines wantedskipLines
- the number of stack trace lines to skip, counting from the top
public static java.lang.String getStackTrace(java.lang.Throwable throwable, java.lang.Integer numberOfStackTraceLines, java.lang.Integer skipLines)
throwable
- the thrown exception to harvest stacktrace fromnumberOfStackTraceLines
- the number of stack trace lines wantedskipLines
- the number of stack trace lines to skip, counting from the top
public static java.lang.String buildMessageWithStackTrace(java.lang.String message, java.lang.Integer numberOfStackTraceLines, int skipLines)
message
- message to print to System.err
numberOfStackTraceLines
- the number of stack trace lines wantedskipLines
- the number of stack trace lines to skip, counting from the top
public static java.lang.String buildMessageWithStackTrace(java.lang.Throwable throwable, java.lang.String message, java.lang.Integer numberOfStackTraceLines, int skipLines)
throwable
- the thrown exception to harvest stacktrace frommessage
- message to print to System.err
numberOfStackTraceLines
- the number of stack trace lines wantedskipLines
- the number of stack trace lines to skip, counting from the top
public static java.lang.String prettyPrintLargeNumber(long bigNumber)
public static void printPartitionRepository(PartitionRepository repo, java.io.PrintStream printStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |