All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jsnmp.SnmpSession

java.lang.Object
   |
   +----jsnmp.SnmpSession

public class SnmpSession
extends Object
The SnmpSession class implements the SNMP Version 1 protocol through the methods get and getNext.


Variable Index

 o agentAddress
 o community
 o ipAddress
 o remotePort
 o retries
 o socket
 o timeout

Constructor Index

 o SnmpSession()
 o SnmpSession(String, int, int)

Method Index

 o authenticate(SnmpPDU, String)
Default authenticate which compares the PDU and Session community strings
 o get(String, String[], boolean)
 o getNext(String, String[])
 o groupOids(String[])
 o handlePDU(DatagramPacket)
 o hexDump(byte[], int)
 o open()
 o set(String, String[], SnmpVar[])
 o setCommunity(String)
 o setPort(int)
 o setRetries(int)
 o setTimeOut(int)
 o singleOids(String[])
 o transaction(SnmpPDU)

Variables

 o community
 private String community
 o retries
 private int retries
 o timeout
 private int timeout
 o agentAddress
 private InetAddress agentAddress
 o ipAddress
 private String ipAddress
 o remotePort
 private int remotePort
 o socket
 private DatagramSocket socket

Constructors

 o SnmpSession
 public SnmpSession()
 o SnmpSession
 public SnmpSession(String community,
                    int retries,
                    int timeout)

Methods

 o setPort
 public void setPort(int port)
 o setTimeOut
 public void setTimeOut(int timeOut)
 o setRetries
 public void setRetries(int retries)
 o setCommunity
 public void setCommunity(String community)
 o set
 public Object[] set(String ipAddr,
                     String oids[],
                     SnmpVar values[])
 o get
 public Object[] get(String ipAddr,
                     String oids[],
                     boolean oneAtaTime)
 o open
 private boolean open()
 o singleOids
 private Object[] singleOids(String oids[])
 o groupOids
 private Object[] groupOids(String oids[])
 o getNext
 public Vector getNext(String ipAddr,
                       String oids[])
 o transaction
 private SnmpPDU transaction(SnmpPDU pdu) throws SnmpException
 o handlePDU
 private SnmpPDU handlePDU(DatagramPacket packet) throws SnmpException
 o authenticate
 public boolean authenticate(SnmpPDU pdu,
                             String community)
Default authenticate which compares the PDU and Session community strings

 o hexDump
 private void hexDump(byte buffer[],
                      int length)

All Packages  Class Hierarchy  This Package  Previous  Next  Index