⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snmpadaptorservermbean.java

📁 Mobile 应用程序使用 Java Micro Edition (Java ME) 平台
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
     */    public Long getSnmpOutPkts();      /**     * Returns the <CODE>snmpInPkts</CODE> value defined in MIB-II.     *      * @return The <CODE>snmpInPkts</CODE> value.     */    public Long getSnmpInPkts();      /**     * Returns the <CODE>snmpInGetRequests</CODE> value defined in MIB-II.     *      * @return The <CODE>snmpInGetRequests</CODE> value.     */    public Long getSnmpInGetRequests();      /**     * Returns the <CODE>snmpInGetNexts</CODE> value defined in MIB-II.     *      * @return The <CODE>snmpInGetNexts</CODE> value.     */    public Long getSnmpInGetNexts();      /**     * Returns the <CODE>snmpInSetRequests</CODE> value defined in MIB-II.     *      * @return The <CODE>snmpInSetRequests</CODE> value.     */    public Long getSnmpInSetRequests();      /**     * Returns the <CODE>snmpInTotalSetVars</CODE> value defined in MIB-II.     *      * @return The <CODE>snmpInTotalSetVars</CODE> value.     */    public Long getSnmpInTotalSetVars();      /**     * Returns the <CODE>snmpInTotalReqVars</CODE> value defined in MIB-II.     *      * @return The <CODE>snmpInTotalReqVars</CODE> value.     */    public Long getSnmpInTotalReqVars();    /**     * Returns the <CODE>snmpSilentDrops</CODE> value defined in rfc 1907 NMPv2-MIB .     *      * @return The <CODE>snmpSilentDrops</CODE> value.     *     * @since 1.5     */    public Long getSnmpSilentDrops();        /**     * Returns the <CODE>snmpProxyDrops</CODE> value defined in rfc 1907 NMPv2-MIB .     *      * @return The <CODE>snmpProxyDrops</CODE> value.     *     * @since 1.5     */    public Long getSnmpProxyDrops();        // PUBLIC METHODS    //---------------        /**     * Adds a new MIB in the SNMP MIB handler.      * This method is called automatically by {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptor(SnmpMibHandler)}       * and {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptorName(ObjectName)}     * and should not be called directly.     *      * @param mib The MIB to add.     *      * @return A reference to the SNMP MIB handler.      *     * @exception IllegalArgumentException If the parameter is null.     */    public SnmpMibHandler addMib(SnmpMibAgent mib) throws IllegalArgumentException;      /**     * Adds a new MIB in the SNMP MIB handler.      *      * @param mib The MIB to add.     * @param oids The set of OIDs this agent implements.     *      * @return A reference to the SNMP MIB handler.      *     * @exception IllegalArgumentException If the parameter is null.     *     * @since 1.5     */    public SnmpMibHandler addMib(SnmpMibAgent mib, SnmpOid[] oids) throws IllegalArgumentException;      /**     * Removes the specified MIB from the SNMP protocol adaptor.      * This method is called automatically by {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptor(SnmpMibHandler)}       * and {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptorName(ObjectName)}     * and should not be called directly.     *      * @param mib The MIB to be removed.     *     * @return <code>true</code> if the specified <CODE>mib</CODE> was a MIB included in the SNMP MIB handler,      * <code>false</code> otherwise.     */    public boolean removeMib(SnmpMibAgent mib);        /**     * Sends a trap using SNMP V1 trap format.     * <BR>The trap is sent to each destination defined in the ACL file (if available).     * If no ACL file or no destinations are available, the trap is sent to the local host.     *      * @param generic The generic number of the trap.     * @param specific The specific number of the trap.     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.     *     * @exception IOException An I/O error occured while sending the trap.     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.     */    public void snmpV1Trap(int generic, int specific, SnmpVarBindList varBindList) throws IOException, SnmpStatusException;            /**     * Sends a trap using SNMP V1 trap format.     * <BR>The trap is sent to the specified <CODE>InetAddress</CODE> destination     * using the specified community string (and the ACL file is not used).     *      * @param address The <CODE>InetAddress</CODE> destination of the trap.     * @param cs The community string to be used for the trap.     * @param generic The generic number of the trap.     * @param specific The specific number of the trap.     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.     *     * @exception IOException An I/O error occurred while sending the trap.     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.     */    public void snmpV1Trap(InetAddress address, String cs, int generic, int specific, SnmpVarBindList varBindList)         throws IOException, SnmpStatusException;            /**     * Sends a trap using SNMP V1 trap format.     * <BR>The trap is sent to the specified <CODE>SnmpPeer</CODE> destination.     * The community string used is the one located in the <CODE>SnmpPeer</CODE> parameters (<CODE>SnmpParameters.getRdCommunity() </CODE>).     *      * @param peer The <CODE>SnmpPeer</CODE> destination of the trap.     * @param agentAddr The agent address to be used for the trap.     * @param enterpOid The enterprise OID to be used for the trap.     * @param generic The generic number of the trap.     * @param specific The specific number of the trap.     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.     * @param time The time stamp (overwrite the current time).     *     * @exception IOException An I/O error occurred while sending the trap.     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.     *     * @since 1.5     */    public void snmpV1Trap(SnmpPeer peer,			   SnmpIpAddress agentAddr,			   SnmpOid enterpOid,			   int generic,			   int specific,			   SnmpVarBindList varBindList,			   SnmpTimeticks time) throws IOException, SnmpStatusException;        /**     * Sends a trap using SNMP V2 trap format.     * <BR>The trap is sent to the specified <CODE>SnmpPeer</CODE> destination.     * <BR>The community string used is the one located in the <CODE>SnmpPeer</CODE> parameters (<CODE>SnmpParameters.getRdCommunity() </CODE>).     * <BR>The variable list included in the outgoing trap is composed of the following items:     * <UL>     * <LI><CODE>sysUpTime.0</CODE> with the value specified by <CODE>time</CODE>     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>     * </UL>     *      * @param peer The <CODE>SnmpPeer</CODE> destination of the trap.     * @param trapOid The OID identifying the trap.     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.     * @param time The time stamp (overwrite the current time).     *     * @exception IOException An I/O error occurred while sending the trap.     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.     *     * @since 1.5     */    public void snmpV2Trap(SnmpPeer peer,			   SnmpOid trapOid,			   SnmpVarBindList varBindList,			   SnmpTimeticks time) throws IOException, SnmpStatusException;    /**     * Sends a trap using SNMP V2 trap format.     * <BR>The trap is sent to each destination defined in the ACL file (if available).     * If no ACL file or no destinations are available, the trap is sent to the local host.     * <BR>The variable list included in the outgoing trap is composed of the following items:     * <UL>     * <LI><CODE>sysUpTime.0</CODE> with its current value     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>     * </UL>     *      * @param trapOid The OID identifying the trap.     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.     *     * @exception IOException An I/O error occured while sending the trap.     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.     */    public void snmpV2Trap(SnmpOid trapOid, SnmpVarBindList varBindList) throws IOException, SnmpStatusException;            /**     * Sends a trap using SNMP V2 trap format.     * <BR>The trap is sent to the specified <CODE>InetAddress</CODE> destination     * using the specified community string (and the ACL file is not used).     * <BR>The variable list included in the outgoing trap is composed of the following items:     * <UL>     * <LI><CODE>sysUpTime.0</CODE> with its current value     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>     * </UL>     *      * @param address The <CODE>InetAddress</CODE> destination of the trap.     * @param cs The community string to be used for the trap.     * @param trapOid The OID identifying the trap.     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.     *     * @exception IOException An I/O error occurred while sending the trap.     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.     */    public void snmpV2Trap(InetAddress address, String cs, SnmpOid trapOid, SnmpVarBindList varBindList)         throws IOException, SnmpStatusException;    /**     * Send the specified trap PDU to the passed <CODE>InetAddress</CODE>.     * @param address The destination address.     * @param pdu The pdu to send.     * @exception IOException An I/O error occurred while sending the trap.     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.     *     * @since 1.5     */    public void snmpPduTrap(InetAddress address, SnmpPduPacket pdu)         throws IOException, SnmpStatusException;    /**     * Send the specified trap PDU to the passed <CODE>SnmpPeer</CODE>.     * @param peer The destination peer. The Read community string is used of <CODE>SnmpParameters</CODE> is used as the trap community string.     * @param pdu The pdu to send.     * @exception IOException An I/O error occurred while sending the trap.     * @exception SnmpStatusException If the trap exceeds the limit defined by <CODE>bufferSize</CODE>.     * @since 1.5     */    public void snmpPduTrap(SnmpPeer peer, 			    SnmpPduPacket pdu)         throws IOException, SnmpStatusException;	           /**     * Sends an inform using SNMP V2 inform request format.     * <BR>The inform request is sent to each destination defined in the ACL file (if available).     * If no ACL file or no destinations are available, the inform request is sent to the local host.     * <BR>The variable list included in the outgoing inform request is composed of the following items:     * <UL>     * <LI><CODE>sysUpTime.0</CODE> with its current value     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>     * </UL>     * To send an inform request, the SNMP adaptor server must be active.     *      * @param cb The callback that is invoked when a request is complete.     * @param trapOid The OID identifying the trap.     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.     *     * @return A vector of {@link com.sun.jmx.snmp.daemon.SnmpInformRequest} objects.     * <P>If there is no destination host for this inform request, the returned vector will be empty.     *     * @exception IllegalStateException  This method has been invoked while the SNMP adaptor server was not active.     * @exception IOException An I/O error occurred while sending the inform request.     * @exception SnmpStatusException If the inform request exceeds the limit defined by <CODE>bufferSize</CODE>.     */    public Vector snmpInformRequest(SnmpInformHandler cb, SnmpOid trapOid, SnmpVarBindList varBindList)         throws IllegalStateException, IOException, SnmpStatusException;            /**     * Sends an inform using SNMP V2 inform request format.     * <BR>The inform is sent to the specified <CODE>InetAddress</CODE> destination     * using the specified community string.     * <BR>The variable list included in the outgoing inform request is composed of the following items:     * <UL>     * <LI><CODE>sysUpTime.0</CODE> with its current value     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>     * </UL>     * To send an inform request, the SNMP adaptor server must be active.     *      * @param address The <CODE>InetAddress</CODE> destination for this inform request.     * @param cs The community string to be used for the inform request.     * @param cb The callback that is invoked when a request is complete.     * @param trapOid The OID identifying the trap.     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.     *     * @return The inform request object.     *     * @exception IllegalStateException  This method has been invoked while the SNMP adaptor server was not active.     * @exception IOException An I/O error occurred while sending the inform request.     * @exception SnmpStatusException If the inform request exceeds the limit defined by <CODE>bufferSize</CODE>.     */    public SnmpInformRequest snmpInformRequest(InetAddress address, String cs, SnmpInformHandler cb,                                                SnmpOid trapOid, SnmpVarBindList varBindList)         throws IllegalStateException, IOException, SnmpStatusException;        /**     * Sends an inform using SNMP V2 inform request format.     * <BR>The inform is sent to the specified <CODE>SnmpPeer</CODE> destination.     * <BR> The community string used is the one located in the <CODE>SnmpPeer</CODE> parameters (<CODE>SnmpParameters.getInformCommunity() </CODE>).     * <BR>The variable list included in the outgoing inform is composed of the following items:     * <UL>     * <LI><CODE>sysUpTime.0</CODE> with its current value     * <LI><CODE>snmpTrapOid.0</CODE> with the value specified by <CODE>trapOid</CODE>     * <LI><CODE>all the (oid,values)</CODE> from the specified <CODE>varBindList</CODE>     * </UL>     * To send an inform request, the SNMP adaptor server must be active.     *      * @param peer The <CODE>SnmpPeer</CODE> destination for this inform request.     * @param cb The callback that is invoked when a request is complete.     * @param trapOid The OID identifying the trap.     * @param varBindList A list of <CODE>SnmpVarBind</CODE> instances or null.     *     * @return The inform request object.     *     * @exception IllegalStateException  This method has been invoked while the SNMP adaptor server was not active.     * @exception IOException An I/O error occurred while sending the inform request.     * @exception SnmpStatusException If the inform request exceeds the limit defined by <CODE>bufferSize</CODE>.     *     * @since 1.5     */    public SnmpInformRequest snmpInformRequest(SnmpPeer peer,					       SnmpInformHandler cb,					       SnmpOid trapOid,					       SnmpVarBindList varBindList) throws IllegalStateException, IOException, SnmpStatusException;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -