org.apache.geronimo.remoting.router
Class AbstractInterceptorRouter

java.lang.Object
  extended byorg.apache.geronimo.remoting.router.AbstractInterceptorRouter
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle, Router
Direct Known Subclasses:
InterceptorRegistryRouter, JMXRouter

public abstract class AbstractInterceptorRouter
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle, Router

Version:
$Revision: 1.10 $ $Date: 2004/06/05 07:53:22 $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
AbstractInterceptorRouter()
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 long getStoppedRoutingTimeout()
           
protected abstract  org.apache.geronimo.core.service.Interceptor lookupInterceptorFrom(URI to)
           
 void sendDatagram(URI to, Msg msg)
          Sends a datagram message.
 Msg sendRequest(URI to, Msg msg)
          Sends a request message to the other end.
 void setStoppedRoutingTimeout(long stoppedRoutingTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

AbstractInterceptorRouter

public AbstractInterceptorRouter()
Method Detail

getStoppedRoutingTimeout

public long getStoppedRoutingTimeout()

setStoppedRoutingTimeout

public void setStoppedRoutingTimeout(long stoppedRoutingTimeout)

sendRequest

public Msg sendRequest(URI to,
                       Msg msg)
                throws TransportException
Description copied from interface: Router
Sends a request message to the other end.

Specified by:
sendRequest in interface Router
Parameters:
msg -
Returns:
Throws:
TransportException

sendDatagram

public void sendDatagram(URI to,
                         Msg msg)
                  throws TransportException
Description copied from interface: Router
Sends a datagram message. No response is expected.

Specified by:
sendDatagram in interface Router
Parameters:
msg -
Returns:
Throws:
TransportException

lookupInterceptorFrom

protected abstract org.apache.geronimo.core.service.Interceptor lookupInterceptorFrom(URI to)
                                                                               throws Throwable
Throws:
Throwable

doStart

public void doStart()
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle

doStop

public void doStop()
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.