@Override public void execute(Lookup ctx, InstrumentCommand cmd) { Session s = ctx.lookup(Session.class); Channel ch = ctx.lookup(Channel.class); if (s != null && ch != null) { try { try { ch.sendResponse(cmd, ACKCommand.class, s.loadTraceClass(cmd.getCode(), cmd.getArguments())); } catch (IOException e) { BTraceLogger.debugPrint(e); } } catch (Exception e) { try { ch.sendResponse(cmd, ACKCommand.class, false); } catch (IOException ioe) { BTraceLogger.debugPrint(ioe); } } } } }
@Override public void execute(Lookup ctx, InstrumentCommand cmd) { Session s = ctx.lookup(Session.class); Channel ch = ctx.lookup(Channel.class); if (s != null && ch != null) { try { try { ch.sendResponse(cmd, ACKCommand.class, s.loadTraceClass(cmd.getCode(), cmd.getArguments())); } catch (IOException e) { BTraceLogger.debugPrint(e); } } catch (Exception e) { try { ch.sendResponse(cmd, ACKCommand.class, false); } catch (IOException ioe) { BTraceLogger.debugPrint(ioe); } } } } }