org.jboss.mq.kernel
Class MessageCache

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.mq.server.MessageCache
              extended by org.jboss.mq.kernel.MessageCache
All Implemented Interfaces:
Runnable, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, MessageCacheMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class MessageCache
extends MessageCache

lite wrapper so that this can work in a dependency injection framework.

Version:
$Revision: 57198 $
Author:
Bill Burke

Field Summary
 
Fields inherited from class org.jboss.mq.server.MessageCache
cacheStore, DEFAULT_HIGH_MEMORY_MARK, DEFAULT_MAX_MEMORY_MARK, ONE_MEGABYTE
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.mq.server.MessageCacheMBean
OBJECT_NAME
 
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
MessageCache()
           
 
Method Summary
 void create()
           
 void destroy()
           
 void setPersistenceManager(CacheStore cs)
           
protected  void setupCacheStore()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.mq.server.MessageCache
add, add, addInternal, getCacheHits, getCacheMisses, getCacheStore, getCurrentMemoryUsage, getHardRefCacheSize, getHighMemoryMark, getInstance, getMakeSoftReferences, getMaximumHard, getMaxMemoryMark, getMinimumHard, getName, getSoftenAtLeastEveryMillis, getSoftenedSize, getSoftenNoMoreOftenThanMillis, getSoftenWaitMillis, getSoftRefCacheSize, getTotalCacheSize, remove, removeDelayed, removeInternal, run, setCacheStore, setHighMemoryMark, setMakeSoftReferences, setMaximumHard, setMaxMemoryMark, setMinimumHard, setSoftenAtLeastEveryMillis, setSoftenNoMoreOftenThanMillis, setSoftenWaitMillis, startService, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
createService, destroyService, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, 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
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 

Constructor Detail

MessageCache

public MessageCache()
Method Detail

setupCacheStore

protected void setupCacheStore()
                        throws Exception
Overrides:
setupCacheStore in class MessageCache
Throws:
Exception

setPersistenceManager

public void setPersistenceManager(CacheStore cs)

create

public void create()
            throws Exception
Specified by:
create in interface org.jboss.system.Service
Overrides:
create in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

start

public void start()
           throws Exception
Specified by:
start in interface org.jboss.system.Service
Overrides:
start in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

stop

public void stop()
Specified by:
stop in interface org.jboss.system.Service
Overrides:
stop in class org.jboss.system.ServiceMBeanSupport

destroy

public void destroy()
Specified by:
destroy in interface org.jboss.system.Service
Overrides:
destroy in class org.jboss.system.ServiceMBeanSupport


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.