1 28 29 30 package com.caucho.management.j2ee; 31 32 import javax.management.j2ee.statistics.CountStatistic ; 33 import javax.management.j2ee.statistics.JavaMailStats ; 34 35 38 public class JavaMailResource 39 extends J2EEResource 40 implements StatisticsProvider<JavaMailStats > 41 { 42 protected String getName() 43 { 44 return null; 46 } 47 48 protected boolean isJ2EEApplication() 49 { 50 return false; 51 } 52 53 55 public JavaMailStats getStats() 56 { 57 return new JavaMailStatsImpl(this); 58 } 59 60 class JavaMailStatsImpl 61 extends StatsSupport 62 implements JavaMailStats 63 { 64 public JavaMailStatsImpl(J2EEManagedObject j2eeManagedObject) 65 { 66 super(j2eeManagedObject); 67 } 68 69 public CountStatistic getSentMailCount() 70 { 71 return new UnimplementedCountStatistic("SentMailCount"); 72 } 73 } 74 } 75 | Popular Tags |