Tabnine Logo
ThreadSnapshotEventPojo.counters
Code IndexAdd Tabnine to your IDE (free)

How to use
counters
method
in
org.gridkit.jvmtool.codec.stacktrace.ThreadSnapshotEventPojo

Best Java code snippets using org.gridkit.jvmtool.codec.stacktrace.ThreadSnapshotEventPojo.counters (Showing top 6 results out of 315)

origin: aragozin/jvm-tools

  pojo.tags().put("jstack.threadSemaphore", semaphore);
pojo.counters().set("jstack.nid", nid);
if (daemon) {
  pojo.tags().put("jstack.threadIsDaemon", "true");
origin: aragozin/jvm-tools

public void loadFrom(ThreadSnapshot event) {
  if (event instanceof ThreadSnapshotEvent) {
    loadFrom((ThreadSnapshotEvent)event);
  }
  else {
    timestamp(event.timestamp());
    threadId(event.threadId());
    threadName(event.threadName());
    threadState(event.threadState());
    counters().clear();;
    counters().setAll(event.counters());
    stackTrace(event.stackTrace());
    if (event instanceof TaggedEvent) {
      tags().clear();
      tags().putAll(((TaggedEvent) event).tags());
    }
  }
}
origin: aragozin/jvm-tools

  private void copyToBuf(ThreadSnapshotEvent event) {
    eventBuf.loadFrom(event);
//        eventBuf.tags().put(JvmEvents.JVM_EVENT_KEY, JvmEvents.EVENT_THREAD_SNAPSHOT);
    if (event.threadId() >= 0) {
      eventBuf.counters().set(JvmEvents.THREAD_ID, event.threadId());
    }
    if (event.threadName() != null) {
      eventBuf.tags().remove(JvmEvents.THREAD_NAME);
      eventBuf.tags().put(JvmEvents.THREAD_NAME, event.threadName());
    }
    if (event.threadState() != null) {
      eventBuf.tags().remove(JvmEvents.THREAD_STATE);
      eventBuf.tags().put(JvmEvents.THREAD_STATE, event.threadState().toString());
    }
  }

origin: org.gridkit.jvmtool/sjk-core

  pojo.tags().put("jstack.threadSemaphore", semaphore);
pojo.counters().set("jstack.nid", nid);
if (daemon) {
  pojo.tags().put("jstack.threadIsDaemon", "true");
origin: org.gridkit.jvmtool/sjk-stacktrace

public void loadFrom(ThreadSnapshot event) {
  if (event instanceof ThreadSnapshotEvent) {
    loadFrom((ThreadSnapshotEvent)event);
  }
  else {
    timestamp(event.timestamp());
    threadId(event.threadId());
    threadName(event.threadName());
    threadState(event.threadState());
    counters().clear();;
    counters().setAll(event.counters());
    stackTrace(event.stackTrace());
    if (event instanceof TaggedEvent) {
      tags().clear();
      tags().putAll(((TaggedEvent) event).tags());
    }
  }
}
origin: org.gridkit.jvmtool/sjk-stacktrace

  private void copyToBuf(ThreadSnapshotEvent event) {
    eventBuf.loadFrom(event);
//        eventBuf.tags().put(JvmEvents.JVM_EVENT_KEY, JvmEvents.EVENT_THREAD_SNAPSHOT);
    if (event.threadId() >= 0) {
      eventBuf.counters().set(JvmEvents.THREAD_ID, event.threadId());
    }
    if (event.threadName() != null) {
      eventBuf.tags().remove(JvmEvents.THREAD_NAME);
      eventBuf.tags().put(JvmEvents.THREAD_NAME, event.threadName());
    }
    if (event.threadState() != null) {
      eventBuf.tags().remove(JvmEvents.THREAD_STATE);
      eventBuf.tags().put(JvmEvents.THREAD_STATE, event.threadState().toString());
    }
  }

org.gridkit.jvmtool.codec.stacktraceThreadSnapshotEventPojocounters

Popular methods of ThreadSnapshotEventPojo

  • stackTrace
  • threadId
  • threadName
  • timestamp
  • loadFrom
  • tags
  • threadState
  • <init>
  • copyCommonEventFrom
  • loadFromRawEvent
  • state
  • state

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Join (org.hibernate.mapping)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now