org.jboss.mq.server
Interface MessageCacheMBean

All Superinterfaces:
org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
MessageCache

public interface MessageCacheMBean
extends org.jboss.system.ServiceMBean

MBean interface.


Field Summary
static javax.management.ObjectName 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
 
Method Summary
 long getCacheHits()
          Gets the cacheHits
 long getCacheMisses()
          Gets the cacheMisses
 javax.management.ObjectName getCacheStore()
          The getCacheStore method
 long getCurrentMemoryUsage()
          Gets the CurrentMemoryUsage
 int getHardRefCacheSize()
          Gets the hardRefCacheSize
 long getHighMemoryMark()
          Gets the highMemoryMark
 MessageCache getInstance()
          The getInstance method
 boolean getMakeSoftReferences()
          Gets whether to make soft references
 int getMaximumHard()
          Gets the maximum number of hard messages
 long getMaxMemoryMark()
          Gets the maxMemoryMark
 int getMinimumHard()
          Gets the minimum number of hard messages
 long getSoftenAtLeastEveryMillis()
          Gets the maximum length between softening checks
 long getSoftenedSize()
          The getSoftenedSize method
 long getSoftenNoMoreOftenThanMillis()
          Gets the minimum length between softening checks
 long getSoftenWaitMillis()
          Gets the length of time to wait before checking whether we should soften
 int getSoftRefCacheSize()
          Gets the softRefCacheSize
 int getTotalCacheSize()
          Gets the totalCacheSize
 void setCacheStore(javax.management.ObjectName cacheStoreName)
           
 void setHighMemoryMark(long highMemoryMark)
          Sets the highMemoryMark
 void setMakeSoftReferences(boolean makeSoftReferences)
          Sets whether to make soft references
 void setMaximumHard(int maximumHard)
          Sets the maximum number of hard messages
 void setMaxMemoryMark(long maxMemoryMark)
          Sets the maxMemoryMark
 void setMinimumHard(int minimumHard)
          Sets the minimum number of hard messages
 void setSoftenAtLeastEveryMillis(long millis)
          Sets the minimum length between softening checks
 void setSoftenNoMoreOftenThanMillis(long millis)
          Sets the minimum length between softening checks
 void setSoftenWaitMillis(long millis)
          Sets the length of time to wait before checking whether we should soften
 
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

OBJECT_NAME

static final javax.management.ObjectName OBJECT_NAME
Method Detail

getInstance

MessageCache getInstance()
The getInstance method

Returns:
a MessageCache value

getHardRefCacheSize

int getHardRefCacheSize()
Gets the hardRefCacheSize

Returns:
Returns a int

getSoftenedSize

long getSoftenedSize()
The getSoftenedSize method

Returns:
a long value

getSoftRefCacheSize

int getSoftRefCacheSize()
Gets the softRefCacheSize

Returns:
Returns a int

getTotalCacheSize

int getTotalCacheSize()
Gets the totalCacheSize

Returns:
Returns a int

getCacheMisses

long getCacheMisses()
Gets the cacheMisses

Returns:
Returns a int

getCacheHits

long getCacheHits()
Gets the cacheHits

Returns:
Returns a long

getMakeSoftReferences

boolean getMakeSoftReferences()
Gets whether to make soft references

Returns:
true when making soft references

setMakeSoftReferences

void setMakeSoftReferences(boolean makeSoftReferences)
Sets whether to make soft references

Parameters:
true - to make soft references

getMinimumHard

int getMinimumHard()
Gets the minimum number of hard messages

Returns:
the minimum number of hard messages

setMinimumHard

void setMinimumHard(int minimumHard)
Sets the minimum number of hard messages

Parameters:
minimumHard - the minimum number of hard messages

getMaximumHard

int getMaximumHard()
Gets the maximum number of hard messages

Returns:
the minimum number of hard messages

setMaximumHard

void setMaximumHard(int maximumHard)
Sets the maximum number of hard messages

Parameters:
maximumHard - the maximum number of hard messages

getSoftenWaitMillis

long getSoftenWaitMillis()
Gets the length of time to wait before checking whether we should soften

Returns:
the time to wait

setSoftenWaitMillis

void setSoftenWaitMillis(long millis)
Sets the length of time to wait before checking whether we should soften

Parameters:
millis - the time to wait in millis

getSoftenNoMoreOftenThanMillis

long getSoftenNoMoreOftenThanMillis()
Gets the minimum length between softening checks

Returns:
the time to wait

setSoftenNoMoreOftenThanMillis

void setSoftenNoMoreOftenThanMillis(long millis)
Sets the minimum length between softening checks

Parameters:
wait - the time between checks

getSoftenAtLeastEveryMillis

long getSoftenAtLeastEveryMillis()
Gets the maximum length between softening checks

Returns:
the time

setSoftenAtLeastEveryMillis

void setSoftenAtLeastEveryMillis(long millis)
Sets the minimum length between softening checks

Parameters:
wait - the time between checks

getHighMemoryMark

long getHighMemoryMark()
Gets the highMemoryMark

Returns:
Returns a long

setHighMemoryMark

void setHighMemoryMark(long highMemoryMark)
Sets the highMemoryMark

Parameters:
highMemoryMark - The highMemoryMark to set

getMaxMemoryMark

long getMaxMemoryMark()
Gets the maxMemoryMark

Returns:
Returns a long

setMaxMemoryMark

void setMaxMemoryMark(long maxMemoryMark)
Sets the maxMemoryMark

Parameters:
maxMemoryMark - The maxMemoryMark to set

getCurrentMemoryUsage

long getCurrentMemoryUsage()
Gets the CurrentMemoryUsage

Returns:
Returns a long

setCacheStore

void setCacheStore(javax.management.ObjectName cacheStoreName)

getCacheStore

javax.management.ObjectName getCacheStore()
The getCacheStore method

Returns:
an ObjectName value


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