站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 messaging API Documentation 英文版文档

OldStateManager (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging API Documentation 英文版文档


org.jboss.mq.sm.file
Class OldStateManager

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.mq.sm.file.OldStateManager
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, OldStateManagerMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean, StateManager

public class OldStateManager
extends org.jboss.system.ServiceMBeanSupport
implements StateManager, OldStateManagerMBean

This class is a simple User Manager. It handles credential issues.

This is the old state manager.

Version:
$Revision: 1.8 $
Author:
Norbert Lataille (Norbert.Lataille@m4x.org), Hiram Chirino, Peter Antman

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

OldStateManager

public OldStateManager()
                throws XElementException
Constructor for the StateManager object

Throws:
XElementException - Description of Exception
Method Detail

createService

protected void createService()
                      throws Exception
Throws:
Exception

setStateFile

public void setStateFile(String newStateFile)
Sets the StateFile attribute of the StateManagerMBean object

Specified by:
setStateFile in interface OldStateManagerMBean
Parameters:
newStateFile - The new StateFile value

getInstance

public StateManager getInstance()
Specified by:
getInstance in interface OldStateManagerMBean

setDurableSubscription

public void setDurableSubscription(JMSDestinationManager server,
                                   DurableSubscriptionID sub,
                                   SpyTopic topic)
                            throws javax.jms.JMSException
Sets the DurableSubscription attribute of the StateManager object

Specified by:
setDurableSubscription in interface StateManager
Parameters:
server - The new DurableSubscription value
sub - The new DurableSubscription value
topic - The new DurableSubscription value
Throws:
javax.jms.JMSException - Description of Exception

getDurableTopic

public SpyTopic getDurableTopic(DurableSubscriptionID sub)
                         throws javax.jms.JMSException
Get the destination a subscription is for.

Specified by:
getDurableTopic in interface StateManager
Throws:
javax.jms.JMSException

getStateFile

public String getStateFile()
Gets the StateFile attribute of the StateManagerMBean object

Specified by:
getStateFile in interface OldStateManagerMBean
Returns:
The StateFile value

checkUser

public String checkUser(String login,
                        String passwd)
                 throws javax.jms.JMSException
#Description of the Method

Specified by:
checkUser in interface StateManager
Parameters:
login - Description of Parameter
passwd - Description of Parameter
Returns:
Description of the Returned Value
Throws:
javax.jms.JMSException - Description of Exception

addLoggedOnClientId

public void addLoggedOnClientId(String ID)
                         throws javax.jms.JMSException
Ad a logged in clientID to the statemanager. The clientID must not be active, and it must not be password protected.

Specified by:
addLoggedOnClientId in interface StateManager
Parameters:
ID - The feature to be added to the LoggedOnClientId attribute
Throws:
javax.jms.JMSException - Description of Exception

removeLoggedOnClientId

public void removeLoggedOnClientId(String ID)
#Description of the Method

Specified by:
removeLoggedOnClientId in interface StateManager
Parameters:
ID - Description of Parameter

startService

public void startService()
                  throws Exception
#Description of the Method

Throws:
Exception - Description of Exception

getDurableSubscriptionIdsForTopic

public Collection getDurableSubscriptionIdsForTopic(SpyTopic topic)
                                             throws javax.jms.JMSException
Description copied from interface: StateManager
Get all configured durable subscriptions for a particular topic.

Specified by:
getDurableSubscriptionIdsForTopic in interface StateManager
Parameters:
topic - the topic.
Returns:
a collection of DurableSubscriptionID
Throws:
javax.jms.JMSException - Description of Exception

loadConfig

public void loadConfig()
                throws IOException,
                       XElementException
Specified by:
loadConfig in interface OldStateManagerMBean
Throws:
IOException
XElementException

saveConfig

public void saveConfig()
                throws IOException
Specified by:
saveConfig in interface OldStateManagerMBean
Throws:
IOException

displayStateConfig

public String displayStateConfig()
                          throws Exception
Specified by:
displayStateConfig in interface OldStateManagerMBean
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.