solar.service.pack
Interface PackService

All Superinterfaces:
EventHandler, RequestHandler, Service
All Known Implementing Classes:
ClientPackService, ScribePackService

public interface PackService
extends Service

PACK service allows application to customize the flow-control policies.

Version:
$Id: PackService.java,v 1.14 2003/10/11 02:49:31 glchen Exp $
Author:
Guanling Chen

Method Summary
 void attachPublisher(Id pubId, Publisher publisher)
          Attach a PACK publisher to the service.
 void attachSubscriber(Id subId, Subscriber subscriber)
          Attach a PACK subscriber to the service.
 void detachPublisher(Id pubId)
          Detach a PACK publisher from the service.
 void detachSubscriber(Id subId)
          Detach a PACK subscriber from the service.
 Guid makeGuid(Id id)
          Return a global unique ID.
 void publish(Id pubId, Event evt)
          Publish an event to all subscribers.
 void subscribe(Id pubId, Id subId, java.lang.Object policy)
          Make a subscription to a PACK publisher.
 
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

attachPublisher

public void attachPublisher(Id pubId,
                            Publisher publisher)
                     throws PackException
Attach a PACK publisher to the service.

PackException

detachPublisher

public void detachPublisher(Id pubId)
                     throws PackException
Detach a PACK publisher from the service.

PackException

attachSubscriber

public void attachSubscriber(Id subId,
                             Subscriber subscriber)
                      throws PackException
Attach a PACK subscriber to the service.

PackException

detachSubscriber

public void detachSubscriber(Id subId)
                      throws PackException
Detach a PACK subscriber from the service.

PackException

subscribe

public void subscribe(Id pubId,
                      Id subId,
                      java.lang.Object policy)
               throws PackException
Make a subscription to a PACK publisher.

PackException

publish

public void publish(Id pubId,
                    Event evt)
             throws PackException
Publish an event to all subscribers.

PackException

makeGuid

public Guid makeGuid(Id id)
Return a global unique ID.