org.apache.geronimo.remoting.router
Class AbstractRouterRouter

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

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

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

Constructor Summary
AbstractRouterRouter()
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 long getStoppedRoutingTimeout()
           
protected abstract  Router lookupRouterFrom(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
 

Constructor Detail

AbstractRouterRouter

public AbstractRouterRouter()
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

lookupRouterFrom

protected abstract Router lookupRouterFrom(URI to)

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


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