Codota Logo
TrackingActivity.add
Code IndexAdd Codota to your IDE (free)

How to use
add
method
in
com.jkoolcloud.tnt4j.tracker.TrackingActivity

Best Java code snippets using com.jkoolcloud.tnt4j.tracker.TrackingActivity.add (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: com.jkoolcloud/tnt4j

/**
 * Track and Trace given {@link TrackingEvent} instance correlated with current activity
 * 
 * @param event
 *            tracking instance to be tracked
 */
public void tnt(TrackingEvent event) {
  if (isStopped()) {
    throw new IllegalStateException(
        "Activity already stopped: name=" + getName() + ", id=" + this.getTrackingId());
  }
  add(event);
  lastEventNanos = System.nanoTime();
  tracker.tnt(event);
}
origin: com.jkoolcloud/tnt4j

/**
 * Push an instance of {@link TrackingActivity} on top of the stack. Invoke this when activity starts. The stack is
 * maintained per thread in thread local.
 *
 * @param item
 *            activity to be pushed on the current stack
 * @return current tracker instance
 */
protected Tracker push(TrackingActivity item) {
  if (!keepContext) {
    return this;
  }
  LightStack<TrackingActivity> stack = ACTIVITY_STACK.get();
  if (stack == null) {
    stack = new LightStack<>();
    ACTIVITY_STACK.set(stack);
  }
  // associate with the parent activity if there is any
  TrackingActivity parent = stack.peek(null);
  if (parent != null) {
    parent.add(item);
  }
  stack.push(item);
  pushCount.incrementAndGet();
  return this;
}
origin: com.jkoolcloud/tnt4j

/**
 * Track and Trace given {@link com.jkoolcloud.tnt4j.core.Snapshot} instance correlated with current activity
 * 
 * @param snapshot
 *            snapshot instance to be tracked
 */
public void tnt(Snapshot snapshot) {
  if (isStopped()) {
    throw new IllegalStateException(
        "Activity already stopped: name=" + getName() + ", id=" + this.getTrackingId());
  }
  add(snapshot);
  tracker.tnt(snapshot);
}
origin: com.jkoolcloud/jesl

/**
 * {@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();
}
origin: com.jkoolcloud/jesl

parentActivity.add(curActivity);
com.jkoolcloud.tnt4j.trackerTrackingActivityadd

Popular methods of TrackingActivity

  • setException
  • setResource
  • setSource
  • setStatus
  • start
  • stop
    Indicates that application activity has ended.
  • tnt
    Track and Trace given TrackingEvent instance correlated with current activity
  • getIdCount
  • getLocation
  • getName
  • getPID
  • getResource
  • getPID,
  • getResource,
  • getSource,
  • getStartTime,
  • getStatus,
  • getTID,
  • isNoop,
  • setCompCode,
  • setCorrelator

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now