|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.monitor.stats.GenericStatsImpl
public class GenericStatsImpl
Provides for generic implementation of any Stats interface. This class facilitates
composition over inheritance for all the classes that implement their
specific Stats interfaces. None of them has to implement the methods defined
by the Stats interface. This class
implements the same interface and does that job. All that implementing classes
have to do is implement the specific accessing methods in their Stats interfaces
and delegate the rest to this class. This class invokes all these methods in
implementing class through introspection.
| Constructor Summary | |
|---|---|
GenericStatsImpl(Class statsInterface,
Object statsProvider)
Constructs a new instance of this class for a given interface and its implementation. |
|
GenericStatsImpl(String statsInterfaceName,
ClassLoader loader,
Object statsProvider)
|
|
GenericStatsImpl(String statsInterfaceName,
Object statsProvider)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericStatsImpl(String statsInterfaceName,
Object statsProvider)
throws ClassNotFoundException
ClassNotFoundException
public GenericStatsImpl(String statsInterfaceName,
ClassLoader loader,
Object statsProvider)
throws ClassNotFoundException
ClassNotFoundException
public GenericStatsImpl(Class statsInterface,
Object statsProvider)
Statistic interface.
NullPointerException - if any of the given parameters are null
IllegalArgumentException - if the contract is not satisfied by given parameters| 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 Stats
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||