1 20 package org.jboss.jmx.adaptor.snmp.test; 21 22 import javax.management.Notification ; 23 24 import org.jboss.system.ServiceMBeanSupport; 25 26 39 public class NotificationProducerService 40 extends ServiceMBeanSupport 41 implements NotificationProducerServiceMBean 42 { 43 48 public void sendV1() 49 throws Exception 50 { 51 sendNotification( 52 new Notification ("V1", this, getNextNotificationSequenceNumber(), 53 "V1 test notifications")); 54 } 55 56 61 public void sendV2() 62 throws Exception 63 { 64 sendNotification( 65 new Notification ("V2", this, getNextNotificationSequenceNumber(), 66 "V2 test notifications")); 67 } 68 69 } 71 | Popular Tags |