Java 类com.sun.jmx.snmp.agent.SnmpMibRequest 实例源码

项目:OpenJSharp    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}
项目:jdk8u-jdk    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}
项目:jdk8u_jdk    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}
项目:lookaside_java-1.8.0-openjdk    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}
项目:infobip-open-jdk-8    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}
项目:jdk8u-dev-jdk    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}
项目:jdk7-jdk    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}
项目:openjdk-source-code-learn    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}
项目:OLD-OpenJDK8    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}
项目:openjdk-jdk7u-jdk    文件:SnmpSubRequestHandler.java   
SnmpMibRequest createMibRequest(Vector<SnmpVarBind> vblist,
                                int protocolVersion,
                                Object userData) {

    // This is an optimization:
    //    The SnmpMibRequest created in the check() phase is
    //    reused in the set() phase.
    //
    if (type == pduSetRequestPdu && mibRequest != null)
        return mibRequest;

    //This is a request comming from an SnmpV3AdaptorServer.
    //Full power.
    SnmpMibRequest result = null;
    if(incRequest != null) {
        result = SnmpMibAgent.newMibRequest(engine,
                                            reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData,
                                            incRequest.getPrincipal(),
                                            incRequest.getSecurityLevel(),
                                            incRequest.getSecurityModel(),
                                            incRequest.getContextName(),
                                            incRequest.getAccessContext());
    } else {
        result = SnmpMibAgent.newMibRequest(reqPdu,
                                            vblist,
                                            protocolVersion,
                                            userData);
    }
    // If we're doing the check() phase, we store the SnmpMibRequest
    // so that we can reuse it in the set() phase.
    //
    if (type == pduWalkRequest)
        mibRequest = result;

    return result;
}