/** * Creates a logical application activity object with the specified signature. * * @param level * activity severity level * @param name * activity name * @throws NullPointerException * if the signature is {@code null} * @throws IllegalArgumentException * if the signature is empty or is too long * @see #setTrackingId(String) */ protected TrackingActivity(OpLevel level, String name) { super(null, name); setSeverity(level); }
/** * Creates a logical application activity object with the specified signature. * * @param level * activity severity level * @param name * activity name * @param signature * activity signature * @param trk * {@link Tracker} instance associated with this activity * @throws NullPointerException * if the signature is {@code null} * @throws IllegalArgumentException * if the signature is empty or is too long * @see #setTrackingId(String) */ protected TrackingActivity(OpLevel level, String name, String signature, TrackerImpl trk) { super(signature, name, trk.getSource()); tracker = trk; setSeverity(level); setLocation(trk.getSource()); }
/** * Creates a logical application activity object with the specified signature. * * @param level * activity severity level * @param name * activity name * @param trk * {@link Tracker} instance associated with this activity * @throws NullPointerException * if the signature is {@code null} * @throws IllegalArgumentException * if the signature is empty or is too long * @see #setTrackingId(String) */ protected TrackingActivity(OpLevel level, String name, TrackerImpl trk) { super(trk.newUUID(), name, trk.getSource()); tracker = trk; setSeverity(level); setLocation(trk.getSource()); }
curActivity.setUser(user == null ? source.getUser() : user); curActivity.setStatus(status == null ? ActivityStatus.BEGIN : status); curActivity.setSeverity(sev == null ? OpLevel.INFO : sev); curActivity.setCompCode(cc == null ? OpCompCode.SUCCESS : cc); if (pid > 0L) {
activity.setUser(value); } else if (key.equalsIgnoreCase(PARAM_SEVERITY_LABEL)) { activity.setSeverity(OpLevel.valueOf(value)); } else if (key.equalsIgnoreCase(PARAM_EXCEPTION_LABEL)) { activity.setException(value);