站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 varia API Documentation 英文版文档

CounterService (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


org.jboss.varia.counter
Class CounterService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.varia.counter.CounterService
All Implemented Interfaces:
CounterServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class CounterService
extends org.jboss.system.ServiceMBeanSupport
implements CounterServiceMBean

A service offering accumulator style counters to help in diagnosing performance issues.

Version:
$Revision: 1.5 $
Author:
Dan Christopherson

Field Summary
static String JNDI_NAME
           
 
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
CounterService()
           
 
Method Summary
 void accumulate(String counterName, long add)
          accumulate a count into a named counter.
 String list()
           
protected  void startService()
           
protected  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

JNDI_NAME

public static final String JNDI_NAME
See Also:
Constant Field Values
Constructor Detail

CounterService

public CounterService()
Method Detail

accumulate

public void accumulate(String counterName,
                       long add)
accumulate a count into a named counter. will initialize the named counter if neccessary.


startService

protected void startService()
                     throws Exception
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Throws:
Exception

list

public String list()
Specified by:
list in interface CounterServiceMBean


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