|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ExceptionMethod Detail |
protected void createService() throws Exception
Exception
public void setStateFile(String newStateFile)
setStateFile
in interface OldStateManagerMBean
newStateFile
- The new StateFile valuepublic StateManager getInstance()
getInstance
in interface OldStateManagerMBean
public void setDurableSubscription(JMSDestinationManager server, DurableSubscriptionID sub, SpyTopic topic) throws javax.jms.JMSException
setDurableSubscription
in interface StateManager
server
- 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 StateManager
javax.jms.JMSException
public String getStateFile()
getStateFile
in interface OldStateManagerMBean
public String checkUser(String login, String passwd) throws javax.jms.JMSException
checkUser
in interface StateManager
login
- Description of Parameterpasswd
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic void addLoggedOnClientId(String ID) throws javax.jms.JMSException
addLoggedOnClientId
in interface StateManager
ID
- The feature to be added to the LoggedOnClientId
attribute
javax.jms.JMSException
- Description of Exceptionpublic void removeLoggedOnClientId(String ID)
removeLoggedOnClientId
in interface StateManager
ID
- Description of Parameterpublic void startService() throws Exception
Exception
- Description of Exceptionpublic Collection getDurableSubscriptionIdsForTopic(SpyTopic topic) throws javax.jms.JMSException
StateManager
getDurableSubscriptionIdsForTopic
in interface StateManager
topic
- the topic.
javax.jms.JMSException
- Description of Exceptionpublic void loadConfig() throws IOException, XElementException
loadConfig
in interface OldStateManagerMBean
IOException
XElementException
public void saveConfig() throws IOException
saveConfig
in interface OldStateManagerMBean
IOException
public String displayStateConfig() throws Exception
displayStateConfig
in interface OldStateManagerMBean
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |