Examples of SnmpOid


Examples of com.sun.jmx.snmp.SnmpOid

     * @exception SnmpStatusException if the entry cannot be registered with
     *            the given index.
     **/
    protected void addEntry(SnmpIndex index, ObjectName name, Object entry)
  throws SnmpStatusException {
  SnmpOid oid = buildOidFromIndex(index);
  meta.addEntry(oid,name,entry);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

     *
     * @exception SnmpStatusException if the entry cannot be unregistered.
     **/
    protected void removeEntry(SnmpIndex index, Object entry)
  throws SnmpStatusException {
  SnmpOid oid = buildOidFromIndex(index);
  meta.removeEntry(oid,entry);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

            return false;
   
        // The two vectors have the same length.
        // Compare each single element ...
        //
        SnmpOid oid1;
        SnmpOid oid2;
        Vector components= index.getComponents();
        for(int i=0; i <size; i++) {
            oid1= (SnmpOid) oids.elementAt(i);
            oid2= (SnmpOid) components.elementAt(i);
            if (oid1.equals(oid2) == false)
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

     */
    public int compareTo(SnmpIndex index) {
   
        int length= index.getNbComponents();
        Vector components= index.getComponents();
        SnmpOid oid1;
        SnmpOid oid2;
        int comp;
        for(int i=0; i < size; i++) {
            if ( i > length) {
                // There is no more element in the index
                //
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

     * @return A string representation of the index.
     */
    public String toString() {
        StringBuffer msg= new StringBuffer();
        for(Enumeration e= oids.elements(); e.hasMoreElements(); ) {
            SnmpOid val= (SnmpOid) e.nextElement();
            msg.append( "//" + val.toString());
        }
        return msg.toString();
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

     * @param oid The OID in string format "x.x.x.x".
     *
     * @exception IllegalArgumentException The string format is incorrect
     */
    public void setEnterpriseOid(String oid) throws IllegalArgumentException {
        enterpriseOid = new SnmpOid(oid) ;
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

      l.remove(from,count);
    }

    void checkCurrentOid() throws SnmpStatusException {
  if(model != null) {
      SnmpOid oid = new SnmpOid(l.toArray());
      if (isDebugOn())
    debug("check",
          " Checking access for : " + oid);
      model.checkAccess(version,
            principal,
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

        trace("findVarBind"," oid overlapping. Oid : " +
        element.oid + "value :" + element.value);
        trace("findVarBind","Already present varBind : " +
        result);
    }
    SnmpOid oid = result.oid;
    SnmpMibAgent deeperAgent = server.getAgentMib(oid);

    if(isDebugOn())
        trace("findVarBind","Deeper agent : " + deeperAgent);
    if(deeperAgent == agent) {
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

            l.remove(from,count);
    }

    void checkCurrentOid() throws SnmpStatusException {
        if(model != null) {
            SnmpOid oid = new SnmpOid(l.toArray());
            if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) {
                SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(),
                        "checkCurrentOid", "Checking access for : " + oid);
            }
            model.checkAccess(version,
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpOid

        }
        AcmChecker checker = new AcmChecker(req);
        int index=0;
        SnmpVarBind var = null;
        final int ver= req.getVersion();
        SnmpOid original = null;
        // For each varbind, finds the handling node.
        // This function has the side effect of transforming a GET-NEXT
        // request into a valid GET request, replacing the OIDs in the
        // original GET-NEXT request with the OID of the first leaf that
        // follows.
        for (Enumeration<SnmpVarBind> e= req.getElements(); e.hasMoreElements(); index++) {

            var = e.nextElement();
            SnmpOid result;
            try {
                // Find the node handling the OID that follows the varbind
                // OID. `result' contains this next leaf OID.
                //ACM loop.
                if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) {
                    SNMP_ADAPTOR_LOGGER.logp(Level.FINEST,
                            SnmpMib.class.getName(),
                            "getGetNextHandlers", " Next OID of : " + var.oid);
                }
                result = new SnmpOid(root.findNextHandlingNode
                                     (var,var.oid.longValue(false),0,
                                      0,handlers, checker));

                if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) {
                    SNMP_ADAPTOR_LOGGER.logp(Level.FINEST,
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.