1. /*
  2. * @(#)StringMonitorMBean.java 4.24 04/05/18
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.management.monitor;
  8. // jmx imports
  9. //
  10. import javax.management.ObjectName;
  11. /**
  12. * Exposes the remote management interface of the string monitor MBean.
  13. *
  14. * @version 4.24 05/18/04
  15. * @author Sun Microsystems, Inc
  16. *
  17. * @since 1.5
  18. */
  19. public interface StringMonitorMBean extends MonitorMBean {
  20. // GETTERS AND SETTERS
  21. //--------------------
  22. /**
  23. * Gets the derived gauge.
  24. *
  25. * @return The derived gauge.
  26. * @deprecated As of JMX 1.2, replaced by {@link #getDerivedGauge(ObjectName)}
  27. */
  28. @Deprecated
  29. public String getDerivedGauge();
  30. /**
  31. * Gets the derived gauge timestamp.
  32. *
  33. * @return The derived gauge timestamp.
  34. * @deprecated As of JMX 1.2, replaced by {@link #getDerivedGaugeTimeStamp(ObjectName)}
  35. */
  36. @Deprecated
  37. public long getDerivedGaugeTimeStamp();
  38. /**
  39. * Gets the derived gauge for the specified MBean.
  40. *
  41. * @param object the MBean for which the derived gauge is to be returned
  42. * @return The derived gauge for the specified MBean if this MBean is in the
  43. * set of observed MBeans, or <code>null</code> otherwise.
  44. *
  45. * @since.unbundled JMX 1.2
  46. */
  47. public String getDerivedGauge(ObjectName object);
  48. /**
  49. * Gets the derived gauge timestamp for the specified MBean.
  50. *
  51. * @param object the MBean for which the derived gauge timestamp is to be returned
  52. * @return The derived gauge timestamp for the specified MBean if this MBean
  53. * is in the set of observed MBeans, or <code>null</code> otherwise.
  54. *
  55. * @since.unbundled JMX 1.2
  56. */
  57. public long getDerivedGaugeTimeStamp(ObjectName object);
  58. /**
  59. * Gets the string to compare with the observed attribute.
  60. *
  61. * @return The string value.
  62. *
  63. * @see #setStringToCompare
  64. */
  65. public String getStringToCompare();
  66. /**
  67. * Sets the string to compare with the observed attribute.
  68. *
  69. * @param value The string value.
  70. * @exception java.lang.IllegalArgumentException The specified
  71. * string to compare is null.
  72. *
  73. * @see #getStringToCompare
  74. */
  75. public void setStringToCompare(String value) throws java.lang.IllegalArgumentException;
  76. /**
  77. * Gets the matching notification's on/off switch value.
  78. *
  79. * @return <CODE>true</CODE> if the string monitor notifies when
  80. * matching, <CODE>false</CODE> otherwise.
  81. *
  82. * @see #setNotifyMatch
  83. */
  84. public boolean getNotifyMatch();
  85. /**
  86. * Sets the matching notification's on/off switch value.
  87. *
  88. * @param value The matching notification's on/off switch value.
  89. *
  90. * @see #getNotifyMatch
  91. */
  92. public void setNotifyMatch(boolean value);
  93. /**
  94. * Gets the differing notification's on/off switch value.
  95. *
  96. * @return <CODE>true</CODE> if the string monitor notifies when
  97. * differing, <CODE>false</CODE> otherwise.
  98. *
  99. * @see #setNotifyDiffer
  100. */
  101. public boolean getNotifyDiffer();
  102. /**
  103. * Sets the differing notification's on/off switch value.
  104. *
  105. * @param value The differing notification's on/off switch value.
  106. *
  107. * @see #getNotifyDiffer
  108. */
  109. public void setNotifyDiffer(boolean value);
  110. }