Package com.sun.jmx.snmp

Examples of com.sun.jmx.snmp.SnmpValue


        if (element.value == SnmpVarBind.endOfMibView) return result;

        if (result.value == SnmpVarBind.endOfMibView) return element;

        final SnmpValue val = result.value;

        int comp = element.oid.compareTo(result.oid);
        if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINER)) {
            SNMP_ADAPTOR_LOGGER.logp(Level.FINER, SnmpSubRequestHandler.class.getName(),
                "findVarBind","Comparing OID element : " + element.oid +
View Full Code Here


        }

        // In v1 make sure there is no endOfMibView ...
        //
        for(int i=0; i < max; i++) {
            SnmpValue val= result[i].value;
            if (val == SnmpVarBind.endOfMibView)
                return newErrorResponsePdu(req,
                                   SnmpDefinitions.snmpRspNoSuchName, i+1);
        }
View Full Code Here

                //    elmt.value = SnmpVarBind.endOfMibView;
                /* end of NPCTE fix for bugid 4381195 */
                continue;
            }

            final SnmpValue val= vb.value;
            if ((val == null)|| (val == SnmpVarBind.endOfMibView)){
                /* NPCTE fix for bugid 4381195 esc 0. <J.C.> < 17-Oct-2000> */
                if ((elmt != null) &&
                    (elmt.value != SnmpVarBind.endOfMibView))
                    result[index]= elmt;
View Full Code Here

     * @see com.sun.jmx.snmp.EnumRowStatus
     **/
    protected int mapRowStatus(SnmpOid rowOid, SnmpVarBind vbstatus,
                               Object userData)
        throws SnmpStatusException {
        final SnmpValue rsvalue = vbstatus.value;

        if (rsvalue instanceof SnmpInt)
            return ((SnmpInt)rsvalue).intValue();
        else
            throw new SnmpStatusException(
View Full Code Here

        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) {
        case EnumRowStatus.unspecified:
            break;
        case EnumRowStatus.createAndGo:
View Full Code Here

     * @see com.sun.jmx.snmp.EnumRowStatus
     **/
    protected int mapRowStatus(SnmpOid rowOid, SnmpVarBind vbstatus,
             Object userData)
  throws SnmpStatusException {
  final SnmpValue rsvalue = vbstatus.value;
 
  if (rsvalue instanceof SnmpInt)
      return ((SnmpInt)rsvalue).intValue();
  else
      throw new SnmpStatusException(
View Full Code Here

  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) {
  case EnumRowStatus.unspecified:
      break;
   case EnumRowStatus.createAndGo:
View Full Code Here

    //    elmt.value = SnmpVarBind.endOfMibView;
     /* end of NPCTE fix for bugid 4381195 */
                continue;
            }

            final SnmpValue val= vb.value;
            if ((val == null)|| (val == SnmpVarBind.endOfMibView)){
    /* NPCTE fix for bugid 4381195 esc 0. <J.C.> < 17-Oct-2000> */
    if ((elmt != null) &&
        (elmt.value != SnmpVarBind.endOfMibView))
        result[index]= elmt;
View Full Code Here

  if (element.value == SnmpVarBind.endOfMibView) return result;

  if (result.value == SnmpVarBind.endOfMibView) return element;

  final SnmpValue val = result.value;

  int comp = element.oid.compareTo(result.oid);
  if(isDebugOn()) {
      trace("findVarBind","Comparing OID element : " + element.oid +
      " with result : " + result.oid);
View Full Code Here

        }
   
        // In v1 make sure there is no endOfMibView ...
        //
        for(int i=0; i < max; i++) {
            SnmpValue val= result[i].value;
            if (val == SnmpVarBind.endOfMibView)
                return newErrorResponsePdu(req,
           SnmpDefinitions.snmpRspNoSuchName, i+1);
        }
   
View Full Code Here

TOP

Related Classes of com.sun.jmx.snmp.SnmpValue

Copyright © 2018 www.massapicom. 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.