edu.uci.isr.yancees.server.rmi
Interface RemoteProtocolSessionInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
RemoteProtocolSessionImplementation

public interface RemoteProtocolSessionInterface
extends java.rmi.Remote

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,
                        java.rmi.RemoteException
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
java.rmi.RemoteException

terminate

public void terminate(MessageInterface message)
               throws YanceesException,
                      java.rmi.RemoteException
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
java.rmi.RemoteException - in case of connection errors

terminate

public void terminate()
               throws YanceesException,
                      java.rmi.RemoteException
Gracefully terminates the current session

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