1 11 12 13 package com.sun.jmx.snmp.daemon; 14 15 import java.util.Vector ; 17 import java.io.IOException ; 18 import java.net.InetAddress ; 19 20 import com.sun.jmx.snmp.SnmpPduFactory; 23 import com.sun.jmx.snmp.SnmpStatusException; 24 import com.sun.jmx.snmp.SnmpVarBindList; 25 import com.sun.jmx.snmp.SnmpOid; 26 import com.sun.jmx.snmp.SnmpTimeticks; 27 import com.sun.jmx.snmp.SnmpIpAddress; 28 import com.sun.jmx.snmp.SnmpPduPacket; 29 import com.sun.jmx.snmp.InetAddressAcl; 30 import com.sun.jmx.snmp.SnmpPeer; 31 32 import com.sun.jmx.snmp.agent.SnmpMibAgent; 35 import com.sun.jmx.snmp.agent.SnmpMibHandler; 36 import com.sun.jmx.snmp.agent.SnmpUserDataFactory; 37 38 43 44 public interface SnmpAdaptorServerMBean extends CommunicatorServerMBean { 45 46 49 55 public InetAddressAcl getInetAddressAcl(); 56 62 public Integer getTrapPort(); 63 64 69 public void setTrapPort(Integer port); 70 71 77 public int getInformPort(); 78 79 84 public void setInformPort(int port); 85 86 93 public int getServedClientCount(); 94 95 102 public int getActiveClientCount(); 103 104 111 public int getMaxActiveClientCount(); 112 113 122 public void setMaxActiveClientCount(int c) throws java.lang.IllegalStateException ; 123 124 129 public String getProtocol(); 130 131 137 public Integer getBufferSize(); 138 139 147 public void setBufferSize(Integer s) throws java.lang.IllegalStateException ; 148 149 153 public int getMaxTries(); 154 155 159 public void setMaxTries(int newMaxTries); 160 161 165 public int getTimeout(); 166 167 171 public void setTimeout(int newTimeout); 172 173 178 public SnmpPduFactory getPduFactory(); 179 180 185 public void setPduFactory(SnmpPduFactory factory); 186 187 188 194 public void setUserDataFactory(SnmpUserDataFactory factory); 195 196 202 public SnmpUserDataFactory getUserDataFactory(); 203 204 214 public boolean getAuthTrapEnabled(); 215 216 221 public void setAuthTrapEnabled(boolean enabled); 222 223 235 public boolean getAuthRespEnabled(); 236 237 242 public void setAuthRespEnabled(boolean enabled); 243 244 250 public String getEnterpriseOid(); 251 252 259 public void setEnterpriseOid(String oid) throws IllegalArgumentException ; 260 261 266 public String [] getMibs(); 267 268 271 276 public Long getSnmpOutTraps(); 277 278 283 public Long getSnmpOutGetResponses(); 284 285 290 public Long getSnmpOutGenErrs(); 291 292 297 public Long getSnmpOutBadValues(); 298 299 304 public Long getSnmpOutNoSuchNames(); 305 306 311 public Long getSnmpOutTooBigs(); 312 313 318 public Long getSnmpInASNParseErrs(); 319 320 325 public Long getSnmpInBadCommunityUses(); 326 327 332 public Long getSnmpInBadCommunityNames(); 333 334 339 public Long getSnmpInBadVersions(); 340 341 346 public Long getSnmpOutPkts(); 347 348 353 public Long getSnmpInPkts(); 354 355 360 public Long getSnmpInGetRequests(); 361 362 367 public Long getSnmpInGetNexts(); 368 369 374 public Long getSnmpInSetRequests(); 375 376 381 public Long getSnmpInTotalSetVars(); 382 383 388 public Long getSnmpInTotalReqVars(); 389 390 397 public Long getSnmpSilentDrops(); 398 399 406 public Long getSnmpProxyDrops(); 407 408 411 423 public SnmpMibHandler addMib(SnmpMibAgent mib) throws IllegalArgumentException ; 424 425 437 public SnmpMibHandler addMib(SnmpMibAgent mib, SnmpOid[] oids) throws IllegalArgumentException ; 438 439 450 public boolean removeMib(SnmpMibAgent mib); 451 452 464 public void snmpV1Trap(int generic, int specific, SnmpVarBindList varBindList) throws IOException , SnmpStatusException; 465 466 467 481 public void snmpV1Trap(InetAddress address, String cs, int generic, int specific, SnmpVarBindList varBindList) 482 throws IOException , SnmpStatusException; 483 484 485 503 public void snmpV1Trap(SnmpPeer peer, 504 SnmpIpAddress agentAddr, 505 SnmpOid enterpOid, 506 int generic, 507 int specific, 508 SnmpVarBindList varBindList, 509 SnmpTimeticks time) throws IOException , SnmpStatusException; 510 511 532 public void snmpV2Trap(SnmpPeer peer, 533 SnmpOid trapOid, 534 SnmpVarBindList varBindList, 535 SnmpTimeticks time) throws IOException , SnmpStatusException; 536 537 554 public void snmpV2Trap(SnmpOid trapOid, SnmpVarBindList varBindList) throws IOException , SnmpStatusException; 555 556 557 576 public void snmpV2Trap(InetAddress address, String cs, SnmpOid trapOid, SnmpVarBindList varBindList) 577 throws IOException , SnmpStatusException; 578 579 588 public void snmpPduTrap(InetAddress address, SnmpPduPacket pdu) 589 throws IOException , SnmpStatusException; 590 598 public void snmpPduTrap(SnmpPeer peer, 599 SnmpPduPacket pdu) 600 throws IOException , SnmpStatusException; 601 602 625 public Vector snmpInformRequest(SnmpInformHandler cb, SnmpOid trapOid, SnmpVarBindList varBindList) 626 throws IllegalStateException , IOException , SnmpStatusException; 627 628 652 public SnmpInformRequest snmpInformRequest(InetAddress address, String cs, SnmpInformHandler cb, 653 SnmpOid trapOid, SnmpVarBindList varBindList) 654 throws IllegalStateException , IOException , SnmpStatusException; 655 656 657 682 public SnmpInformRequest snmpInformRequest(SnmpPeer peer, 683 SnmpInformHandler cb, 684 SnmpOid trapOid, 685 SnmpVarBindList varBindList) throws IllegalStateException , IOException , SnmpStatusException; 686 } 687 | Popular Tags |