Examples of EThread


Examples of net.zero.smarttrace.core.data.EThread

    this.objectFilter = objectFilter;
    }

  public EThread createThread(ThreadReference thread)
    {
    EThread ret=new EThread();
    ret.setName(thread.name());
    ret.setThreadGroup(createQueryThreadGroup(thread.threadGroup()));
    ret.setCompleteName(ret.getThreadGroup().getCompleteName() + "." + thread.name());
   
    JPAManager.getJPAManager().getEntityManager().persist(ret);
   
    return ret;
    }
View Full Code Here

Examples of net.zero.smarttrace.core.data.EThread

    return ret;
    }
 
  public EThread createQueryThread(ThreadReference thread)
    {
    EThread ret=dataQuerier.getThread(getThreadCompleteName(thread));
    if(ret==null)
      ret=createThread(thread);
    return ret;
    }
View Full Code Here

Examples of net.zero.smarttrace.core.data.EThread

    try
      {
      List<StackFrame> frames = thread.frames();
      if(frames.size()>0)
        {
        EThread eThread = createQueryThread(thread);
        ret.setThreadSequence(getThreadSequence(eThread));
        ret.setStackFrameLocation(getStackFrameLocation(eThread, frames, 0));
        }
      }
    catch (IncompatibleThreadStateException e)
View Full Code Here

Examples of net.zero.smarttrace.data.EThread

  public TraceDataGenerator(Chronometer chrono)
    {this.chrono = chrono;}

  public EThread createThread(ThreadReference thread)
    {
    EThread ret=new EThread();
    ret.setName(thread.name());
    ret.setThreadGroup(createQueryThreadGroup(thread.threadGroup()));
    ret.setCompleteName(ret.getThreadGroup().getCompleteName() + "." + thread.name());
   
    JPAManager.getJPAManager().getEntityManager().persist(ret);
   
    return ret;
    }
View Full Code Here

Examples of net.zero.smarttrace.data.EThread

    return ret;
    }
 
  public EThread createQueryThread(ThreadReference thread)
    {
    EThread ret=dataQuerier.getThread(getThreadCompleteName(thread));
    if(ret==null)
      ret=createThread(thread);
    return ret;
    }
View Full Code Here

Examples of net.zero.smarttrace.data.EThread

    return ret;
    }
 
  private void loadStackTraceAndLocation(EStackFrameLocatableEvent ret, ThreadReference thread)
    {
    EThread eThread = createQueryThread(thread);
   
    try
      {
      List<StackFrame> frames = thread.frames();
      if(frames.size()>0)
        {
        ret.setStackFrame(getStackFrame(eThread, frames, 0));
        ret.setLineNumber(frames.get(0).location().lineNumber());
        }
      }
    catch (IncompatibleThreadStateException e)
      {
      throw new RuntimeException("No se pudo obtener el stack frame para el hilo " + eThread.getCompleteName(), e);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.