|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.javagroups.debug.ProtocolView
Graphical view of a protocol instance
Constructor Summary | |
ProtocolView(Protocol p,
javax.swing.table.DefaultTableModel model,
int my_index)
|
|
ProtocolView(Protocol p,
javax.swing.table.DefaultTableModel model,
int my_index,
boolean cummulative)
|
Method Summary | |
boolean |
down(Event evt,
int num_evts)
Called when an event is about to be dispatched to the protocol (before it is dispatched). |
boolean |
passDown(Event evt)
Called when an event is about to be passed down to the next lower protocol. |
boolean |
passUp(Event evt)
Called when an event is about to be passed up to the next higher protocol. |
void |
setProtocol(Protocol prot)
Called when a ProtocolObserver is attached to a protcol. |
java.lang.String |
toString()
|
boolean |
up(Event evt,
int num_evts)
Called when an event is about to be dispatched to the protocol (before it is dispatched). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProtocolView(Protocol p, javax.swing.table.DefaultTableModel model, int my_index)
public ProtocolView(Protocol p, javax.swing.table.DefaultTableModel model, int my_index, boolean cummulative)
Method Detail |
public void setProtocol(Protocol prot)
ProtocolObserver
setProtocol
in interface ProtocolObserver
public boolean up(Event evt, int num_evts)
ProtocolObserver
up
in interface ProtocolObserver
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !num_evts
- The number of events currently in the up-queue (including this event).
This number may increase while we're in the callback as the up-handler thread in the
upper protocol layer puts new events into the up queue.
public boolean passUp(Event evt)
ProtocolObserver
passUp
in interface ProtocolObserver
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !
public boolean down(Event evt, int num_evts)
ProtocolObserver
down
in interface ProtocolObserver
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !num_evts
- The number of events currently in the down-queue (including this event).
This number may increase while we're in the callback as the down-handler thread in the
upper protocol layer puts new events into the down queue.
public boolean passDown(Event evt)
ProtocolObserver
passDown
in interface ProtocolObserver
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |