|
|||||||||||
| 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.rollinglogged.PersistenceManager
This class manages all persistence related services.
| Field Summary | |
protected ArrayList |
listPool
|
protected static int |
MAX_POOL_SIZE
|
protected int |
messageCounter
|
static String |
TRANS_FILE_NAME
|
protected ArrayList |
txPool
|
| 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()
NewPersistenceManager constructor. |
|
| Method Summary | |
void |
add(MessageReference messageRef,
Tx txId)
#Description of the Method |
protected void |
checkCleanup()
|
protected void |
checkCleanup(SpyTxLog txLog)
|
protected void |
checkRollOver()
|
void |
closeQueue(JMSDestination jmsDest,
SpyDestination dest)
Close a queue |
void |
commitPersistentTx(Tx txId)
#Description of the Method |
Tx |
createPersistentTx()
#Description of the Method |
protected void |
deleteMessages(LinkedList messages)
|
String |
getDataDirectory()
Gets the DataDirectory attribute of the PersistenceManagerMBean object |
Object |
getInstance()
Returns this instance. |
javax.management.ObjectName |
getMessageCache()
Get the object name of the cache |
MessageCache |
getMessageCacheInstance()
Get the message cache |
int |
getRollOverSize()
Gets maximum number of messages until log rolls over |
protected Tx |
getTx(long value)
|
protected org.jboss.mq.pm.rollinglogged.PersistenceManager.TxInfo |
getTxInfo(Tx txId,
SpyTxLog txLog)
|
TxManager |
getTxManager()
getTxManager method comment. |
protected org.jboss.mq.pm.rollinglogged.PersistenceManager.LogInfo |
newQueueInfo(SpyDestination spyDest,
SpyTxLog txLog)
|
protected void |
releaseTx(Tx tx)
|
protected void |
releaseTxInfo(org.jboss.mq.pm.rollinglogged.PersistenceManager.TxInfo list)
|
void |
remove(MessageReference messageRef,
Tx txId)
#Description of the Method |
void |
restoreDestination(JMSDestination jmsDest)
|
void |
restoreQueue(JMSDestination jmsDest,
SpyDestination dest)
Restore a queue. |
void |
restoreTransactions()
|
void |
rollbackPersistentTx(Tx txId)
#Description of the Method |
protected void |
rollOverLogs()
|
void |
setDataDirectory(String newDataDirectory)
Sets the DataDirectory attribute of the PersistenceManagerMBean object |
void |
setMessageCache(javax.management.ObjectName messageCache)
Set the object name of the message cache |
void |
setRollOverSize(int rollOverSize)
Sets the maximum number of messages before log rolls over |
void |
startService()
Setup the data directory, where messages will be stored, connects to the message cache and restores transactions. |
void |
update(MessageReference messageRef,
Tx txId)
Update a message |
| 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 |
| Field Detail |
public static final String TRANS_FILE_NAME
protected static int MAX_POOL_SIZE
protected ArrayList listPool
protected ArrayList txPool
protected int messageCounter
| Constructor Detail |
public PersistenceManager()
throws javax.jms.JMSException
javax.jms.JMSException - Description of Exception| Method Detail |
public javax.management.ObjectName getMessageCache()
PersistenceManagerMBean
getMessageCache in interface PersistenceManagerMBeanpublic void setMessageCache(javax.management.ObjectName messageCache)
PersistenceManagerMBean
setMessageCache in interface PersistenceManagerMBeanmessageCache - the object namepublic MessageCache getMessageCacheInstance()
PersistenceManager
getMessageCacheInstance in interface PersistenceManagerpublic void setDataDirectory(String newDataDirectory)
setDataDirectory in interface PersistenceManagerMBeannewDataDirectory - The new DataDirectory valuepublic String getDataDirectory()
getDataDirectory in interface PersistenceManagerMBeanpublic void setRollOverSize(int rollOverSize)
setRollOverSize in interface PersistenceManagerMBeanrollOverSize - The maximum number of messages before
rollover occurspublic int getRollOverSize()
getRollOverSize in interface PersistenceManagerMBeanpublic Object getInstance()
getInstance in interface PersistenceManagerMBeanpublic TxManager getTxManager()
getTxManager in interface PersistenceManager
public void startService()
throws Exception
Exceptionpublic void add(MessageReference messageRef, Tx txId) throws javax.jms.JMSException
add in interface PersistenceManagertxId - Description of ParametermessageRef - the message
javax.jms.JMSException - Description of Exceptionpublic void commitPersistentTx(Tx txId) throws javax.jms.JMSException
commitPersistentTx in interface PersistenceManagertxId - Description of Parameter
javax.jms.JMSException - Description of Exceptionpublic Tx createPersistentTx() throws javax.jms.JMSException
createPersistentTx in interface PersistenceManagerjavax.jms.JMSException - Description of Exceptionpublic void remove(MessageReference messageRef, Tx txId) throws javax.jms.JMSException
remove in interface PersistenceManagertxId - Description of ParametermessageRef - the message
javax.jms.JMSException - Description of Exceptionpublic void update(MessageReference messageRef, Tx txId) throws javax.jms.JMSException
update in interface PersistenceManagertxId - the transaction idmessageRef -
javax.jms.JMSException - for any error
public void restoreTransactions()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void restoreDestination(JMSDestination jmsDest) 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 rollbackPersistentTx(Tx txId) throws javax.jms.JMSException
rollbackPersistentTx in interface PersistenceManagertxId - Description of Parameter
javax.jms.JMSException - Description of Exceptionprotected Tx getTx(long value)
protected org.jboss.mq.pm.rollinglogged.PersistenceManager.TxInfo getTxInfo(Tx txId, SpyTxLog txLog)
protected void releaseTxInfo(org.jboss.mq.pm.rollinglogged.PersistenceManager.TxInfo list)
protected void deleteMessages(LinkedList messages) throws javax.jms.JMSException
javax.jms.JMSException
protected void checkRollOver()
throws javax.jms.JMSException
javax.jms.JMSException
protected void rollOverLogs()
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected org.jboss.mq.pm.rollinglogged.PersistenceManager.LogInfo newQueueInfo(SpyDestination spyDest, SpyTxLog txLog) throws javax.jms.JMSException
javax.jms.JMSException
protected void checkCleanup()
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void checkCleanup(SpyTxLog txLog) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void releaseTx(Tx tx)
public 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 error
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||