• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ThreadDeathEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.jdi.event.ThreadDeathEvent的典型用法代码示例。如果您正苦于以下问题:Java ThreadDeathEvent类的具体用法?Java ThreadDeathEvent怎么用?Java ThreadDeathEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ThreadDeathEvent类属于com.sun.jdi.event包,在下文中一共展示了ThreadDeathEvent类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: wrap

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
public static F3Event wrap(F3VirtualMachine f3vm, Event evt) {
    if (evt == null) {
        return null;
    }
    if (evt instanceof AccessWatchpointEvent) {
        return new F3AccessWatchpointEvent(f3vm, (AccessWatchpointEvent)evt);
    } else if (evt instanceof BreakpointEvent) {
        return new F3BreakpointEvent(f3vm, (BreakpointEvent)evt);
    } else if (evt instanceof ClassPrepareEvent) {
        return new F3ClassPrepareEvent(f3vm, (ClassPrepareEvent)evt);
    } else if (evt instanceof ClassUnloadEvent) {
        return new F3ClassUnloadEvent(f3vm, (ClassUnloadEvent)evt);
    } else if (evt instanceof ExceptionEvent) {
        return new F3ExceptionEvent(f3vm, (ExceptionEvent)evt);
    } else if (evt instanceof MethodEntryEvent) {
        return new F3MethodEntryEvent(f3vm, (MethodEntryEvent)evt);
    } else if (evt instanceof MethodExitEvent) {
        return new F3MethodExitEvent(f3vm, (MethodExitEvent)evt);
    } else if (evt instanceof ModificationWatchpointEvent) {
        return new F3ModificationWatchpointEvent(f3vm, (ModificationWatchpointEvent)evt);
    } else if (evt instanceof MonitorContendedEnterEvent) {
        return new F3MonitorContendedEnterEvent(f3vm, (MonitorContendedEnterEvent)evt);
    } else if (evt instanceof MonitorContendedEnteredEvent) {
        return new F3MonitorContendedEnteredEvent(f3vm, (MonitorContendedEnteredEvent)evt);
    } else if (evt instanceof MonitorWaitEvent) {
        return new F3MonitorWaitEvent(f3vm, (MonitorWaitEvent)evt);
    } else if (evt instanceof MonitorWaitedEvent) {
        return new F3MonitorWaitedEvent(f3vm, (MonitorWaitedEvent)evt);
    } else if (evt instanceof StepEvent) {
        return new F3StepEvent(f3vm, (StepEvent)evt);
    } else if (evt instanceof ThreadDeathEvent) {
        return new F3ThreadDeathEvent(f3vm, (ThreadDeathEvent)evt);
    } else if (evt instanceof ThreadStartEvent) {
        return new F3ThreadStartEvent(f3vm, (ThreadStartEvent)evt);
    } else if (evt instanceof VMDeathEvent) {
        return new F3VMDeathEvent(f3vm, (VMDeathEvent)evt);
    } else if (evt instanceof VMDisconnectEvent) {
        return new F3VMDisconnectEvent(f3vm, (VMDisconnectEvent)evt);
    } else if (evt instanceof VMStartEvent) {
        return new F3VMStartEvent(f3vm, (VMStartEvent)evt);
    } else if (evt instanceof WatchpointEvent) {
        return new F3WatchpointEvent(f3vm, (WatchpointEvent)evt);
    } else if (evt instanceof LocatableEvent) {
        return new F3LocatableEvent(f3vm, (LocatableEvent)evt);
    } else {
        return new F3Event(f3vm, evt);
    }
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:49,代码来源:F3Event.java


示例2: jdiThreadDeath

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
@Override
public synchronized void jdiThreadDeath(final ThreadDeathEvent event)
{
  if (!override && !owner.isStarted())
  {
    return;
  }
  try
  {
    if (vmThreadId != null)
    {
      delegate.handleThreadDeath(event);
    }
  }
  catch (final Throwable e)
  {
    JiveDebugPlugin.log(e);
  }
}
 
开发者ID:UBPL,项目名称:jive,代码行数:20,代码来源:JDIEventHandler.java


示例3: handleEvent

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
/**
* Dispatch incoming events
*/
   
   private void handleEvent(Event event) {
       if (event instanceof ExceptionEvent) {
       	if (!enableProfiling)
       		exceptionManager.exceptionEvent((ExceptionEvent)event);
       } else if (event instanceof MethodEntryEvent) {
       	methodEntryEvent((MethodEntryEvent)event);
       } else if (event instanceof MethodExitEvent) {
       	methodExitEvent((MethodExitEvent)event);
       } else if (event instanceof ThreadDeathEvent) {
           threadeath.threadDeathEvent((ThreadDeathEvent)event);
       } else if (event instanceof VMDeathEvent) {
       	vmDeathEvent((VMDeathEvent)event);
       } else if (event instanceof VMDisconnectEvent) {
           connected = disconnect.vmDisconnectEvent((VMDisconnectEvent)event);
       } 
   }
 
开发者ID:DiegoArranzGarcia,项目名称:JavaTracer,代码行数:21,代码来源:EventThread.java


示例4: threadDeathEvent

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
public void threadDeathEvent(ThreadDeathEvent evt) {
    synchronized (listeners) {
        for (EventNotifier en : listeners) {
            en.threadDeathEvent(evt);
        }
    }
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:8,代码来源:Debugger.java


示例5: handleThreadDeath

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
void handleThreadDeath(final ThreadDeathEvent event)
{
  final ThreadReference thread = event.thread();
  /**
   * If a thread dies with outstanding frames, then all frames are popped with an exception. An
   * unexpected termination is gracefully handled by the execution model.
   */
  while (executionState().frameCount(thread.uniqueID()) != 0)
  {
    // if by any chance the VM generated a throw event
    if (executionState().containsException(thread.uniqueID()))
    {
      final ExceptionEvent exception = outstandingException(thread);
      dispatcher().dispatchThrowEvent(exception, true);
    }
    else
    {
      dispatcher().dispatchThrowEvent(thread, true);
    }
  }
  if (executionState().containsException(thread.uniqueID()))
  {
    removeException(thread);
  }
  handlePendingReturned(null, null, event.thread());
  final IThreadValue threadValue = owner.model().valueFactory()
      .createThread(thread.uniqueID(), thread.name());
  // avoid duplicate thread termination
  final IThreadStartEvent threadStart = owner.model().lookupThread(threadValue);
  if (threadStart != null && threadStart.terminator() == null)
  {
    dispatcher().dispatchThreadDeath(event.thread());
  }
}
 
开发者ID:UBPL,项目名称:jive,代码行数:35,代码来源:JDIEventHandlerDelegate.java


示例6: jdiThreadDeath

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
@Override
public void jdiThreadDeath(final ThreadDeathEvent event)
{
  //
  this.currentEvent = null;
  this.currentThread = event.thread();
  //
  this.currentEvent = null;
  this.currentThread = null;
}
 
开发者ID:UBPL,项目名称:jive,代码行数:11,代码来源:EventHandlerLite.java


示例7: handleEvent

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
@Override
public boolean handleEvent(final Event event, final JDIDebugTarget target,
    final boolean suspendVote, final EventSet eventSet)
{
  if (isActive()
      && jdiManager().modelFilter().acceptsThread(((ThreadDeathEvent) event).thread()))
  {
    jdiHandler().jdiThreadDeath((ThreadDeathEvent) event);
  }
  return super.handleEvent(event, target, suspendVote, eventSet);
}
 
开发者ID:UBPL,项目名称:jive,代码行数:12,代码来源:JiveDebugTarget.java


示例8: threadEvents

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
/**
 * Gets the observable object for thread events.
 * @return      the observable object for thread events
 */
@Override
public Observable<DebugEvent> threadEvents() {
    return this.events().filter(debugEvent -> debugEvent.event instanceof ThreadStartEvent
            || debugEvent.event instanceof ThreadDeathEvent);
}
 
开发者ID:Microsoft,项目名称:java-debug,代码行数:10,代码来源:EventHub.java


示例9: F3ThreadDeathEvent

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
public F3ThreadDeathEvent(F3VirtualMachine f3vm, ThreadDeathEvent underlying) {
    super(f3vm, underlying);
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:4,代码来源:F3ThreadDeathEvent.java


示例10: underlying

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
@Override
protected ThreadDeathEvent underlying() {
    return (ThreadDeathEvent) super.underlying();
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:5,代码来源:F3ThreadDeathEvent.java


示例11: threadDeathEvent

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
public void threadDeathEvent(ThreadDeathEvent e) {
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:3,代码来源:EventNotifierAdapter.java


示例12: VisitableThreadDeathEvent

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
public VisitableThreadDeathEvent(ThreadDeathEvent event) {
    this.event = event;
}
 
开发者ID:adrianherrera,项目名称:jdivisitor,代码行数:4,代码来源:VisitableThreadDeathEvent.java


示例13: visit

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
@Override
public void visit(ThreadDeathEvent event) {
}
 
开发者ID:adrianherrera,项目名称:jdivisitor,代码行数:4,代码来源:EmptyEventVisitor.java


示例14: visit

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
/**
 * Visit a {@code ThreadDeathEvent}.
 *
 * @param event Event to visit
 */
void visit(ThreadDeathEvent event);
 
开发者ID:adrianherrera,项目名称:jdivisitor,代码行数:7,代码来源:EventVisitor.java


示例15: jdiThreadDeath

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
/**
 * Notification of a completed thread in the target VM.
 */
void jdiThreadDeath(ThreadDeathEvent event);
 
开发者ID:UBPL,项目名称:jive,代码行数:5,代码来源:IJDIEventHandler.java


示例16: threadDeathEvent

import com.sun.jdi.event.ThreadDeathEvent; //导入依赖的package包/类
public void threadDeathEvent(ThreadDeathEvent event) {
     
}
 
开发者ID:DiegoArranzGarcia,项目名称:JavaTracer,代码行数:4,代码来源:ThreadDeathManager.java



注:本文中的com.sun.jdi.event.ThreadDeathEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SwipeBackHelper类代码示例发布时间:2022-05-22
下一篇:
Java Dependency类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap