1 22 package org.jboss.jmx.adaptor.snmp.agent; 23 24 import java.net.UnknownHostException ; 25 26 import javax.management.ObjectName ; 27 28 import org.jboss.mx.util.ObjectNameFactory; 29 import org.jboss.system.ListenerServiceMBean; 30 31 37 public interface SnmpAgentServiceMBean extends ListenerServiceMBean 38 { 39 40 ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.jmx:name=SnmpAgent,service=snmp,type=adaptor"); 41 42 44 45 void setManagersResName(String managersResName); 46 String getManagersResName(); 47 48 49 void setNotificationMapResName(String notificationMapResName); 50 String getNotificationMapResName(); 51 52 53 void setRequestHandlerResName(String requestHandlerResName); 54 String getRequestHandlerResName(); 55 56 57 void setTrapFactoryClassName(String name); 58 String getTrapFactoryClassName(); 59 60 61 void setRequestHandlerClassName(String requestHandlerClassName); 62 String getRequestHandlerClassName(); 63 64 65 void setTimerName(ObjectName timerName); 66 ObjectName getTimerName(); 67 68 69 void setDynamicSubscriptions(boolean dynamicSubscriptions); 70 boolean getDynamicSubscriptions(); 71 72 73 void setBindAddress(String bindAddress) throws UnknownHostException ; 74 String getBindAddress(); 75 76 77 void setHeartBeatPeriod(int heartBeatPeriod); 78 int getHeartBeatPeriod(); 79 80 81 void setPort(int port); 82 int getPort(); 83 84 85 void setNumberOfThreads(int numberOfThreads); 86 int getNumberOfThreads(); 87 88 89 void setSnmpVersion(int snmpVersion); 90 int getSnmpVersion(); 91 92 93 void setReadCommunity(String readCommunity); 94 95 96 void setWriteCommunity(String writeCommunity); 97 98 99 long getInstantiationTime(); 100 101 102 long getUptime(); 103 104 105 long getTrapCount(); 106 107 109 113 void reconfigureRequestHandler() throws Exception ; 114 115 } 116 | Popular Tags |