| 
 | |||||||||||
| 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.pm.jdbc2.PersistenceManager
This class manages all persistence related services for JDBC based persistence.
| 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 | 
| Fields inherited from interface org.jboss.mq.pm.PersistenceManagerMBean | 
| OBJECT_NAME | 
| Constructor Summary | |
| PersistenceManager() | |
| Method Summary | |
| protected  void | add(Connection c,
    String queue,
    SpyMessage message,
    Tx txId,
    String mark) | 
|  void | add(MessageReference messageRef,
    Tx txId)Add a message to the persistent store. | 
|  void | addTXRecord(Connection c,
            long txid) | 
|  void | closeQueue(JMSDestination jmsDest,
           SpyDestination dest)Close a queue | 
|  void | commitPersistentTx(Tx txId)Commit the transaction to the persistent store. | 
|  Tx | createPersistentTx()Create and return a unique transaction id. | 
|  javax.management.ObjectName | getConnectionManager() | 
|  int | getConnectionRetryAttempts()Gets the ConnectionRetryAttempts. | 
|  Object | getInstance()Describe getInstancemethod here. | 
|  javax.management.ObjectName | getMessageCache()Describe getMessageCachemethod here. | 
|  MessageCache | getMessageCacheInstance()Get the message cache | 
|  String | getSqlProperties()Gets the sqlProperties. | 
|  TxManager | getTxManager()Get a transaction manager. | 
|  void | insertPersistentTx(org.jboss.mq.pm.jdbc2.PersistenceManager.TransactionManagerStrategy tms,
                   Connection c,
                   Tx tx) | 
|  SpyMessage | loadFromStorage(MessageReference messageRef)Reads the message refered to by the MessagReference back as a SpyMessage | 
|  void | markMessage(Connection c,
            long messageid,
            String destination,
            Tx txId,
            String mark) | 
|  void | remove(MessageReference messageRef,
       Tx txId)Remove message from the persistent store. | 
|  void | removeFromStorage(MessageReference messageRef)Removes the message that was stored in secondary storage. | 
|  void | removeMarkedMessages(Connection c,
                     Tx txid,
                     String mark) | 
|  void | removeTXRecord(Connection c,
               long txid) | 
|  void | resolveAllUncommitedTXs() | 
|  void | restoreQueue(JMSDestination jmsDest,
             SpyDestination dest)Restore a queue. | 
|  void | rollbackPersistentTx(Tx txId)Rollback the transaction. | 
|  void | saveToStorage(MessageReference messageRef,
              SpyMessage message)Stores the given message to secondary storeage. | 
|  void | setBlob(PreparedStatement stmt,
        int column,
        SpyMessage message) | 
|  void | setConnectionManager(javax.management.ObjectName connectionManagerName) | 
|  void | setConnectionRetryAttempts(int value)Sets the ConnectionRetryAttempts. | 
|  void | setMessageCache(javax.management.ObjectName messageCache)Describe setMessageCachemethod here. | 
|  void | setSqlProperties(String value)Sets the sqlProperties. | 
|  void | startService() | 
|  void | update(MessageReference messageRef,
       Tx txId)Update message in the persistent store. | 
| Methods inherited from class org.jboss.system.ServiceMBeanSupport | 
| 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 | 
| 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 PersistenceManager()
                   throws javax.jms.JMSException
| Method Detail | 
public void resolveAllUncommitedTXs()
                             throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void restoreQueue(JMSDestination jmsDest, SpyDestination dest) throws javax.jms.JMSException
