at.ac.tuwien.infosys.sm4all.copal.api
Interface ContextPublisher

All Known Implementing Classes:
AbstractXMLPublisher, RESTfulPublisher

public interface ContextPublisher

Interface for publishers of XMLContextEvents.

Author:
sanjin

Method Summary
 String getEventType()
           
 String getSourceID()
           
 boolean start(PublishingService publishingService, XMLContextEventType eventType)
          Callback method which notifies that the ContextPublisher can start publishing XMLContextEvents for specified XMLContextEventType using specified PublishingService.
 void stop(PublishingService publishingService, XMLContextEventType eventType)
          Callback method which notifies that the ContextPublisher has to stop publishing XMLContextEvents for specified XMLContextEventType using specified PublishingService.
 

Method Detail

getSourceID

String getSourceID()
Returns:
the source ID of published XMLContextEvents.

start

boolean start(PublishingService publishingService,
              XMLContextEventType eventType)
Callback method which notifies that the ContextPublisher can start publishing XMLContextEvents for specified XMLContextEventType using specified PublishingService.

Parameters:
publishingService - the PublishingService.
eventType - the XMLContextEventType.
Returns:
if this ContextPublisher has started successfully.

stop

void stop(PublishingService publishingService,
          XMLContextEventType eventType)
Callback method which notifies that the ContextPublisher has to stop publishing XMLContextEvents for specified XMLContextEventType using specified PublishingService.

Parameters:
publishingService - the PublishingService.
eventType - the XMLContextEventType.

getEventType

String getEventType()
Returns:
the name of XMLContextEventType published by this ContextPublisher.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.