本文整理了Java中org.snmp4j.PDU.setRequestID()
方法的一些代码示例,展示了PDU.setRequestID()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PDU.setRequestID()
方法的具体详情如下:
包路径:org.snmp4j.PDU
类名称:PDU
方法名:setRequestID
[英]Sets the request ID for this PDU. When the request ID is not set or set to zero, the message processing model will generate a unique request ID for the PDU
when sent.
[中]设置此PDU的请求ID。当请求ID未设置或设置为零时,消息处理模型将在发送时为PDU
生成唯一的请求ID。
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
/**
* Removes all variable bindings from the PDU and sets the request ID to zero.
* This can be used to reuse a PDU for another request.
*/
public void clear() {
variableBindings.clear();
setRequestID(new Integer32(0));
}
代码示例来源:origin: org.snmp4j/snmp4j
/**
* Removes all variable bindings from the PDU and sets the request ID to zero.
* This can be used to reuse a PDU for another request.
*/
public void clear() {
variableBindings.clear();
setRequestID(new Integer32(0));
}
代码示例来源:origin: org.kaazing/snmp4j
/**
* Removes all variable bindings from the PDU and sets the request ID to zero.
* This can be used to reuse a PDU for another request.
*/
public void clear() {
variableBindings.clear();
setRequestID(new Integer32(0));
}
代码示例来源:origin: org.kaazing/snmp4j-agent
private PDU createResponse() {
PDU resp = (PDU) requestEvent.getPDU().clone();
resp.clear();
resp.setType(PDU.RESPONSE);
resp.setRequestID(requestEvent.getPDU().getRequestID());
resp.setErrorIndex(0);
resp.setErrorStatus(PDU.noError);
return resp;
}
代码示例来源:origin: org.snmp4j/snmp4j-agent
private PDU createResponse() {
PDU resp = (PDU) source.getPDU().clone();
resp.clear();
resp.setType(PDU.RESPONSE);
resp.setRequestID(source.getPDU().getRequestID());
resp.setErrorIndex(0);
resp.setErrorStatus(PDU.noError);
return resp;
}
代码示例来源:origin: org.jboss.jbossas/jboss-snmp
response.setRequestID(event.getPDU().getRequestID());
try {
sendResponse(event, response);
代码示例来源:origin: org.mobicents.tools.snmp.adaptor/core
response.setRequestID(event.getPDU().getRequestID());
try {
sendResponse(event, response);
代码示例来源:origin: org.openhab.binding/org.openhab.binding.snmp
pdu.add(varBind);
pdu.setType(PDU.SET);
pdu.setRequestID(new Integer32(1));
代码示例来源:origin: org.opendaylight.cardinal/cardinal-impl
pdu.add(varBind);
pdu.setType(PDU.SET);
pdu.setRequestID(new Integer32(1));
代码示例来源:origin: org.opendaylight.cardinal/cardinal-impl
pdu.add(varBind);
pdu.setType(PDU.SET);
pdu.setRequestID(new Integer32(1));
代码示例来源:origin: org.openscada.atlantis/org.openscada.da.server.snmp
request.setRequestID ( new Integer32 ( 0 ) );
ResponseEvent responseEvent;
try
代码示例来源:origin: org.kaazing/snmp4j
pdu.setRequestID(new Integer32(pduHandle.getTransactionID()));
代码示例来源:origin: org.snmp4j/snmp4j-agent
translatedResponse.setRequestID(
request.getCommandEvent().getPDU().getRequestID());
if ((translatedResponse instanceof ScopedPDU) &&
代码示例来源:origin: org.kaazing/snmp4j-agent
translatedResponse.setRequestID(
request.getCommandEvent().getPDU().getRequestID());
if ((translatedResponse instanceof ScopedPDU) &&
代码示例来源:origin: org.kaazing/snmp4j
PDU tooBigPDU = new ScopedPDU((ScopedPDU)pdu);
tooBigPDU.clear();
tooBigPDU.setRequestID(pdu.getRequestID());
tooBigPDU.setErrorStatus(SnmpConstants.SNMP_ERROR_TOO_BIG);
tooBigPDU.setErrorIndex(0);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
PDU tooBigPDU = new ScopedPDU((ScopedPDU)pdu);
tooBigPDU.clear();
tooBigPDU.setRequestID(pdu.getRequestID());
tooBigPDU.setErrorStatus(SnmpConstants.SNMP_ERROR_TOO_BIG);
tooBigPDU.setErrorIndex(0);
代码示例来源:origin: org.snmp4j/snmp4j
PDU tooBigPDU = new ScopedPDU((ScopedPDU)pdu);
tooBigPDU.clear();
tooBigPDU.setRequestID(pdu.getRequestID());
tooBigPDU.setErrorStatus(SnmpConstants.SNMP_ERROR_TOO_BIG);
tooBigPDU.setErrorIndex(0);
代码示例来源:origin: org.kaazing/snmp4j
next.setVariable(new Null());
request.set(0, next);
request.setRequestID(new Integer32(0));
send();
return;
代码示例来源:origin: org.snmp4j/snmp4j-agent
response.setRequestID(requestEvent.getPDU().getRequestID());
response.setErrorStatus(PDU.tooBig);
代码示例来源:origin: org.kaazing/snmp4j-agent
response.setRequestID(requestEvent.getPDU().getRequestID());
response.setErrorStatus(PDU.tooBig);
内容来源于网络,如有侵权,请联系作者删除!