|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for StateManager. A StateManager is a manager that manages states that has to do with clients/ users and durable subscription. A state manager most know how to persist information regarding durable subscriptions. It should also hold all current clientID's that are connected to the server. It may also support basic autentication, which is what the old default StateManager did.
Method Summary | |
void |
addLoggedOnClientId(java.lang.String ID)
Ad a logged in clientID to the statemanager. |
java.lang.String |
checkUser(java.lang.String login,
java.lang.String passwd)
Check if a user has a preconfigured clientID and return it. |
java.util.Collection |
getDurableSubscriptionIdsForTopic(SpyTopic (src) topic)
Get all configured durable subscriptions for a particular topic. |
SpyTopic (src) |
getDurableTopic(DurableSubscriptionID (src) sub)
Get the destination a subscription is for. |
void |
removeLoggedOnClientId(java.lang.String ID)
Remove the logged in clientID. |
void |
setDurableSubscription(JMSDestinationManager (src) server,
DurableSubscriptionID (src) sub,
SpyTopic (src) topic)
Ad, change or delete a durable subsciption. |
Method Detail |
public void setDurableSubscription(JMSDestinationManager (src) server, DurableSubscriptionID (src) sub, SpyTopic (src) topic) throws JMSException (src)
server
- The JMSServersub
- The id of the durable subscriptiontopic
- The topic to subscribe durable on, if null
the subscription will be removed.
JMSException (src)
- Description of Exceptionpublic SpyTopic (src) getDurableTopic(DurableSubscriptionID (src) sub) throws JMSException (src)
JMSException (src)
public java.lang.String checkUser(java.lang.String login, java.lang.String passwd) throws JMSException (src)
login
- user namepasswd
- password
JMSException (src)
- if the user
JMSSecurityException
- if the clientID is already loged in.public void addLoggedOnClientId(java.lang.String ID) throws JMSException (src)
ID
- a clientID
JMSException (src)
- Description of Exception
InvalidClientIDException
- if the clientID wass already logged in.public void removeLoggedOnClientId(java.lang.String ID)
ID
- clientID.public java.util.Collection getDurableSubscriptionIdsForTopic(SpyTopic (src) topic) throws JMSException (src)
topic
- the topic.
JMSException (src)
- Description of Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |