Examples of SnmpOid


Examples of com.sun.jmx.snmp.SnmpOid

     *
     **/
    private int findObject(SnmpOid oid) {
        int low= 0;
        int max= size - 1;
        SnmpOid pos;
        int comp;
        int curr= low + (max-low)/2;
        //System.out.println("Try to retrieve: " + oid.toString());
        while (low <= max) {

View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

        throws SnmpStatusException {

        final int failStatus = SnmpStatusException.snmpRspNotWritable;
        int low= 0;
        int max= size - 1;
        SnmpOid pos;
        int comp;
        int curr= low + (max-low)/2;
        while (low <= max) {

            // XX pos= (SnmpOid) oids.elementAt(curr);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

    /**
     * Registers a specific node in the tree.
     */
    public void registerNode(String oidString ,SnmpMibNode node)
  throws IllegalAccessException {
        SnmpOid oid= new SnmpOid(oidString);
        registerNode(oid.longValue(), 0, node);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

    var      = (SnmpVarBind) e.nextElement();
    r.registerGetException(var,noSuchInstanceException);
      }
  }

  final SnmpOid     oid    = r.getEntryOid();

  // SnmpIndex   index  = buildSnmpIndex(oid.longValue(false), 0);
  // get(req,index,depth+1);
  //
  get(req,oid,depth+1);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

     * <p>
     *
     */
    public void check(SnmpMibSubRequest req, int depth)
  throws SnmpStatusException {
  final SnmpOid     oid    = req.getEntryOid();
  final int         action = getRowAction(req,oid,depth+1);

  final boolean dbg = isDebugOn();

  if (dbg) debug("check","Calling beginRowAction");
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

  throws SnmpStatusException {

  final boolean dbg = isDebugOn();
   if (dbg) debug("set","Entering set.");

  final SnmpOid     oid    = req.getEntryOid();
  final int         action = getRowAction(req,oid,depth+1);

   if (dbg) debug("set","Calling set for " + req.getSize() +
           "varbinds.");
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

  if (entrynames != null && entrynames.size() > pos) {
      name = (ObjectName) entrynames.elementAt(pos);
      entrynames.removeElementAt(pos);
  }

  final SnmpOid rowOid = tableoids[pos];
  removeOid(pos);
        size --;

  if (obj == null) obj = entry;
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

     **/
    protected synchronized void beginRowAction(SnmpMibSubRequest req,
            SnmpOid rowOid, int depth, int rowAction)
  throws SnmpStatusException {
  final boolean     isnew  = req.isNewEntry();
  final SnmpOid     oid    = rowOid;
  final int         action = rowAction;
 
  switch (action) {
  case EnumRowStatus.unspecified:
      if (isnew) {
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

     **/
    protected void endRowAction(SnmpMibSubRequest req, SnmpOid rowOid,
             int depth, int rowAction)
  throws SnmpStatusException {
  final boolean     isnew  = req.isNewEntry();
  final SnmpOid     oid    = rowOid;
  final int         action = rowAction;
  final Object      data   = req.getUserData();
  SnmpValue         value  = null;

  switch (action) {
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

  throws SnmpStatusException {
   
        if (size == 0)
            throw noSuchInstanceException;
       
        final SnmpOid resOid = oid;
           
        // Just a simple check to speed up retrieval of last element ...
        //
        // XX SnmpOid last= (SnmpOid) oids.lastElement();
        SnmpOid last= tableoids[tablecount-1];
        if (last.equals(resOid)) {
            // Last element of the table ...
            //
            throw noSuchInstanceException;
        }
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.