[jboss-cvs] JBossAS SVN: r109545 - in branches/snmp4j-integration-1.11.1/varia/src: resources/services/snmp/deploy/META-INF and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 29 15:56:40 EST 2010


Author: thauser at redhat.com
Date: 2010-11-29 15:56:40 -0500 (Mon, 29 Nov 2010)
New Revision: 109545

Modified:
   branches/snmp4j-integration-1.11.1/varia/src/main/java/org/jboss/jmx/adaptor/snmp/agent/RequestHandlerImpl.java
   branches/snmp4j-integration-1.11.1/varia/src/resources/services/snmp/deploy/META-INF/jboss-service.xml
Log:
commit for maven annoyance


Modified: branches/snmp4j-integration-1.11.1/varia/src/main/java/org/jboss/jmx/adaptor/snmp/agent/RequestHandlerImpl.java
===================================================================
--- branches/snmp4j-integration-1.11.1/varia/src/main/java/org/jboss/jmx/adaptor/snmp/agent/RequestHandlerImpl.java	2010-11-29 20:52:22 UTC (rev 109544)
+++ branches/snmp4j-integration-1.11.1/varia/src/main/java/org/jboss/jmx/adaptor/snmp/agent/RequestHandlerImpl.java	2010-11-29 20:56:40 UTC (rev 109545)
@@ -582,7 +582,7 @@
 			try
         {
 			   Object val = server.getAttribute(be.mbean, be.attr.getName());
-
+// TODO: refactor all this type hogwash into a new method or even a new class.
 				if (val instanceof Long)
            {
 					Long uin = (Long) val;
@@ -602,15 +602,18 @@
 				}
 				
 				//not sure about how to handle this case yet
-/*           else if (val instanceof SnmpObjectId)     
+           else if (val instanceof OID)     
            {
-        	   		int[] oid = val.getValue;
-					ssy = new OID(oid);
-           }*/
+        	   		ssy = new OID((OID)val);
+           }
            else if (val instanceof TimeTicks)
            {
               ssy = (TimeTicks)val;
            }
+           else if (val instanceof Counter32)
+           {
+        	   ssy = (Counter32) val;
+           }
            else
 					log.info("Unknown type for " + be);
 			}

Modified: branches/snmp4j-integration-1.11.1/varia/src/resources/services/snmp/deploy/META-INF/jboss-service.xml
===================================================================
--- branches/snmp4j-integration-1.11.1/varia/src/resources/services/snmp/deploy/META-INF/jboss-service.xml	2010-11-29 20:52:22 UTC (rev 109544)
+++ branches/snmp4j-integration-1.11.1/varia/src/resources/services/snmp/deploy/META-INF/jboss-service.xml	2010-11-29 20:56:40 UTC (rev 109545)
@@ -99,7 +99,7 @@
     <attribute name="TrapFactoryClassName">org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport</attribute>
     <attribute name="NotificationMapResName">/notifications.xml</attribute>
     <attribute name="ManagersResName">/managers.xml</attribute>
-    <attribute name="HeartBeatPeriod">2</attribute>
+    <attribute name="HeartBeatPeriod">0</attribute>
     <attribute name="BindAddress">
        <!-- Get the interface from the ServiceBindingManager -->
        <value-factory bean="ServiceBindingManager" method="getStringBinding" 



More information about the jboss-cvs-commits mailing list