/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param opName * operation name associated with the event message * @param msg * event string message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, String opName, String msg, Object... args) { tnt(severity, OpType.EVENT, opName, null, null, 0, msg, args); }
/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param opName * operation name associated with the event message * @param msg * event string message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, String opName, byte[] msg, Object... args) { tnt(severity, OpType.EVENT, opName, null, null, 0, msg, args); }
/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param type * operation type * @param opName * operation name associated with the event message * @param msg * event string message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, OpType type, String opName, byte[] msg, Object... args) { tnt(severity, type, opName, null, null, 0, msg, args); }
/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param type * operation type * @param opName * operation name associated with the event message * @param msg * event string message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, OpType type, String opName, String msg, Object... args) { tnt(severity, type, opName, null, null, 0, msg, args); }
/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param type * operation type * @param opName * operation name associated with the event message * @param cid * event correlator * @param elapsed * elapsed time of the event in microseconds. * @param msg * event string message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, OpType type, String opName, String cid, long elapsed, byte[] msg, Object... args) { tnt(severity, type, opName, cid, null, elapsed, msg, args); }
/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param type * operation type * @param opName * operation name associated with the event message * @param cid * event correlator * @param elapsed * elapsed time of the event in microseconds. * @param msg * event string message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, OpType type, String opName, String cid, long elapsed, String msg, Object... args) { tnt(severity, type, opName, cid, null, elapsed, msg, args); }
/** * {@inheritDoc} */ @Override public void endElement(String uri, String localName, String name) throws SAXException { if (name.equals(SIM_XML_MSG)) { recordMsgData(); curMsg = null; } else if (name.equals(SIM_XML_SNAPSHOT)) { if (curEvent != null) { curEvent.getOperation().addSnapshot(curSnapshot); } else { curActivity.add(curSnapshot); } curSnapshot = null; } else if (name.equals(SIM_XML_ACTIVITY)) { stopActivity(); } else if (name.equals(SIM_XML_EVENT)) { if (curActivity != null) { curActivity.tnt(curEvent); } else { Tracker tracker = trackers.get(curEvent.getSource().getFQName()); if (tracker != null) { tracker.tnt(curEvent); } } curEvent = null; } curElement = activeElements.pop(); }
/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param type * operation type * @param opName * operation name associated with the event message * @param cid * event correlator * @param tag * message tag * @param elapsed * elapsed time of the event in microseconds. * @param msg * event binary message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, OpType type, String opName, String cid, String tag, long elapsed, byte[] msg, Object... args) { TrackingEvent event = tracker.newEvent(severity, type, opName, cid, tag, msg, args); Throwable ex = Utils.getThrowable(args); long elapsedUsec = elapsed > 0 ? elapsed : getLastElapsedUsec(); event.stop(ex != null ? OpCompCode.WARNING : OpCompCode.SUCCESS, 0, ex, Useconds.CURRENT.get(), elapsedUsec); tnt(event); }
/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param type * operation type * @param opName * operation name associated with the event message * @param cid * event correlator * @param tag * message tag * @param elapsed * elapsed time of the event in microseconds. * @param msg * event string message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, OpType type, String opName, String cid, String tag, long elapsed, String msg, Object... args) { TrackingEvent event = tracker.newEvent(severity, type, opName, cid, tag, msg, args); Throwable ex = Utils.getThrowable(args); long elapsedUsec = elapsed > 0 ? elapsed : getLastElapsedUsec(); event.stop(ex != null ? OpCompCode.WARNING : OpCompCode.SUCCESS, 0, ex, Useconds.CURRENT.get(), elapsedUsec); tnt(event); }