|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.mq.sm.file.OldStateManager
This class is a simple User Manager. It handles credential issues.
This is the old state manager.
| Field Summary |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
OldStateManager()
Constructor for the StateManager object |
|
| Method Summary | |
void |
addLoggedOnClientId(String ID)
Ad a logged in clientID to the statemanager. |
String |
checkUser(String login,
String passwd)
#Description of the Method |
protected void |
createService()
|
String |
displayStateConfig()
|
Collection |
getDurableSubscriptionIdsForTopic(SpyTopic topic)
Get all configured durable subscriptions for a particular topic. |
SpyTopic |
getDurableTopic(DurableSubscriptionID sub)
Get the destination a subscription is for. |
StateManager |
getInstance()
|
String |
getStateFile()
Gets the StateFile attribute of the StateManagerMBean object |
void |
loadConfig()
|
void |
removeLoggedOnClientId(String ID)
#Description of the Method |
void |
saveConfig()
|
void |
setDurableSubscription(JMSDestinationManager server,
DurableSubscriptionID sub,
SpyTopic topic)
Sets the DurableSubscription attribute of the StateManager object |
void |
setStateFile(String newStateFile)
Sets the StateFile attribute of the StateManagerMBean object |
void |
startService()
#Description of the Method |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop, stopService |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
| Constructor Detail |
public OldStateManager()
throws XElementException
XElementException - Description of Exception| Method Detail |
protected void createService()
throws Exception
Exceptionpublic void setStateFile(String newStateFile)
setStateFile in interface OldStateManagerMBeannewStateFile - The new StateFile valuepublic StateManager getInstance()
getInstance in interface OldStateManagerMBeanpublic void setDurableSubscription(JMSDestinationManager server, DurableSubscriptionID sub, SpyTopic topic) throws javax.jms.JMSException
setDurableSubscription in interface StateManagerserver - The new DurableSubscription valuesub - The new DurableSubscription valuetopic - The new DurableSubscription value
javax.jms.JMSException - Description of Exceptionpublic SpyTopic getDurableTopic(DurableSubscriptionID sub) throws javax.jms.JMSException
getDurableTopic in interface StateManagerjavax.jms.JMSExceptionpublic String getStateFile()
getStateFile in interface OldStateManagerMBeanpublic String checkUser(String login, String passwd) throws javax.jms.JMSException
checkUser in interface StateManagerlogin - Description of Parameterpasswd - Description of Parameter
javax.jms.JMSException - Description of Exceptionpublic void addLoggedOnClientId(String ID) throws javax.jms.JMSException
addLoggedOnClientId in interface StateManagerID - The feature to be added to the LoggedOnClientId
attribute
javax.jms.JMSException - Description of Exceptionpublic void removeLoggedOnClientId(String ID)
removeLoggedOnClientId in interface StateManagerID - Description of Parameter
public void startService()
throws Exception
Exception - Description of Exceptionpublic Collection getDurableSubscriptionIdsForTopic(SpyTopic topic) throws javax.jms.JMSException
StateManager
getDurableSubscriptionIdsForTopic in interface StateManagertopic - the topic.
javax.jms.JMSException - Description of Exception
public void loadConfig()
throws IOException,
XElementException
loadConfig in interface OldStateManagerMBeanIOException
XElementException
public void saveConfig()
throws IOException
saveConfig in interface OldStateManagerMBeanIOExceptionpublic String displayStateConfig() throws Exception
displayStateConfig in interface OldStateManagerMBeanException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||