|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectServiceMBeanSupport
org.jboss.jms.server.plugin.JDBCChannelMapper
JDBC Implementation of ChannelMapper
Field Summary | |
protected IdManager |
channelIDManager
|
protected boolean |
createTablesOnStartup
|
protected java.lang.String |
dataSourceJNDIName
|
protected javax.sql.DataSource |
ds
|
protected java.util.Map |
idMap
|
protected java.util.List |
populateTables
|
protected QueuedExecutorPool |
queuedExecutorPool
|
protected java.util.Map |
queues
|
protected java.util.Properties |
sqlProperties
|
protected java.util.Map |
subscriptions
|
protected ObjectName |
tmObjectName
|
protected java.util.Map |
topics
|
protected static char |
TYPE_DURABLE_SUB
|
protected static char |
TYPE_QUEUE
|
protected static char |
TYPE_TOPIC
|
Constructor Summary | |
JDBCChannelMapper()
|
|
JDBCChannelMapper(javax.sql.DataSource ds,
TransactionManager tm)
|
Method Summary | |
DurableSubscription |
createDurableSubscription(java.lang.String topicName,
java.lang.String clientID,
java.lang.String subscriptionName,
java.lang.String selector,
boolean noLocal,
MessageStore ms,
PersistenceManager pm,
MemoryManager mm)
|
protected DurableSubscription |
createDurableSubscriptionInternal(long id,
java.lang.String topicName,
java.lang.String clientID,
java.lang.String subscriptionName,
Selector selector,
boolean noLocal,
MessageStore ms,
PersistenceManager pm,
MemoryManager mm)
|
protected void |
createSchema()
|
Subscription |
createSubscription(java.lang.String topicName,
java.lang.String selector,
boolean noLocal,
MessageStore ms,
PersistenceManager pm,
MemoryManager mm)
|
protected boolean |
deleteMappingRow(long id)
|
void |
deployCoreDestination(boolean isQueue,
java.lang.String destName,
MessageStore ms,
PersistenceManager pm,
MemoryManager mm,
int fullSize,
int pageSize,
int downCacheSize)
|
void |
deployTemporaryCoreDestination(boolean isQueue,
java.lang.String destName,
long id,
MessageStore ms,
PersistenceManager pm,
MemoryManager mm,
int fullSize,
int pageSize,
int downCacheSize)
|
CoreDestination |
getCoreDestination(JBossDestination jbDest)
|
protected CoreDestination |
getCoreDestinationInternal(boolean isQueue,
java.lang.String destName)
|
java.lang.String |
getDataSource()
Managed attribute. |
protected DurableSubscription |
getDurableSubscription(java.lang.String clientID,
java.lang.String subscriptionName)
|
DurableSubscription |
getDurableSubscription(java.lang.String clientID,
java.lang.String subscriptionName,
MessageStore ms,
PersistenceManager pm,
MemoryManager mm)
|
protected java.lang.Long |
getIdForDestination(boolean isQueue,
java.lang.String destName)
|
java.lang.Object |
getInstance()
A server plugin will be always accessed via a hard reference, so it is essential that each implementation exposes this method. |
JBossDestination |
getJBossDestination(long coreDestinationId)
|
protected long |
getNextId()
|
java.lang.String |
getPreConfiguredClientID(java.lang.String username)
FIXME This doesn't belong here and should be moved out to a different service |
java.lang.String |
getSqlProperties()
|
java.util.Set |
getSubscriptions(java.lang.String clientID)
|
ObjectName |
getTransactionManager()
Managed attribute. |
protected void |
initSqlProperties()
|
protected void |
insertMappingRow(long id,
char type,
java.lang.String jmsDestName,
java.lang.String jmsSubName,
java.lang.String clientID,
java.lang.String selector,
java.lang.Boolean noLocal)
|
boolean |
isCreateTablesOnStartup()
Managed attribute. |
protected java.util.List |
loadDurableSubscriptionsForTopic(java.lang.String topicName,
MessageStore ms,
PersistenceManager pm,
MemoryManager mm)
|
boolean |
removeDurableSubscription(java.lang.String clientID,
java.lang.String subscriptionName)
|
protected DurableSubscription |
removeDurableSubscriptionInMemory(java.lang.String clientID,
java.lang.String subscriptionName)
|
void |
setCreateTablesOnStartup(boolean b)
Managed attribute. |
void |
setDataSource(java.lang.String dataSourceJNDIName)
Managed attribute. |
void |
setPersistenceManager(PersistenceManager pm)
|
void |
setQueuedExecutorPool(QueuedExecutorPool pool)
|
void |
setSqlProperties(java.lang.String value)
|
void |
setTransactionManager(ObjectName tmObjectName)
Managed attribute. |
protected void |
startService()
|
protected void |
stopService()
|
java.lang.String |
toString()
|
CoreDestination |
undeployCoreDestination(boolean isQueue,
java.lang.String destName)
|
CoreDestination |
undeployTemporaryCoreDestination(boolean isQueue,
java.lang.String destName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final char TYPE_QUEUE
protected static final char TYPE_TOPIC
protected static final char TYPE_DURABLE_SUB
protected java.util.Map subscriptions
protected java.util.Map queues
protected java.util.Map topics
protected java.util.Map idMap
protected java.lang.String dataSourceJNDIName
protected javax.sql.DataSource ds
protected ObjectName tmObjectName
protected IdManager channelIDManager
protected boolean createTablesOnStartup
protected java.util.Properties sqlProperties
protected java.util.List populateTables
protected QueuedExecutorPool queuedExecutorPool
Constructor Detail |
public JDBCChannelMapper()
public JDBCChannelMapper(javax.sql.DataSource ds, TransactionManager tm)
Method Detail |
public void setPersistenceManager(PersistenceManager pm) throws java.lang.Exception
setPersistenceManager
in interface ChannelMapper
java.lang.Exception
public void setQueuedExecutorPool(QueuedExecutorPool pool) throws java.lang.Exception
setQueuedExecutorPool
in interface ChannelMapper
java.lang.Exception
protected void startService() throws java.lang.Exception
java.lang.Exception
protected void stopService() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getInstance()
ServerPlugin
getInstance
in interface ServerPlugin
public CoreDestination getCoreDestination(JBossDestination jbDest)
getCoreDestination
in interface ChannelMapper
public JBossDestination getJBossDestination(long coreDestinationId)
getJBossDestination
in interface ChannelMapper
public void deployCoreDestination(boolean isQueue, java.lang.String destName, MessageStore ms, PersistenceManager pm, MemoryManager mm, int fullSize, int pageSize, int downCacheSize) throws java.lang.Exception
deployCoreDestination
in interface ChannelMapper
java.lang.Exception
public CoreDestination undeployCoreDestination(boolean isQueue, java.lang.String destName) throws java.lang.Exception
undeployCoreDestination
in interface ChannelMapper
java.lang.Exception
public void deployTemporaryCoreDestination(boolean isQueue, java.lang.String destName, long id, MessageStore ms, PersistenceManager pm, MemoryManager mm, int fullSize, int pageSize, int downCacheSize) throws java.lang.Exception
deployTemporaryCoreDestination
in interface ChannelMapper
java.lang.Exception
public CoreDestination undeployTemporaryCoreDestination(boolean isQueue, java.lang.String destName) throws java.lang.Exception
undeployTemporaryCoreDestination
in interface ChannelMapper
java.lang.Exception
public DurableSubscription getDurableSubscription(java.lang.String clientID, java.lang.String subscriptionName, MessageStore ms, PersistenceManager pm, MemoryManager mm) throws java.lang.Exception
getDurableSubscription
in interface ChannelMapper
java.lang.Exception
public DurableSubscription createDurableSubscription(java.lang.String topicName, java.lang.String clientID, java.lang.String subscriptionName, java.lang.String selector, boolean noLocal, MessageStore ms, PersistenceManager pm, MemoryManager mm) throws java.lang.Exception
createDurableSubscription
in interface ChannelMapper
java.lang.Exception
public Subscription createSubscription(java.lang.String topicName, java.lang.String selector, boolean noLocal, MessageStore ms, PersistenceManager pm, MemoryManager mm) throws java.lang.Exception
createSubscription
in interface ChannelMapper
java.lang.Exception
public boolean removeDurableSubscription(java.lang.String clientID, java.lang.String subscriptionName) throws java.lang.Exception
removeDurableSubscription
in interface ChannelMapper
java.lang.Exception
public java.lang.String getPreConfiguredClientID(java.lang.String username) throws java.lang.Exception
ChannelMapper
getPreConfiguredClientID
in interface ChannelMapper
username
-
java.lang.Exception
public java.lang.String getSqlProperties()
public void setSqlProperties(java.lang.String value)
public void setDataSource(java.lang.String dataSourceJNDIName) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDataSource()
public void setTransactionManager(ObjectName tmObjectName) throws java.lang.Exception
java.lang.Exception
public ObjectName getTransactionManager()
public boolean isCreateTablesOnStartup() throws java.lang.Exception
java.lang.Exception
public void setCreateTablesOnStartup(boolean b) throws java.lang.Exception
java.lang.Exception
public java.util.Set getSubscriptions(java.lang.String clientID)
getSubscriptions
in interface ChannelMapper
public java.lang.String toString()
protected DurableSubscription removeDurableSubscriptionInMemory(java.lang.String clientID, java.lang.String subscriptionName) throws JMSException
JMSException
protected java.util.List loadDurableSubscriptionsForTopic(java.lang.String topicName, MessageStore ms, PersistenceManager pm, MemoryManager mm) throws java.lang.Exception
java.lang.Exception
protected void insertMappingRow(long id, char type, java.lang.String jmsDestName, java.lang.String jmsSubName, java.lang.String clientID, java.lang.String selector, java.lang.Boolean noLocal) throws java.lang.Exception
java.lang.Exception
protected java.lang.Long getIdForDestination(boolean isQueue, java.lang.String destName) throws java.lang.Exception
java.lang.Exception
protected boolean deleteMappingRow(long id) throws java.lang.Exception
java.lang.Exception
protected DurableSubscription getDurableSubscription(java.lang.String clientID, java.lang.String subscriptionName) throws JMSException
JMSException
protected DurableSubscription createDurableSubscriptionInternal(long id, java.lang.String topicName, java.lang.String clientID, java.lang.String subscriptionName, Selector selector, boolean noLocal, MessageStore ms, PersistenceManager pm, MemoryManager mm) throws JMSException
JMSException
protected CoreDestination getCoreDestinationInternal(boolean isQueue, java.lang.String destName)
protected void initSqlProperties()
protected void createSchema() throws java.lang.Exception
java.lang.Exception
protected long getNextId() throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |