solar.service.dispatch
Interface DispatchService

All Superinterfaces:
EventHandler, RequestHandler, Service
All Known Implementing Classes:
SolarDispatchService

public interface DispatchService
extends Service

The dispatching service receives events from one or more transports and dispatches them to local services.

Version:
$Id: DispatchService.java,v 1.8 2003/10/05 18:50:56 glchen Exp $
Author:
Guanling Chen

Method Summary
 void dispatchEvent(Event evt, Address dest, java.lang.String service, java.lang.String transport)
          Dispatch an event to specified destination using a transport service.
 Address getTransportAddress(java.lang.String name)
          Return local address of a transport service with specified name.
 TransportService getTransportService(java.lang.String name)
          Return a transport service with specified name.
 
Methods inherited from interface solar.service.Service
getName, getServiceManager, handleDispatchUnit, hasInited, init, initDependents, setName, setServiceManager, start, stop
 
Methods inherited from interface solar.api.EventHandler
handleEvent
 
Methods inherited from interface solar.api.RequestHandler
handleRequest
 

Method Detail

getTransportService

public TransportService getTransportService(java.lang.String name)
Return a transport service with specified name.


getTransportAddress

public Address getTransportAddress(java.lang.String name)
Return local address of a transport service with specified name.


dispatchEvent

public void dispatchEvent(Event evt,
                          Address dest,
                          java.lang.String service,
                          java.lang.String transport)
                   throws java.lang.Exception
Dispatch an event to specified destination using a transport service.

java.lang.Exception