edu.uci.isr.yancees
Interface ProtocolSessionInterface

All Known Implementing Classes:
ClientProtocolSession, ProtocolSession

public interface ProtocolSessionInterface

Title: Yancees Notification Server

Description: Yet ANother Configurable Extensible Event Service

Copyright: Copyright (c) 2003

Company: School of Information and Computer Science - University of California, Irvine

Version:
1.0
Author:
Roberto Silveira Silva Filho

Method Summary
 void sendMessage(MessageInterface message)
          Send a message to the protocol plug-in that is responsible for this context
 void terminate()
          Gracefully terminates the current session
 void terminate(MessageInterface message)
          Gracefully terminates the current session
 

Method Detail

sendMessage

public void sendMessage(MessageInterface message)
                 throws YanceesException
Send a message to the protocol plug-in that is responsible for this context

Parameters:
message - is an XML document wrapped in the message.
Throws:
YanceesException

terminate

public void terminate(MessageInterface message)
               throws YanceesException
Gracefully terminates the current session

Parameters:
message - is a finalization message to be sent to the plug-in(s) created to handle this session
Throws:
YanceesException - in case of parsing or message errors
RemoteException - in case of connection errors

terminate

public void terminate()
               throws YanceesException
Gracefully terminates the current session

Throws:
YanceesException - in case of parsing or message errors
RemoteException - in case of connection errors