FileDocCategorySizeDatePackage
LongMonitoredAttributeBase.javaAPI DocJava SE 5 API1517Fri Aug 26 14:54:38 BST 2005com.sun.corba.se.spi.monitoring

LongMonitoredAttributeBase

public abstract class LongMonitoredAttributeBase extends MonitoredAttributeBase

author
Hemanth Puttaswamy

A Cleaner Abstraction to provide a Monitored Attribute of type 'Long'

Fields Summary
Constructors Summary
public LongMonitoredAttributeBase(String name, String description)

Constructs LongMonitoredAttribute, by creating the MonitoredAttributeInfo with 'Long' as the class type. Users are expected to extend this class and provide the implementation for getValue() and if needed clearState() as well.

param
name of tthe MonitoredAttribute

param
description of the Attribute, Please provid a well thought out description, so that the admin can make sense of the attribute supplied.

        
        super( name );
        MonitoredAttributeInfoFactory f = 
            MonitoringFactories.getMonitoredAttributeInfoFactory();
        MonitoredAttributeInfo maInfo = f.createMonitoredAttributeInfo( 
                description, Long.class, false, false );
        this.setMonitoredAttributeInfo( maInfo );
    
Methods Summary