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 in 5 * 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 or 9 * 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 by 18 * 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.appserv.management.monitor; 28 29 import java.util.Map; 30 31 import com.sun.appserv.management.base.XTypes; 32 import com.sun.appserv.management.base.Container; 33 34 import javax.management.j2ee.statistics.EJBStats; 35 import javax.management.j2ee.statistics.StatelessSessionBeanStats; 36 import javax.management.j2ee.statistics.StatefulSessionBeanStats; 37 import javax.management.j2ee.statistics.EntityBeanStats; 38 import javax.management.j2ee.statistics.MessageDrivenBeanStats; 39 40 41 /** 42 Base monitoring interface for EJBs. 43 @see StatelessSessionBeanMonitor 44 @see StatefulSessionBeanMonitor 45 @see EntityBeanMonitor 46 @see MessageDrivenBeanMonitor 47 */ 48 public interface BeanMonitor extends Container, MonitoringStats 49 { 50 /** 51 @return the associated bean pool monitor object 52 */ 53 public BeanPoolMonitor getBeanPoolMonitor( ); 54 55 /** 56 @return the associated bean cache monitor object 57 */ 58 public BeanCacheMonitor getBeanCacheMonitor( ); 59 60 /** 61 @return Map of BeanMethodMonitorMgr keyed by name (beanName), one per 62 bean in this EJBModule 63 */ 64 public Map<String,BeanMethodMonitor> getBeanMethodMonitorMap( ); 65 66 /** 67 Return the specific sub-interface of EJBStats appropriate to this item. 68 Depending on the type of bean, the EJBStats returned will be one of: 69 <ul> 70 <li>{@link StatelessSessionBeanStats}</li> 71 <li>{@link StatefulSessionBeanStats}</li> 72 <li>{@link EntityBeanStats}</li> 73 <li>{@link MessageDrivenBeanStats}</li> 74 </ul> 75 */ 76 public EJBStats getEJBStats(); 77 } 78