示例#1
0
文件: PDUv1.java 项目: hikumar/snmp4j
 /**
  * Gets the specific trap ID. If this value is set, {@link #getGenericTrap()} must return
  * ENTERPRISE_SPECIFIC(6).
  *
  * @return an integer value > 0.
  * @throws UnsupportedOperationException if the type of this PDU is not {@link PDU#V1TRAP}.
  */
 public int getSpecificTrap() {
   checkV1TRAP();
   return specificTrap.getValue();
 }
示例#2
0
文件: PDUv1.java 项目: hikumar/snmp4j
 /**
  * Gets the generic trap ID. If this value is ENTERPRISE_SPECIFIC(6), then {@link
  * #getSpecificTrap()} will return the trap ID of the enterprise specific trap.
  *
  * @return an Integer32 instance with a value between 0 and 6.
  * @throws UnsupportedOperationException if the type of this PDU is not {@link PDU#V1TRAP}.
  */
 public int getGenericTrap() {
   checkV1TRAP();
   return genericTrap.getValue();
 }