当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
EntityLockMonitor (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.monitor
Class EntityLockMonitor
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.monitor.EntityLockMonitor
- All Implemented Interfaces:
- EntityLockMonitorMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class EntityLockMonitor
- extends org.jboss.system.ServiceMBeanSupport
- implements EntityLockMonitorMBean, javax.management.MBeanRegistration
- Version:
- $Revision: 1.6 $
- Author:
- Bill Burke
- See Also:
Monitorable
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
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 |
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, 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 |
JNDI_NAME
public static final String JNDI_NAME
- See Also:
- Constant Field Values
monitor
protected HashMap monitor
contenders
protected long contenders
maxContenders
protected long maxContenders
times
protected ArrayList times
contentions
protected long contentions
total_time
protected long total_time
sumContenders
protected long sumContenders
EntityLockMonitor
public EntityLockMonitor()
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws Exception
- Specified by:
preRegister
in interface javax.management.MBeanRegistration
- Throws:
Exception
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegister
in interface javax.management.MBeanRegistration
preDeregister
public void preDeregister()
throws Exception
- Specified by:
preDeregister
in interface javax.management.MBeanRegistration
- Throws:
Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister
in interface javax.management.MBeanRegistration
incrementContenders
public void incrementContenders()
decrementContenders
public void decrementContenders(long time)
getAverageContenders
public long getAverageContenders()
- Specified by:
getAverageContenders
in interface EntityLockMonitorMBean
getMaxContenders
public long getMaxContenders()
- Specified by:
getMaxContenders
in interface EntityLockMonitorMBean
getMedianWaitTime
public long getMedianWaitTime()
- Specified by:
getMedianWaitTime
in interface EntityLockMonitorMBean
getTotalContentions
public long getTotalContentions()
- Specified by:
getTotalContentions
in interface EntityLockMonitorMBean
getEntityLockMonitor
public LockMonitor getEntityLockMonitor(String ejbName)
printLockMonitor
public String printLockMonitor()
- Specified by:
printLockMonitor
in interface EntityLockMonitorMBean
clearMonitor
public void clearMonitor()
- Specified by:
clearMonitor
in interface EntityLockMonitorMBean
startService
protected void startService()
throws Exception
- Throws:
Exception
stopService
protected void stopService()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.