public class GenericStatsImpl extends Object implements org.glassfish.external.statistics.Stats
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 and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
org.glassfish.external.statistics.Statistic |
getStatistic(String statisticName) |
String[] |
getStatisticNames() |
org.glassfish.external.statistics.Statistic[] |
getStatistics() |
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 nullIllegalArgumentException
- if the contract is not satisfied by given parameterspublic org.glassfish.external.statistics.Statistic getStatistic(String statisticName)
getStatistic
in interface org.glassfish.external.statistics.Stats
public String[] getStatisticNames()
getStatisticNames
in interface org.glassfish.external.statistics.Stats
public org.glassfish.external.statistics.Statistic[] getStatistics()
getStatistics
in interface org.glassfish.external.statistics.Stats
Copyright © 2018. All rights reserved.