PersistenceManager
restoreQueue in interface PersistenceManagerjmsDest - the jms destinationdest - the client destination
javax.jms.JMSException - for any errorpublic void commitPersistentTx(Tx txId) throws javax.jms.JMSException
PersistenceManager
commitPersistentTx in interface PersistenceManagertxId - Description of Parameter
javax.jms.JMSException - for any errorpublic void removeMarkedMessages(Connection c, Tx txid, String mark) throws SQLException
SQLExceptionpublic void addTXRecord(Connection c, long txid) throws SQLException
SQLExceptionpublic void removeTXRecord(Connection c, long txid) throws SQLException
SQLExceptionpublic void rollbackPersistentTx(Tx txId) throws javax.jms.JMSException
PersistenceManager
rollbackPersistentTx in interface PersistenceManagertxId - Description of Parameter
javax.jms.JMSException - for any errorpublic Tx createPersistentTx() throws javax.jms.JMSException
PersistenceManager
createPersistentTx in interface PersistenceManagerjavax.jms.JMSException - for any error
public void insertPersistentTx(org.jboss.mq.pm.jdbc2.PersistenceManager.TransactionManagerStrategy tms,
                               Connection c,
                               Tx tx)
                        throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void add(MessageReference messageRef, Tx txId) throws javax.jms.JMSException
PersistenceManager
add in interface PersistenceManagermessageRef - the messagetxId - the transaction
javax.jms.JMSException - for any errorprotected void add(Connection c, String queue, SpyMessage message, Tx txId, String mark) throws SQLException, IOException
SQLException
IOExceptionpublic void markMessage(Connection c, long messageid, String destination, Tx txId, String mark) throws SQLException
SQLExceptionpublic void setBlob(PreparedStatement stmt, int column, SpyMessage message) throws IOException, SQLException
IOException
SQLExceptionpublic void update(MessageReference messageRef, Tx txId) throws javax.jms.JMSException
PersistenceManager
update in interface PersistenceManagermessageRef - txId - Description of Parameter
javax.jms.JMSException - for any errorpublic void remove(MessageReference messageRef, Tx txId) throws javax.jms.JMSException
PersistenceManager
remove in interface PersistenceManagermessageRef - the messagetxId - the transaction
javax.jms.JMSException - for any errorpublic TxManager getTxManager()
PersistenceManager
getTxManager in interface PersistenceManagerpublic void closeQueue(JMSDestination jmsDest, SpyDestination dest) throws javax.jms.JMSException
PersistenceManager
closeQueue in interface PersistenceManagerjmsDest - the jms destinationdest - the client destination
javax.jms.JMSException - for any errorpublic SpyMessage loadFromStorage(MessageReference messageRef) throws javax.jms.JMSException
CacheStore
loadFromStorage in interface CacheStoremessageRef - the message reference
javax.jms.JMSException - for any errorpublic void removeFromStorage(MessageReference messageRef) throws javax.jms.JMSException
CacheStore
removeFromStorage in interface CacheStoremessageRef - the message reference
javax.jms.JMSException - for any errorpublic void saveToStorage(MessageReference messageRef, SpyMessage message) throws javax.jms.JMSException
CacheStore
saveToStorage in interface CacheStoremessageRef - the message referencemessage - the message
javax.jms.JMSException - for any error
public void startService()
                  throws Exception
Exceptionpublic Object getInstance()
getInstance method here.
getInstance in interface PersistenceManagerMBeanObject valuepublic javax.management.ObjectName getMessageCache()
getMessageCache method here.
getMessageCache in interface PersistenceManagerMBeanObjectName valuepublic void setMessageCache(javax.management.ObjectName messageCache)
setMessageCache method here.
setMessageCache in interface PersistenceManagerMBeanmessageCache - an ObjectName valuepublic javax.management.ObjectName getConnectionManager()
getConnectionManager in interface PersistenceManagerMBeanpublic void setConnectionManager(javax.management.ObjectName connectionManagerName)
setConnectionManager in interface PersistenceManagerMBeanpublic MessageCache getMessageCacheInstance()
PersistenceManager
getMessageCacheInstance in interface PersistenceManagerpublic String getSqlProperties()
getSqlProperties in interface PersistenceManagerMBeanpublic void setSqlProperties(String value)
setSqlProperties in interface PersistenceManagerMBeanpublic void setConnectionRetryAttempts(int value)
setConnectionRetryAttempts in interface PersistenceManagerMBeanpublic int getConnectionRetryAttempts()
getConnectionRetryAttempts in interface PersistenceManagerMBean| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||