📄 snmpv1communicationinterface.html
字号:
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../snmp/SNMPVarBindList.html" title="class in snmp">SNMPVarBindList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1CommunicationInterface.html#retrieveMIBTable(java.lang.String[])">retrieveMIBTable</A></B>(java.lang.String[] baseID)</CODE>
<BR>
Retrieve all MIB variable values whose OIDs start with the supplied baseIDs.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../snmp/SNMPVarBindList.html" title="class in snmp">SNMPVarBindList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1CommunicationInterface.html#setMIBEntry(java.lang.String[], snmp.SNMPObject[])">setMIBEntry</A></B>(java.lang.String[] itemID,
<A HREF="../snmp/SNMPObject.html" title="class in snmp">SNMPObject</A>[] newValue)</CODE>
<BR>
Set the MIB variable values of the supplied object identifiers given in the itemID array (in dotted-integer notation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../snmp/SNMPVarBindList.html" title="class in snmp">SNMPVarBindList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1CommunicationInterface.html#setMIBEntry(java.lang.String, snmp.SNMPObject)">setMIBEntry</A></B>(java.lang.String itemID,
<A HREF="../snmp/SNMPObject.html" title="class in snmp">SNMPObject</A> newValue)</CODE>
<BR>
Set the MIB variable value of the object identifier given in startID (in dotted-integer notation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1CommunicationInterface.html#setReceiveBufferSize(int)">setReceiveBufferSize</A></B>(int receiveBufferSize)</CODE>
<BR>
Set the size of the buffer used to receive response packets.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../snmp/SNMPv1CommunicationInterface.html#setSocketTimeout(int)">setSocketTimeout</A></B>(int socketTimeout)</CODE>
<BR>
Permits setting timeout value for underlying datagram socket (in milliseconds).</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="SNMP_PORT"><!-- --></A><H3>
SNMP_PORT</H3>
<PRE>
public static final int <B>SNMP_PORT</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#snmp.SNMPv1CommunicationInterface.SNMP_PORT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="requestID"><!-- --></A><H3>
requestID</H3>
<PRE>
public int <B>requestID</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_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>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="SNMPv1CommunicationInterface(int, java.net.InetAddress, java.lang.String)"><!-- --></A><H3>
SNMPv1CommunicationInterface</H3>
<PRE>
public <B>SNMPv1CommunicationInterface</B>(int version,
java.net.InetAddress hostAddress,
java.lang.String community)
throws java.net.SocketException</PRE>
<DL>
<DD>Construct a new communication object to communicate with the specified host using the given community name. The version setting should be either 0 (version 1) or 1 (version 2, a la RFC 1157).
<P>
<DL>
<DT><B>Throws:</B>
<DD><CODE>java.net.SocketException</CODE></DL>
</DL>
<HR>
<A NAME="SNMPv1CommunicationInterface(int, java.net.InetAddress, java.lang.String, int)"><!-- --></A><H3>
SNMPv1CommunicationInterface</H3>
<PRE>
public <B>SNMPv1CommunicationInterface</B>(int version,
java.net.InetAddress hostAddress,
java.lang.String community,
int remotePort)
throws java.net.SocketException</PRE>
<DL>
<DD>Construct a new communication object to communicate with the specified host using the given community name, and sending requests to the specified port. The version setting should be either 0 (version 1) or 1 (version 2, a la RFC 1157).
<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="setSocketTimeout(int)"><!-- --></A><H3>
setSocketTimeout</H3>
<PRE>
public void <B>setSocketTimeout</B>(int socketTimeout)
throws java.net.SocketException</PRE>
<DL>
<DD>Permits setting timeout value for underlying datagram socket (in milliseconds).
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.net.SocketException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="closeConnection()"><!-- --></A><H3>
closeConnection</H3>
<PRE>
public void <B>closeConnection</B>()
throws java.net.SocketException</PRE>
<DL>
<DD>Close the "connection" with the device.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.net.SocketException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="retrieveAllMIBInfo(java.lang.String)"><!-- --></A><H3>
retrieveAllMIBInfo</H3>
<PRE>
public <A HREF="../snmp/SNMPVarBindList.html" title="class in snmp">SNMPVarBindList</A> <B>retrieveAllMIBInfo</B>(java.lang.String startID)
throws java.io.IOException,
<A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></PRE>
<DL>
<DD>Retrieve all MIB variable values subsequent to the starting object identifier given in startID (in dotted-integer notation). Return as SNMPVarBindList object. Uses SNMPGetNextRequests to retrieve variable values in sequence.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - Thrown when timeout experienced while waiting for response to request.
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getMIBEntry(java.lang.String)"><!-- --></A><H3>
getMIBEntry</H3>
<PRE>
public <A HREF="../snmp/SNMPVarBindList.html" title="class in snmp">SNMPVarBindList</A> <B>getMIBEntry</B>(java.lang.String itemID)
throws java.io.IOException,
<A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A>,
<A HREF="../snmp/SNMPGetException.html" title="class in snmp">SNMPGetException</A></PRE>
<DL>
<DD>Retrieve the MIB variable value corresponding to the object identifier given in itemID (in dotted-integer notation). Return as SNMPVarBindList object; if no such variable (either due to device not supporting it, or community name having incorrect access privilege), SNMPGetException thrown
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - Thrown when timeout experienced while waiting for response to request.
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE>
<DD><CODE><A HREF="../snmp/SNMPGetException.html" title="class in snmp">SNMPGetException</A></CODE> - Thrown if supplied OID has value that can't be retrieved</DL>
</DD>
</DL>
<HR>
<A NAME="getMIBEntry(java.lang.String[])"><!-- --></A><H3>
getMIBEntry</H3>
<PRE>
public <A HREF="../snmp/SNMPVarBindList.html" title="class in snmp">SNMPVarBindList</A> <B>getMIBEntry</B>(java.lang.String[] itemID)
throws java.io.IOException,
<A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A>,
<A HREF="../snmp/SNMPGetException.html" title="class in snmp">SNMPGetException</A></PRE>
<DL>
<DD>Retrieve the MIB variable values corresponding to the object identifiers given in the array itemID (in dotted-integer notation). Return as SNMPVarBindList object; if no such variable (either due to device not supporting it, or community name having incorrect access privilege), SNMPGetException thrown
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - Thrown when timeout experienced while waiting for response to request.
<DD><CODE><A HREF="../snmp/SNMPBadValueException.html" title="class in snmp">SNMPBadValueException</A></CODE>
<DD><CODE><A HREF="../snmp/SNMPGetException.html" title="class in snmp">SNMPGetException</A></CODE> - Thrown if one of supplied OIDs has value that can't be retrieved</DL>
</DD>
</DL>
<HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -