1 23 24 package com.sun.enterprise.iiop; 25 26 import javax.management.j2ee.statistics.Statistic ; 27 28 import com.sun.enterprise.admin.monitor.stats.GenericStatsImpl; 29 30 36 37 public class ORBCommonStatsImpl { 38 39 private GenericStatsImpl genericStatsDelegate; 40 41 protected ORBCommonStatsImpl() { 42 } 43 44 protected void initialize(String statInterfaceName) { 45 try { 46 genericStatsDelegate = new GenericStatsImpl(statInterfaceName, this); 47 } catch(ClassNotFoundException cnfEx) { 48 throw new RuntimeException (statInterfaceName + " not found", cnfEx); 49 } 50 } 51 52 public Statistic getStatistic(String statName) { 53 return genericStatsDelegate.getStatistic(statName); 54 } 55 56 public String [] getStatisticNames() { 57 return genericStatsDelegate.getStatisticNames(); 58 } 59 60 public Statistic [] getStatistics() { 61 return genericStatsDelegate.getStatistics(); 62 } 63 64 } 65 | Popular Tags |