01: // $Id: TRACE.java,v 1.2 2004/03/30 06:47:21 belaban Exp $
02:
03: package org.jgroups.protocols;
04:
05: import org.jgroups.Event;
06: import org.jgroups.stack.Protocol;
07:
08: public class TRACE extends Protocol {
09:
10: public TRACE() {
11: }
12:
13: public String getName() {
14: return "TRACE";
15: }
16:
17: public void up(Event evt) {
18: System.out
19: .println("---------------- TRACE (received) ----------------------");
20: System.out.println(evt);
21: System.out
22: .println("--------------------------------------------------------");
23: passUp(evt);
24: }
25:
26: public void down(Event evt) {
27: System.out
28: .println("------------------- TRACE (sent) -----------------------");
29: System.out.println(evt);
30: System.out
31: .println("--------------------------------------------------------");
32: passDown(evt);
33: }
34:
35: public String toString() {
36: return "Protocol TRACE";
37: }
38:
39: }
|