|
|||||||||||
PREV CLASS 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(String ID)
Ad a logged in clientID to the statemanager. |
String |
checkUser(String login,
String passwd)
Check if a user has a preconfigured clientID and return it. |
Collection |
getDurableSubscriptionIdsForTopic(SpyTopic topic)
Get all configured durable subscriptions for a particular topic. |
SpyTopic |
getDurableTopic(DurableSubscriptionID sub)
Get the destination a subscription is for. |
void |
removeLoggedOnClientId(String ID)
Remove the logged in clientID. |
void |
setDurableSubscription(JMSDestinationManager server,
DurableSubscriptionID sub,
SpyTopic topic)
Ad, change or delete a durable subsciption. |
Method Detail |
public void setDurableSubscription(JMSDestinationManager server, DurableSubscriptionID sub, SpyTopic topic) throws javax.jms.JMSException
server
- The JMSServersub
- The id of the durable subscriptiontopic
- The topic to subscribe durable on, if null
the subscription will be removed.
javax.jms.JMSException
- Description of Exceptionpublic SpyTopic getDurableTopic(DurableSubscriptionID sub) throws javax.jms.JMSException
javax.jms.JMSException
public String checkUser(String login, String passwd) throws javax.jms.JMSException
login
- user namepasswd
- password
javax.jms.JMSException
- if the user
JMSSecurityException
- if the clientID is already loged in.public void addLoggedOnClientId(String ID) throws javax.jms.JMSException
ID
- a clientID
javax.jms.JMSException
- Description of Exception
InvalidClientIDException
- if the clientID wass already logged in.public void removeLoggedOnClientId(String ID)
ID
- clientID.public Collection getDurableSubscriptionIdsForTopic(SpyTopic topic) throws javax.jms.JMSException
topic
- the topic.
javax.jms.JMSException
- Description of Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |