org.jboss.javagroups.protocols
Class EVENT_TRACE

java.lang.Object
  extended by org.jgroups.stack.Protocol
      extended by org.jboss.javagroups.protocols.EVENT_TRACE

public class EVENT_TRACE
extends org.jgroups.stack.Protocol

A trival implementation of Protocol that traces all activity through it to its logger. This should be inserted between any two protocols you which to view the events between. Its supports a name property that allows you to insert the element multiple times in a stack to trace multiple protocols. An example config for the ClusterPartition for such a usage is:

   
    
    JNDITestPartition
    
        
           
           
           
           
           
           
           
           

           
           
           
        
     
  
 

Version:
$Revision: 1.4.6.1 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.jgroups.stack.Protocol
down_handler, down_prot, down_queue, down_thread, down_thread_prio, observer, props, stack, up_handler, up_prot, up_queue, up_thread, up_thread_prio
 
Constructor Summary
EVENT_TRACE()
           
 
Method Summary
 void down(org.jgroups.Event event)
           
 String getName()
           
 String printEventMsg(org.jgroups.Message msg)
           
 boolean setProperties(Properties props)
           
 void up(org.jgroups.Event event)
           
 
Methods inherited from class org.jgroups.stack.Protocol
destroy, getDownProtocol, getDownQueue, getProperties, getUpProtocol, getUpQueue, handleSpecialDownEvent, init, passDown, passUp, providedDownServices, providedUpServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, setDownProtocol, setObserver, setPropertiesInternal, setProtocolStack, setUpProtocol, start, startDownHandler, startUpHandler, stop, stopInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EVENT_TRACE

public EVENT_TRACE()
Method Detail

getName

public String getName()
Specified by:
getName in class org.jgroups.stack.Protocol

setProperties

public boolean setProperties(Properties props)
Overrides:
setProperties in class org.jgroups.stack.Protocol
Parameters:
props -
Returns:

up

public void up(org.jgroups.Event event)
Overrides:
up in class org.jgroups.stack.Protocol

down

public void down(org.jgroups.Event event)
Overrides:
down in class org.jgroups.stack.Protocol

printEventMsg

public String printEventMsg(org.jgroups.Message msg)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.