org.codehaus.wadi.servicespace.basic
Class BasicServiceSpaceDispatcher

java.lang.Object
  extended by org.codehaus.wadi.group.impl.AbstractDispatcher
      extended by org.codehaus.wadi.servicespace.basic.BasicServiceSpaceDispatcher
All Implemented Interfaces:
Dispatcher, EnvelopeListener

public class BasicServiceSpaceDispatcher
extends AbstractDispatcher

Version:
$Revision: $

Nested Class Summary
protected  class BasicServiceSpaceDispatcher.BasicServiceSpaceCluster
           
protected static class BasicServiceSpaceDispatcher.ExecuteInThread
           
 
Field Summary
 
Fields inherited from class org.codehaus.wadi.group.impl.AbstractDispatcher
_executor, _factory, interceptors, log, rvMap
 
Constructor Summary
BasicServiceSpaceDispatcher(BasicServiceSpace serviceSpace, ServiceSpaceEnvelopeHelper envelopeHelper)
           
 
Method Summary
 Envelope createEnvelope()
           
protected  void doSend(Address target, Envelope envelope)
           
 Cluster getCluster()
           
 java.lang.String getPeerName(Address address)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.codehaus.wadi.group.impl.AbstractDispatcher
addInterceptor, addRendezVousEnvelope, attemptMultiRendezVous, attemptRendezVous, doOnEnvelope, exchangeSend, exchangeSend, exchangeSend, exchangeSend, getContext, getExecutor, getInterceptors, hook, newRendezVous, onEnvelope, onInboundEnvelope, onOutboundEnvelope, register, removeInterceptor, reply, reply, reply, send, send, send, send, setRendezVous, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicServiceSpaceDispatcher

public BasicServiceSpaceDispatcher(BasicServiceSpace serviceSpace,
                                   ServiceSpaceEnvelopeHelper envelopeHelper)
Method Detail

createEnvelope

public Envelope createEnvelope()

getCluster

public Cluster getCluster()

getPeerName

public java.lang.String getPeerName(Address address)

doSend

protected void doSend(Address target,
                      Envelope envelope)
               throws MessageExchangeException
Specified by:
doSend in class AbstractDispatcher
Throws:
MessageExchangeException

start

public void start()
           throws MessageExchangeException
Throws:
MessageExchangeException

stop

public void stop()
          throws MessageExchangeException
Throws:
MessageExchangeException


Copyright © 2011. All Rights Reserved.