|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.mq.pm.file.CacheStore
This class manages the persistence needs of the MessageCache
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 | |
CacheStore()
|
Method Summary | |
String |
getDataDirectory()
Gets the DataDirectory attribute of the CacheStoreMBean object |
Object |
getInstance()
Get the instance |
SpyMessage |
loadFromStorage(MessageReference mh)
Reads the message refered to by the MessagReference back as a SpyMessage |
void |
removeFromStorage(MessageReference mh)
Removes the message that was stored in secondary storage. |
void |
saveToStorage(MessageReference mh,
SpyMessage message)
Stores the given message to secondary storeage. |
void |
setDataDirectory(String newDataDirectory)
Sets the DataDirectory attribute of the CacheStoreMBean object |
protected void |
startService()
This gets called to start the service. |
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 CacheStore()
Method Detail |
public SpyMessage loadFromStorage(MessageReference mh) throws javax.jms.JMSException
CacheStore
loadFromStorage
in interface CacheStore
mh
- the message reference
javax.jms.JMSException
- for any errorloadFromStorage(MessageReference)
public void saveToStorage(MessageReference mh, SpyMessage message) throws javax.jms.JMSException
CacheStore
saveToStorage
in interface CacheStore
mh
- the message referencemessage
- the message
javax.jms.JMSException
- for any errorsaveToStorage(MessageReference, SpyMessage)
public void removeFromStorage(MessageReference mh) throws javax.jms.JMSException
CacheStore
removeFromStorage
in interface CacheStore
mh
- the message reference
javax.jms.JMSException
- for any errorremoveFromStorage(MessageReference)
public String getDataDirectory()
getDataDirectory
in interface CacheStoreMBean
CacheStoreMBean.getDataDirectory()
public void setDataDirectory(String newDataDirectory)
setDataDirectory
in interface CacheStoreMBean
newDataDirectory
- The new DataDirectory valueCacheStoreMBean.setDataDirectory(java.lang.String)
protected void startService() throws Exception
Exception
public Object getInstance()
CacheStoreMBean
getInstance
in interface CacheStoreMBean
CacheStoreMBean#getCacheStoreInstance()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |