edu.uci.isr.yancees.client
Class YanceesClient

java.lang.Object
  extended byedu.uci.isr.yancees.client.YanceesClient
All Implemented Interfaces:
YanceesInterface

public class YanceesClient
extends java.lang.Object
implements YanceesInterface

Author:
Roberto Silveira Silva Filho [rsilvafi@ics.uci.edu] This class works as a wrapper to YanceesRMI or other communication method between client and server. It also permits the insertion of filters, plug-ins and other interceptors between client and server.

Constructor Summary
YanceesClient(java.io.File configFile)
          Initializes the client YANCEES stub according to the provided configuration file.
 
Method Summary
 ProtocolSessionInterface createNewSession(MessageInterface msg, SubscriberInterface rsi)
           
static void main(java.lang.String[] args)
           
 void publish(EventInterface evt)
           
 void resumeYancees()
           
 void shutdownYancees()
           
 void subscribe(MessageInterface msg, SubscriberInterface rsi)
           
 void suspendYancees()
           
 void unsubscribe(SubscriberInterface rsi)
           
 void unsubscribe(SubscriberInterface rsi, MessageInterface sub)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YanceesClient

public YanceesClient(java.io.File configFile)
Initializes the client YANCEES stub according to the provided configuration file.

Parameters:
configFile - is a XML document having the configuration
Method Detail

main

public static void main(java.lang.String[] args)

createNewSession

public ProtocolSessionInterface createNewSession(MessageInterface msg,
                                                 SubscriberInterface rsi)
                                          throws YanceesException
Specified by:
createNewSession in interface YanceesInterface
Throws:
YanceesException

publish

public void publish(EventInterface evt)
             throws YanceesException
Specified by:
publish in interface YanceesInterface
Throws:
YanceesException

subscribe

public void subscribe(MessageInterface msg,
                      SubscriberInterface rsi)
               throws YanceesException
Specified by:
subscribe in interface YanceesInterface
Throws:
YanceesException

unsubscribe

public void unsubscribe(SubscriberInterface rsi)
                 throws YanceesException
Specified by:
unsubscribe in interface YanceesInterface
Throws:
YanceesException

unsubscribe

public void unsubscribe(SubscriberInterface rsi,
                        MessageInterface sub)
                 throws YanceesException
Specified by:
unsubscribe in interface YanceesInterface
Throws:
YanceesException

shutdownYancees

public void shutdownYancees()
                     throws YanceesException
Specified by:
shutdownYancees in interface YanceesInterface
Throws:
YanceesException

suspendYancees

public void suspendYancees()
                    throws YanceesException
Specified by:
suspendYancees in interface YanceesInterface
Throws:
YanceesException

resumeYancees

public void resumeYancees()
                   throws YanceesException
Specified by:
resumeYancees in interface YanceesInterface
Throws:
YanceesException