lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Trivial Update of "SolrSnmp" by DarylBeattie
Date Fri, 03 Jul 2009 15:16:26 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by DarylBeattie:

The comment on the change is:
Removed leading whitespace from some of the code examples.

  Using your OID (let's say it's 12345678 for XYZ Corp.), you'll want to edit the attributes.xml
included in the snmp-adapter.sar to add something like the following:
-    <mbean name="" oid-prefix=".">
+ <mbean name="" oid-prefix=".">
-       <attribute name="QueryHandler_Standard_Requests" oid=".1"/>
+   <attribute name="QueryHandler_Standard_Requests" oid=".1"/>
-    </mbean>
+ </mbean>
  === Creating the MBean ===
  You'll want to create an MBean interface that looks something like this:
- 	public interface SolrStatsMBean {
+ public interface SolrStatsMBean {
- 		public long getQueryHandler_Standard_Requests();
+   public long getQueryHandler_Standard_Requests();
- 	}
+ }
  And for the implementation, I have chosen to make most of the accessor methods static because
in my implementation other pieces of code access the stats as well. The implementation looks
like this:

View raw message