edu.uci.isr.yancees.client
Class YanceesClient
java.lang.Object
edu.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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