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

📄 snmptrapreceiverinterface.html

📁 snmp inquistor Pour la communication avec les agents SNMP on utilise un package Java open source
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DL>
<DD>Construct a new trap receiver object to receive traps from remote SNMP hosts.    Uses the standard SNMP trap reception port 162, and System.out to report errors.
<P>
<DL>

<DT><B>Throws:</B>
<DD><CODE>java.net.SocketException</CODE></DL>
</DL>
<HR>

<A NAME="SNMPTrapReceiverInterface(java.io.PrintWriter)"><!-- --></A><H3>
SNMPTrapReceiverInterface</H3>
<PRE>
public <B>SNMPTrapReceiverInterface</B>(java.io.PrintWriter&nbsp;errorReceiver)
                          throws java.net.SocketException</PRE>
<DL>
<DD>Construct a new trap receiver object to receive traps from remote SNMP hosts.    Uses the specified Writer to deliver error messages, and the standard SNMP trap    port 162.
<P>
<DL>

<DT><B>Throws:</B>
<DD><CODE>java.net.SocketException</CODE></DL>
</DL>
<HR>

<A NAME="SNMPTrapReceiverInterface(int)"><!-- --></A><H3>
SNMPTrapReceiverInterface</H3>
<PRE>
public <B>SNMPTrapReceiverInterface</B>(int&nbsp;trapReceivePort)
                          throws java.net.SocketException</PRE>
<DL>
<DD>Construct a new trap receiver object to receive traps from remote SNMP hosts.    Uses the specified port for trap reception, and System.out to report errors.
<P>
<DL>

<DT><B>Throws:</B>
<DD><CODE>java.net.SocketException</CODE></DL>
</DL>
<HR>

<A NAME="SNMPTrapReceiverInterface(java.io.PrintWriter, int)"><!-- --></A><H3>
SNMPTrapReceiverInterface</H3>
<PRE>
public <B>SNMPTrapReceiverInterface</B>(java.io.PrintWriter&nbsp;errorReceiver,
                                 int&nbsp;trapReceivePort)
                          throws java.net.SocketException</PRE>
<DL>
<DD>Construct a new trap receiver object to receive traps from remote SNMP hosts.    This version will accept messages from all hosts using any community name. Uses the   specified Writer to deliver error messages and the specified port to listen on.
<P>
<DL>

<DT><B>Throws:</B>
<DD><CODE>java.net.SocketException</CODE></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="setErrorReceiver(java.io.PrintWriter)"><!-- --></A><H3>
setErrorReceiver</H3>
<PRE>
public void <B>setErrorReceiver</B>(java.io.PrintWriter&nbsp;errorReceiver)</PRE>
<DL>
<DD>Set the specified PrintWriter to receive error messages.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addv1TrapListener(snmp.SNMPv1TrapListener)"><!-- --></A><H3>
addv1TrapListener</H3>
<PRE>
public void <B>addv1TrapListener</B>(<A HREF="../snmp/SNMPv1TrapListener.html" title="interface in snmp">SNMPv1TrapListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removev1TrapListener(snmp.SNMPv1TrapListener)"><!-- --></A><H3>
removev1TrapListener</H3>
<PRE>
public void <B>removev1TrapListener</B>(<A HREF="../snmp/SNMPv1TrapListener.html" title="interface in snmp">SNMPv1TrapListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addv2TrapListener(snmp.SNMPv2TrapListener)"><!-- --></A><H3>
addv2TrapListener</H3>
<PRE>
public void <B>addv2TrapListener</B>(<A HREF="../snmp/SNMPv2TrapListener.html" title="interface in snmp">SNMPv2TrapListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removev2TrapListener(snmp.SNMPv2TrapListener)"><!-- --></A><H3>
removev2TrapListener</H3>
<PRE>
public void <B>removev2TrapListener</B>(<A HREF="../snmp/SNMPv2TrapListener.html" title="interface in snmp">SNMPv2TrapListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addv2InformRequestListener(snmp.SNMPv2InformRequestListener)"><!-- --></A><H3>
addv2InformRequestListener</H3>
<PRE>
public void <B>addv2InformRequestListener</B>(<A HREF="../snmp/SNMPv2InformRequestListener.html" title="interface in snmp">SNMPv2InformRequestListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removev2InformRequestListener(snmp.SNMPv2InformRequestListener)"><!-- --></A><H3>
removev2InformRequestListener</H3>
<PRE>
public void <B>removev2InformRequestListener</B>(<A HREF="../snmp/SNMPv2InformRequestListener.html" title="interface in snmp">SNMPv2InformRequestListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="startReceiving()"><!-- --></A><H3>
startReceiving</H3>
<PRE>
public void <B>startReceiving</B>()</PRE>
<DL>
<DD>Start listening for trap and inform messages.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="stopReceiving()"><!-- --></A><H3>
stopReceiving</H3>
<PRE>
public void <B>stopReceiving</B>()
                   throws java.net.SocketException</PRE>
<DL>
<DD>Stop listening for trap and inform messages.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.net.SocketException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="run()"><!-- --></A><H3>
run</H3>
<PRE>
public void <B>run</B>()</PRE>
<DL>
<DD>The run() method for the trap interface's listener. Just waits for trap or inform messages to    come in on port 162, then dispatches the recieved PDUs to each of the registered     listeners by calling their processTrap() or processInform() methods.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>run</CODE> in interface <CODE>java.lang.Runnable</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setReceiveBufferSize(int)"><!-- --></A><H3>
setReceiveBufferSize</H3>
<PRE>
public void <B>setReceiveBufferSize</B>(int&nbsp;receiveBufferSize)</PRE>
<DL>
<DD>Set the size of the buffer used to receive response packets. RFC 1157 stipulates that an SNMP   implementation must be able to receive packets of at least 484 bytes, so if you try to set the   size to a value less than this, the receive buffer size will be set to 484 bytes. In addition,   the maximum size of a UDP packet payload is 65535 bytes, so setting the buffer to a larger size   will just waste memory. The default value is 512 bytes. The value may need to be increased if   get-requests are issued for multiple OIDs.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getReceiveBufferSize()"><!-- --></A><H3>
getReceiveBufferSize</H3>
<PRE>
public int <B>getReceiveBufferSize</B>()</PRE>
<DL>
<DD>Returns the current size of the buffer used to receive packets.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SNMPTrapReceiverInterface.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../snmp/SNMPTimeTicks.html" title="class in snmp"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../snmp/SNMPTrapSenderInterface.html" title="class in snmp"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../index.html?snmp/SNMPTrapReceiverInterface.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SNMPTrapReceiverInterface.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

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