FileDocCategorySizeDatePackage
MonitoredAttributeType.javaAPI DocGlassfish v2 API3782Fri May 04 22:33:44 BST 2007com.sun.enterprise.admin.monitor.types

MonitoredAttributeType

public class MonitoredAttributeType extends Object
Base Type for monitored attribute. In general, a monitored attribute value is of the type of one of the common java types (String, Integer etc.). However, jmx model proposes one MBean for every monitorable attribute and proposes interfaces like javax.management.monitor.CounterMonitorMBean, javax.management.monitor.GaugeMonitorMBean, javax.management.monitor.StringMonitorMBean for monitoring MBeans. For iAS7 SE, there is no plan to manage MBeans for every monitorable attribute, but for future enhancements, it is good to associate these types to every monitored attribute, so if needed appropriate MBeans can be created. Since this object is a workaround to get appropriate MBean created, there will be no value associated with these objects. The monitored attribute values will still be available as an object of type returned by the method getJavaType().

Fields Summary
private Class
javaType
Java type for the monitored attribute
Constructors Summary
protected MonitoredAttributeType(Class javaType)
Create a monitored attribute type for a monitored attribute whose values are of specified javaType.

        this.javaType = javaType;
    
Methods Summary
public java.lang.ClassgetJavaType()
Get java type for this monitored attribute type

        return javaType;
    
public java.lang.StringgetJavaTypeName()
Get java class name for this monitored attribute type

        return javaType.getName();