|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.core.ProtocolManager
public class ProtocolManager
There is only one instance of subscriptionManager per process (core or client) The protocol manager handles the creation of protocol plug-in instances, to be manipulated by the ProtocolAPI
Field Summary | |
---|---|
protected boolean |
print
|
Constructor Summary | |
---|---|
protected |
ProtocolManager()
Protected here prevents direct instantiation of this singleton but allows the extension of this class and the invocation of this construction by the specializatio class. |
Method Summary | |
---|---|
static ProtocolManager |
getInstance()
The only way to access the unique instance of ProtocolManager is by using this access method |
ProtocolPluginInterface |
getNewUnsharedPluginIntance(java.lang.String protocolId,
SubscriberInterface si)
Creates a new instance of a protocol plug-in |
ProtocolPluginInterface |
getSharedPluginInstance(java.lang.String protocolId,
SubscriberInterface si)
This method allows the protocol mananger to share plug-in instances |
void |
setPluginManager(ProtocolPluginManagerInterface pm)
Configures the plug-in manager to be used in the resoluiton of the tags in the incomming subscriptions. |
void |
terminateSharedProtocolPluginInstance(ProtocolPluginInterface pi)
Terminates a shared plug-in instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean print
Constructor Detail |
---|
protected ProtocolManager()
Method Detail |
---|
public static ProtocolManager getInstance()
public void setPluginManager(ProtocolPluginManagerInterface pm)
pm
- is the reference to the plug-in manager.public ProtocolPluginInterface getSharedPluginInstance(java.lang.String protocolId, SubscriberInterface si) throws ProtocolManagerException
protocolId
- is the name of the protocol to be createdsi
- is the subscriber interface that uniquely identifies the caller.
ProtocolManagerException
public ProtocolPluginInterface getNewUnsharedPluginIntance(java.lang.String protocolId, SubscriberInterface si) throws ProtocolManagerException
protocolId
- is the name of the protocol object to create
ProtocolManagerException
public void terminateSharedProtocolPluginInstance(ProtocolPluginInterface pi)
pi
- is a reference to the protocol plug-in to be terminated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |