1 /*2 * The contents of this file are subject to the terms 3 * of the Common Development and Distribution License 4 * (the License). You may not use this file except in5 * compliance with the License.6 * 7 * You can obtain a copy of the license at 8 * https://glassfish.dev.java.net/public/CDDLv1.0.html or9 * glassfish/bootstrap/legal/CDDLv1.0.txt.10 * See the License for the specific language governing 11 * permissions and limitations under the License.12 * 13 * When distributing Covered Code, include this CDDL 14 * Header Notice in each file and include the License file 15 * at glassfish/bootstrap/legal/CDDLv1.0.txt. 16 * If applicable, add the following below the CDDL Header, 17 * with the fields enclosed by brackets [] replaced by18 * you own identifying information: 19 * "Portions Copyrighted [year] [name of copyright owner]"20 * 21 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.22 */23 24 /*25 */26 27 package com.sun.enterprise.management.monitor;28 29 import com.sun.appserv.management.monitor.ThreadPoolMonitor;30 31 import javax.management.ObjectName ;32 import javax.management.MBeanException ;33 import javax.management.j2ee.statistics.Statistic ;34 import javax.management.j2ee.statistics.Stats ;35 import javax.management.openmbean.CompositeDataSupport ;36 import javax.management.openmbean.OpenDataException ;37 38 import com.sun.appserv.management.base.XTypes;39 import com.sun.appserv.management.base.AMX;40 import com.sun.appserv.management.monitor.Monitoring;41 import com.sun.appserv.management.monitor.MonitoringRoot;42 import com.sun.appserv.management.util.j2ee.J2EEUtil;43 import com.sun.appserv.management.j2ee.statistics.StatsImpl;44 45 import com.sun.enterprise.management.support.AMXImplBase;46 import com.sun.enterprise.management.support.Delegate;47 48 import com.sun.appserv.management.monitor.statistics.ThreadPoolStats;49 50 /**51 */52 public class ThreadPoolMonitorImpl extends MonitoringStatsImplBase53 // implements ThreadPoolMonitor54 {55 public ThreadPoolMonitorImpl(Delegate delegate) 56 {57 super( XTypes.THREAD_POOL_MONITOR, delegate );58 }59 60 61 protected Class 62 getStatsInterface()63 {64 return( ThreadPoolStats.class );65 } 66 67 public ThreadPoolStats68 getThreadPoolStats()69 {70 return( (ThreadPoolStats)getStats() );71 } 72 }73