|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.appserv.management.j2ee.statistics.GetterInvocationHandler<T>
com.sun.appserv.management.j2ee.statistics.MapGetterInvocationHandler<Statistic>
com.sun.appserv.management.j2ee.statistics.StatsImpl
public class StatsImpl
Generic implementation of Stats based on either a Map or a CompositeData.
There are two ways to implement a specific type of Stats object:
InvocationHandler.
AltJDBCConnectionPoolStatsAltServletStatsConnectionManagerStatsConnectionPoolStatsConnectorConnectionPoolStatsEJBCacheStatsEJBMethodStatsEJBPoolStatsHTTPListenerStatsHTTPServiceVirtualServerStatsKeepAliveStatsThreadPoolStatsTransactionServiceStatsWebModuleVirtualServerStats
| Constructor Summary | |
|---|---|
StatsImpl(CompositeData compositeData)
Create a Stats from a CompositeData, whose keys are the Statistic names and whose values are CompositeData for the Statistic. |
|
StatsImpl(Map<String,Statistic> statisticsIn)
Create a Stats from a Map, whose keys are the Statistic names and whose values are the Statistics. |
|
StatsImpl(Statistic[] statistics)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object rhs)
|
Statistic |
getStatistic(String statisticName)
Get a Statistic by name. |
String[] |
getStatisticNames()
Returns an array of Strings which are the names of the attributes from the specific Stats submodel that this object supports. |
Statistic[] |
getStatistics()
Returns an array containing all of the Statistic objects supported by this Stats object. |
Object |
invoke(Object myProxy,
Method method,
Object[] args)
|
String |
toString()
|
| Methods inherited from class com.sun.appserv.management.j2ee.statistics.MapGetterInvocationHandler |
|---|
containsValue, getMap, getValue, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatsImpl(CompositeData compositeData)
public StatsImpl(Map<String,Statistic> statisticsIn)
public StatsImpl(Statistic[] statistics)
| Method Detail |
|---|
public Statistic getStatistic(String statisticName)
Stats
getStatistic in interface Statspublic String[] getStatisticNames()
Stats
getStatisticNames in interface Statspublic Statistic[] getStatistics()
Stats
getStatistics in interface Statspublic String toString()
toString in class MapGetterInvocationHandler<Statistic>public boolean equals(Object rhs)
equals in class MapGetterInvocationHandler<Statistic>
public Object invoke(Object myProxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerinvoke in class GetterInvocationHandler<Statistic>Throwable
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.