|
|||||||||||
| 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.monitor.services.MemoryMonitor
MemoryMonitor class.
| Field Summary | |
static String |
DEFAULT_CRITICAL_THRESHOLD
default critical threshold |
static String |
DEFAULT_SAMPLING_PERIOD
default sampling period |
static int |
DEFAULT_WARNING_MEASUREMENTS
default number of measurements to trigger warning |
static String |
DEFAULT_WARNING_THRESHOLD
default warning threshold |
static String |
FREE_MEMORY_KEY
Free memory key to use in AlarmNotification/userData map |
static long |
GIGA
|
static long |
HOUR
|
static long |
KILO
conversion constants |
static long |
MEGA
|
static String |
MEMORY_LOW
Notification type which indicates a memory low alarm |
static long |
MINS
|
static long |
SECS
|
| 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 | |
MemoryMonitor()
CTOR |
|
| Method Summary | |
String |
getFreeMemoryCriticalThreshold()
|
long |
getFreeMemorySample()
|
String |
getFreeMemoryWarningThreshold()
|
String |
getSamplingPeriod()
|
String |
getSeverity()
|
int |
getTriggeringWarningMeasurements()
|
void |
setFreeMemoryCriticalThreshold(String s)
|
void |
setFreeMemoryWarningThreshold(String s)
|
void |
setSamplingPeriod(String s)
|
void |
setTriggeringWarningMeasurements(int measurements)
|
void |
startService()
|
void |
stopService()
|
| 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 |
| 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 MEMORY_LOW
public static final String FREE_MEMORY_KEY
public static final String DEFAULT_WARNING_THRESHOLD
public static final int DEFAULT_WARNING_MEASUREMENTS
public static final String DEFAULT_CRITICAL_THRESHOLD
public static final String DEFAULT_SAMPLING_PERIOD
public static final long KILO
public static final long MEGA
public static final long GIGA
public static final long SECS
public static final long MINS
public static final long HOUR
| Constructor Detail |
public MemoryMonitor()
| Method Detail |
public void setTriggeringWarningMeasurements(int measurements)
setTriggeringWarningMeasurements in interface MemoryMonitorMBeanpublic int getTriggeringWarningMeasurements()
getTriggeringWarningMeasurements in interface MemoryMonitorMBeanpublic void setFreeMemoryWarningThreshold(String s)
setFreeMemoryWarningThreshold in interface MemoryMonitorMBeanpublic String getFreeMemoryWarningThreshold()
getFreeMemoryWarningThreshold in interface MemoryMonitorMBeanpublic void setFreeMemoryCriticalThreshold(String s)
setFreeMemoryCriticalThreshold in interface MemoryMonitorMBeanpublic String getFreeMemoryCriticalThreshold()
getFreeMemoryCriticalThreshold in interface MemoryMonitorMBeanpublic void setSamplingPeriod(String s)
setSamplingPeriod in interface MemoryMonitorMBeanpublic String getSamplingPeriod()
getSamplingPeriod in interface MemoryMonitorMBeanpublic long getFreeMemorySample()
getFreeMemorySample in interface MemoryMonitorMBeanpublic String getSeverity()
getSeverity in interface MemoryMonitorMBean
public void startService()
throws Exception
Exceptionpublic void stopService()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||