1. /*
  2. * @(#)StringMonitoredAttributeBase.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. import java.util.*;
  9. /**
  10. * <p>
  11. *
  12. * @author Hemanth Puttaswamy
  13. * </p>
  14. * <p>
  15. * A Convenient Abstraction to present String type Monitored Attribute. One
  16. * of the examples of StringMonitoredAttribute is the State information.
  17. * </p>
  18. */
  19. public abstract class StringMonitoredAttributeBase
  20. extends MonitoredAttributeBase
  21. {
  22. ///////////////////////////////////////
  23. // operations
  24. /**
  25. * <p>
  26. * Constructs StringMonitoredAttribute with the MonitoredAttributeInfo
  27. * built with the class type of String.
  28. * </p>
  29. * <p>
  30. *
  31. * @param name of this attribute
  32. * </p>
  33. * <p>
  34. * @param description of this attribute
  35. * </p>
  36. * <p>
  37. * @return a StringMonitoredAttributeBase
  38. * </p>
  39. */
  40. public StringMonitoredAttributeBase(String name, String description) {
  41. super( name );
  42. MonitoredAttributeInfoFactory f =
  43. MonitoringFactories.getMonitoredAttributeInfoFactory();
  44. MonitoredAttributeInfo maInfo = f.createMonitoredAttributeInfo(
  45. description, String.class, false, false );
  46. this.setMonitoredAttributeInfo( maInfo );
  47. } // end StringMonitoredAttributeBase
  48. } // end StringMonitoredAttributeBase