1 /*** 2 * Fractal JMX 3 * Copyright (C) 2003 France Telecom R&D 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 * 19 * Contact: fractal@objectweb.org 20 */ 21 package org.objectweb.fractal.jmx.agent; 22 23 import javax.management.ObjectName; 24 import javax.management.monitor.MonitorMBean; 25 26 /** 27 * A customized {@link MonitorMBean} interface. 28 * 29 * @version 0.1 30 */ 31 public interface AgentMonitorMBean extends MonitorMBean { 32 33 /** 34 * Returns the type of attribute which can be observed by this {@link MonitorMBean}. 35 * This is usefull when this monitor can handle several attribute types 36 * (e.g. {@link javax.management.monitor.CounterMonitorMBean counter} and 37 * {@link javax.management.monitor.GaugeMonitorMBean gauge} monitors handle several integer 38 * or floating-point attribute types) 39 * 40 * @return the type of attribute which can be observed by this {@link MonitorMBean}. 41 */ 42 Class getAttributeType(); 43 44 /** 45 * Returns an {@link ObjectName} pattern which can be used for filtering MBeans. 46 * Typically, only MBeans, whose {@link javax.management.ObjectName ObjectName} matches this pattern, 47 * must be added in the set of observed MBeans. 48 * 49 * @return an {@link ObjectName} pattern. 50 */ 51 ObjectName getPattern(); 52 } 53 54