|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wgen.op.OpUtils
Utils class that runs Ops and provides some tracing functionality.
| Constructor Summary | |
OpUtils()
|
|
| Method Summary | |
static java.util.Map |
getLoggableFieldsAndValues(Op op)
Used by the ParamTreePathCallbackTransformer to generate a map of input fields and values. |
static void |
logOpTiming(long t1,
long t2,
Op op)
Logs an OP-TIME message to the application log for the DataOp. |
static boolean |
looksLikeLoggableInput(Op op,
java.lang.reflect.Field field)
Called by the OpToStringBuilder to determine whether or not a field should be included in an Op's string representation. |
static void |
runOp(Op op,
CallExecutor callExecutor)
Execute an Op and time it. |
static java.lang.String |
toString(Op op)
Create a string representation of a DataOp. |
protected static MappedConnectionFactory |
wrapSingleConnection(java.sql.Connection connection,
TraceKey traceKey)
Convenience function to wrap single connections in a MappedConnectionFactory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OpUtils()
| Method Detail |
public static void runOp(Op op,
CallExecutor callExecutor)
throws OpException
op - the DataOp to executecallExecutor -
OpExceptionpublic static java.lang.String toString(Op op)
op - the op to be toString'ed
public static void logOpTiming(long t1,
long t2,
Op op)
t1 - the start timet2 - the end timeop - the op that was executed
public static java.util.Map getLoggableFieldsAndValues(Op op)
throws java.lang.IllegalAccessException
op - the op to be examined
java.lang.IllegalAccessExceptionParamTreePathCallbackTransformer.getOpParams(net.wgen.op.db.DatabaseCall)
public static boolean looksLikeLoggableInput(Op op,
java.lang.reflect.Field field)
op - field -
protected static MappedConnectionFactory wrapSingleConnection(java.sql.Connection connection,
TraceKey traceKey)
connection - traceKey -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||