Package net.zero.smarttrace.data

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


    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

    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

Related Classes of net.zero.smarttrace.data.EThread

Copyright © 2018 www.massapicom. 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.