|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.client.YanceesClient
public class YanceesClient
Constructor Summary | |
---|---|
YanceesClient(java.io.File configFile)
Initializes the client YANCEES stub according to the provided configuration file. |
|
YanceesClient(java.io.File configFile,
java.lang.String instanceName)
This constructor provides an instance name that uniquely identifies this YANCEES instance. |
Method Summary | |
---|---|
ProtocolPluginInterface |
connectToNewProtocol(java.lang.String protocolId,
SubscriberInterface si)
Connects to a new instance of a protocol plug-in. |
ProtocolPluginInterface |
connectToSharedProtocol(java.lang.String protocolId,
SubscriberInterface si)
Connects to an existing protocol instance. |
void |
disconnectFromProtocol(java.lang.String protocolId,
SubscriberInterface si)
Terminates unshared protocol instances, or shared protocol instances if no more clients are connected to them. |
static void |
main(java.lang.String[] args)
|
void |
publish(EventInterface evt)
|
void |
resumeYancees()
|
void |
shutdownYancees()
|
void |
subscribe(SubscriptionInterface 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 |
---|
public YanceesClient(java.io.File configFile)
configFile
- is a XML document having the configurationpublic YanceesClient(java.io.File configFile, java.lang.String instanceName)
configFile
- lookupName
- a string that uniquely identify this instanceMethod Detail |
---|
public static void main(java.lang.String[] args)
public void publish(EventInterface evt) throws YanceesException
publish
in interface YanceesInterface
YanceesException
public void subscribe(SubscriptionInterface msg, SubscriberInterface rsi) throws YanceesException
subscribe
in interface YanceesInterface
YanceesException
public void unsubscribe(SubscriberInterface rsi) throws YanceesException
unsubscribe
in interface YanceesInterface
YanceesException
public void unsubscribe(SubscriberInterface rsi, MessageInterface sub) throws YanceesException
unsubscribe
in interface YanceesInterface
YanceesException
public void shutdownYancees() throws YanceesException
shutdownYancees
in interface YanceesInterface
YanceesException
public void suspendYancees() throws YanceesException
suspendYancees
in interface YanceesInterface
YanceesException
public void resumeYancees() throws YanceesException
resumeYancees
in interface YanceesInterface
YanceesException
public ProtocolPluginInterface connectToSharedProtocol(java.lang.String protocolId, SubscriberInterface si) throws YanceesException
YanceesInterface
connectToSharedProtocol
in interface YanceesInterface
protocolId
- is the name of the protocol as registered in the configuration file
and as available in the protocol factorysi
- is the subscriber interface that can be used to receive events from the plug-in
YanceesException
- is thrown in case of errors in the creation of the protocol plug-inpublic ProtocolPluginInterface connectToNewProtocol(java.lang.String protocolId, SubscriberInterface si) throws YanceesException
YanceesInterface
connectToNewProtocol
in interface YanceesInterface
protocolId
- is the name of the protocol as registered in the configuration file
and as available in the protocol factorysi
- is the subscriber interface that can be used to receive events from the plug-in
YanceesException
- is thrown in case of errors in the creation of the protocol plug-inpublic void disconnectFromProtocol(java.lang.String protocolId, SubscriberInterface si) throws YanceesException
YanceesInterface
disconnectFromProtocol
in interface YanceesInterface
protocolId
- is the name of the protocol as registered in the configuration file
and as available in the protocol factorysi
- is the subscriber interface that can be used to receive events from the plug-in
YanceesException
- is thrown in case of errors in the creation of the protocol plug-in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |