public class CodeBlockHelper extends Object
Usage:
CodeBlockType traceType = CodeBlockHelper.newCodeBlockType("REPORT", "Report generation");
CodeBlockTrace trace = CodeBlockHelper.newCodeBlockTrace(traceType, "report1", "Report 1", java.util.Collections.EMPTY_MAP).begin();
try {
// Generate the report 1
// ...
} finally {
trace.end();
}
| Constructor and Description |
|---|
CodeBlockHelper() |
| Modifier and Type | Method and Description |
|---|---|
static CodeBlockTrace |
newCodeBlockTrace(CodeBlockType type,
String traceId,
String traceDescr,
Map<String,Object> traceContext) |
static CodeBlockType |
newCodeBlockType(String id,
String description) |
public static CodeBlockType newCodeBlockType(String id, String description)
public static CodeBlockTrace newCodeBlockTrace(CodeBlockType type, String traceId, String traceDescr, Map<String,Object> traceContext)
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.