1 11 12 13 package com.sun.jmx.snmp.agent; 14 15 16 17 import java.util.Vector ; 20 21 import javax.management.MBeanServer ; 24 import javax.management.ObjectName ; 25 import javax.management.MalformedObjectNameException ; 26 import javax.management.InstanceNotFoundException ; 27 import javax.management.ServiceNotFoundException ; 28 import com.sun.jmx.snmp.SnmpOid; 29 import com.sun.jmx.snmp.SnmpStatusException; 30 31 39 40 public interface SnmpMibAgentMBean { 41 42 45 56 public void get(SnmpMibRequest req) throws SnmpStatusException; 57 58 69 public void getNext(SnmpMibRequest req) throws SnmpStatusException; 70 71 91 public void getBulk(SnmpMibRequest req, int nonRepeat, int maxRepeat) 92 throws SnmpStatusException; 93 94 105 public void set(SnmpMibRequest req) throws SnmpStatusException; 106 107 120 public void check(SnmpMibRequest req) throws SnmpStatusException; 121 122 125 132 public MBeanServer getMBeanServer(); 133 134 142 public SnmpMibHandler getSnmpAdaptor(); 143 144 153 public void setSnmpAdaptor(SnmpMibHandler stack); 154 155 167 public void setSnmpAdaptor(SnmpMibHandler stack, SnmpOid[] oids); 168 169 182 public void setSnmpAdaptor(SnmpMibHandler stack, String contextName); 183 184 197 public void setSnmpAdaptor(SnmpMibHandler stack, 198 String contextName, 199 SnmpOid[] oids); 200 201 207 public ObjectName getSnmpAdaptorName(); 208 209 221 public void setSnmpAdaptorName(ObjectName name) 222 throws InstanceNotFoundException , ServiceNotFoundException ; 223 224 225 243 public void setSnmpAdaptorName(ObjectName name, SnmpOid[] oids) 244 throws InstanceNotFoundException , ServiceNotFoundException ; 245 246 262 public void setSnmpAdaptorName(ObjectName name, String contextName) 263 throws InstanceNotFoundException , ServiceNotFoundException ; 264 265 282 public void setSnmpAdaptorName(ObjectName name, 283 String contextName, 284 SnmpOid[] oids) 285 throws InstanceNotFoundException , ServiceNotFoundException ; 286 287 296 public boolean getBindingState(); 297 298 303 public String getMibName(); 304 } 305 306 | Popular Tags |