25 package com.sun.corba.se.spi.monitoring; |
25 package com.sun.corba.se.spi.monitoring; |
26 |
26 |
27 import java.util.*; |
27 import java.util.*; |
28 |
28 |
29 /** |
29 /** |
30 * <p> |
30 * @author Hemanth Puttaswamy |
31 * |
31 * |
32 * @author Hemanth Puttaswamy |
|
33 * </p> |
|
34 * <p> |
|
35 * A Cleaner Abstraction to provide a Monitored Attribute of type 'Long' |
32 * A Cleaner Abstraction to provide a Monitored Attribute of type 'Long' |
36 * </p> |
|
37 */ |
33 */ |
38 public abstract class LongMonitoredAttributeBase extends MonitoredAttributeBase { |
34 public abstract class LongMonitoredAttributeBase extends MonitoredAttributeBase { |
39 |
35 |
40 /////////////////////////////////////// |
36 /////////////////////////////////////// |
41 // operations |
37 // operations |
42 |
38 |
43 |
39 |
44 /** |
40 /** |
45 * <p> |
|
46 * Constructs LongMonitoredAttribute, by creating the |
41 * Constructs LongMonitoredAttribute, by creating the |
47 * MonitoredAttributeInfo with 'Long' as the class type. |
42 * MonitoredAttributeInfo with 'Long' as the class type. |
48 * Users are expected to extend this class and provide the implementation |
43 * Users are expected to extend this class and provide the implementation |
49 * for getValue() and if needed clearState() as well. |
44 * for getValue() and if needed clearState() as well. |
50 * </p> |
|
51 * <p> |
|
52 * |
45 * |
53 * @param name of tthe MonitoredAttribute |
46 * @param name of the MonitoredAttribute |
54 * </p> |
|
55 * <p> |
|
56 * @param description of the Attribute, Please provid a well thought out |
47 * @param description of the Attribute, Please provid a well thought out |
57 * description, so that the admin can make sense of the attribute supplied. |
48 * description, so that the admin can make sense of the attribute supplied. |
58 * </p> |
|
59 */ |
49 */ |
60 public LongMonitoredAttributeBase(String name, String description) { |
50 public LongMonitoredAttributeBase(String name, String description) { |
61 super( name ); |
51 super( name ); |
62 MonitoredAttributeInfoFactory f = |
52 MonitoredAttributeInfoFactory f = |
63 MonitoringFactories.getMonitoredAttributeInfoFactory(); |
53 MonitoringFactories.getMonitoredAttributeInfoFactory(); |