KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > monitoring > LongMonitoredAttributeBase


1 /*
2  * @(#)LongMonitoredAttributeBase.java 1.3 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package com.sun.corba.se.spi.monitoring;
8
9 import java.util.*;
10
11 /**
12  * <p>
13  *
14  * @author Hemanth Puttaswamy
15  * </p>
16  * <p>
17  * A Cleaner Abstraction to provide a Monitored Attribute of type 'Long'
18  * </p>
19  */

20 public abstract class LongMonitoredAttributeBase extends MonitoredAttributeBase {
21
22   ///////////////////////////////////////
23
// operations
24

25
26 /**
27  * <p>
28  * Constructs LongMonitoredAttribute, by creating the
29  * MonitoredAttributeInfo with 'Long' as the class type.
30  * Users are expected to extend this class and provide the implementation
31  * for getValue() and if needed clearState() as well.
32  * </p>
33  * <p>
34  *
35  * @param name of tthe MonitoredAttribute
36  * </p>
37  * <p>
38  * @param description of the Attribute, Please provid a well thought out
39  * description, so that the admin can make sense of the attribute supplied.
40  * </p>
41  */

42     public LongMonitoredAttributeBase(String JavaDoc name, String JavaDoc description) {
43         super( name );
44         MonitoredAttributeInfoFactory f =
45             MonitoringFactories.getMonitoredAttributeInfoFactory();
46         MonitoredAttributeInfo maInfo = f.createMonitoredAttributeInfo(
47                 description, Long JavaDoc.class, false, false );
48         this.setMonitoredAttributeInfo( maInfo );
49     } // end LongMonitoredAttributeBase
50

51
52 } // end LongMonitoredAttributeBase
53

54
55
56
Popular Tags