|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.mq.sm.AbstractStateManager (src)
org.jboss.mq.sm.jdbc.JDBCStateManager
A state manager that stores state in the database.
Nested Class Summary |
Nested classes inherited from class org.jboss.mq.sm.AbstractStateManager (src) |
AbstractStateManager.DurableSubscription (src) |
Field Summary |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
JDBCStateManager()
|
Method Summary | |
protected void |
checkLoggedOnClientId(java.lang.String clientID)
Check if the clientID is allowed to logg in from the particular state managers perspective. |
ObjectName (src) |
getConnectionManager()
|
protected AbstractStateManager.DurableSubscription (src) |
getDurableSubscription(DurableSubscriptionID (src) sub)
Get a DurableSubscription. |
java.util.Collection |
getDurableSubscriptionIdsForTopic(SpyTopic (src) topic)
Get all configured durable subscriptions for a particular topic. |
StateManager (src) |
getInstance()
Get an instance if the StateManager (Singleton). |
protected java.lang.String |
getPreconfClientId(java.lang.String logon,
java.lang.String passwd)
Get preconfigured clientID for login/user, and if state manager wants do authentication. |
java.lang.String |
getSqlProperties()
Gets the sqlProperties. |
boolean |
hasSecurityManager()
|
protected void |
initDB()
|
protected void |
removeDurableSubscription(AbstractStateManager.DurableSubscription (src) ds)
Remove the subscription and save to persistent storage. |
protected void |
saveDurableSubscription(AbstractStateManager.DurableSubscription (src) ds)
Add to durable subs and save the subsrcription to persistent storage. |
void |
setConnectionManager(ObjectName (src) connectionManagerName)
|
void |
setHasSecurityManager(boolean hasSecurityManager)
|
void |
setSqlProperties(java.lang.String value)
Sets the sqlProperties. |
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
Methods inherited from class org.jboss.mq.sm.AbstractStateManager (src) |
addLoggedOnClientId, checkUser, getDurableTopic, removeLoggedOnClientId, setDurableSubscription |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, 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 (src) |
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 (src) |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Constructor Detail |
public JDBCStateManager()
Method Detail |
public ObjectName (src) getConnectionManager()
public void setConnectionManager(ObjectName (src) connectionManagerName)
public boolean hasSecurityManager()
public void setHasSecurityManager(boolean hasSecurityManager)
public java.lang.String getSqlProperties()
public void setSqlProperties(java.lang.String value)
protected AbstractStateManager.DurableSubscription (src) getDurableSubscription(DurableSubscriptionID (src) sub) throws JMSException (src)
AbstractStateManager (src)
getDurableSubscription
in class AbstractStateManager (src)
sub
- the durable subscription id
JMSException (src)
- for any errorprotected void saveDurableSubscription(AbstractStateManager.DurableSubscription (src) ds) throws JMSException (src)
AbstractStateManager (src)
Called by this class so the sublclass can save. This may be both a new subscription or a changed one. It is up to the sublcass to know how to find a changed on. (Only the topic will have changed, and it is the same DurableSubscription that is saved again that this class got through getDurableSubscription.
saveDurableSubscription
in class AbstractStateManager (src)
ds
- the durable subscription to save
JMSException (src)
- for any errorprotected void removeDurableSubscription(AbstractStateManager.DurableSubscription (src) ds) throws JMSException (src)
AbstractStateManager (src)
Called by this class so the sublclass can remove.
removeDurableSubscription
in class AbstractStateManager (src)
ds
- the durable subscription to save
JMSException (src)
- for any errorpublic java.util.Collection getDurableSubscriptionIdsForTopic(SpyTopic (src) topic) throws JMSException (src)
StateManager (src)
getDurableSubscriptionIdsForTopic
in interface StateManager (src)
getDurableSubscriptionIdsForTopic
in class AbstractStateManager (src)
JMSException (src)
protected void checkLoggedOnClientId(java.lang.String clientID) throws JMSException (src)
AbstractStateManager (src)
checkLoggedOnClientId
in class AbstractStateManager (src)
clientID
- the client id to check
JMSException (src)
- for any errorprotected java.lang.String getPreconfClientId(java.lang.String logon, java.lang.String passwd) throws JMSException (src)
AbstractStateManager (src)
getPreconfClientId
in class AbstractStateManager (src)
logon
- the user namepasswd
- the password
JMSException (src)
- for any errorpublic StateManager (src) getInstance()
AbstractStateManagerMBean (src)
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void initDB() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |