/** * This method is used to accept an event that occurred on the socket * associated with this trace. Typically the event is a symbolic * description of the event such as an enum or a string. * * @param event this is the event that occurred on the socket */ public void trace(Object event) { trace(event, null); }
/** * This method is used to attach a trace to the specified channel. * Attaching a trace basically means associating events from that * trace with the specified socket. It ensures that the events * from a specific channel can be observed in isolation. * * @param channel this is the channel to associate with the trace * * @return this returns a trace associated with the channel */ public Trace attach(SelectableChannel channel) { Trace trace = null; if(analyzer != null) { trace = analyzer.attach(channel); } return new SocketTrace(trace); }
/** * This method is used to attach a trace to the specified channel. * Attaching a trace basically means associating events from that * trace with the specified socket. It ensures that the events * from a specific channel can be observed in isolation. * * @param channel this is the channel to associate with the trace * * @return this returns a trace associated with the channel */ public Trace attach(SocketChannel channel) { Trace trace = null; if(agent != null) { trace = agent.attach(channel); } return new SocketTrace(trace); }
/** * This method is used to attach a trace to the specified channel. * Attaching a trace basically means associating events from that * trace with the specified socket. It ensures that the events * from a specific channel can be observed in isolation. * * @param channel this is the channel to associate with the trace * * @return this returns a trace associated with the channel */ public Trace attach(SelectableChannel channel) { Trace trace = null; if(analyzer != null) { trace = analyzer.attach(channel); } return new SocketTrace(trace); }