Java Code Examples for com.sun.jmx.snmp.SnmpDefinitions#pduGetRequestPdu()
The following examples show how to use
com.sun.jmx.snmp.SnmpDefinitions#pduGetRequestPdu() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SnmpRequestHandler.java From JDKSourceCode1.8 with MIT License | 7 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 2
Source File: SnmpRequestHandler.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 3
Source File: SnmpRequestHandler.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 4
Source File: SnmpRequestHandler.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 5
Source File: SnmpRequestHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 6
Source File: SnmpRequestHandler.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 7
Source File: SnmpRequestHandler.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 8
Source File: SnmpRequestHandler.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 9
Source File: SnmpRequestHandler.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 10
Source File: SnmpRequestHandler.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 11
Source File: SnmpRequestHandler.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * Check the type of the pdu: only the get/set/bulk request * are accepted. */ private boolean checkPduType(SnmpPduPacket pdu) { boolean result; switch(pdu.type) { case SnmpDefinitions.pduGetRequestPdu: case SnmpDefinitions.pduGetNextRequestPdu: case SnmpDefinitions.pduSetRequestPdu: case SnmpDefinitions.pduGetBulkRequestPdu: result = true ; break; default: if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, dbgTag, "checkPduType", "cannot respond to this kind of PDU"); } result = false ; break; } return result ; }
Example 12
Source File: SnmpMib.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * Processes a <CODE>get</CODE> operation. * **/ // Implements the method defined in SnmpMibAgent. See SnmpMibAgent // for java-doc // @Override public void get(SnmpMibRequest req) throws SnmpStatusException { // Builds the request tree: creation is not allowed, operation // is not atomic. final int reqType = SnmpDefinitions.pduGetRequestPdu; SnmpRequestTree handlers = getHandlers(req,false,false,reqType); SnmpRequestTree.Handler h = null; SnmpMibNode meta = null; if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(), "get", "Processing handlers for GET... "); } // For each sub-request stored in the request-tree, invoke the // get() method. for (Enumeration<SnmpRequestTree.Handler> eh=handlers.getHandlers();eh.hasMoreElements();) { h = eh.nextElement(); // Gets the Meta node. It can be either a Group Meta or a // Table Meta. // meta = handlers.getMetaNode(h); // Gets the depth of the Meta node in the OID tree final int depth = handlers.getOidDepth(h); for (Enumeration<SnmpMibSubRequest> rqs=handlers.getSubRequests(h); rqs.hasMoreElements();) { // Invoke the get() operation. meta.get(rqs.nextElement(),depth); } } }
Example 13
Source File: SnmpMib.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** * Processes a <CODE>get</CODE> operation. * **/ // Implements the method defined in SnmpMibAgent. See SnmpMibAgent // for java-doc // @Override public void get(SnmpMibRequest req) throws SnmpStatusException { // Builds the request tree: creation is not allowed, operation // is not atomic. final int reqType = SnmpDefinitions.pduGetRequestPdu; SnmpRequestTree handlers = getHandlers(req,false,false,reqType); SnmpRequestTree.Handler h = null; SnmpMibNode meta = null; if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(), "get", "Processing handlers for GET... "); } // For each sub-request stored in the request-tree, invoke the // get() method. for (Enumeration<SnmpRequestTree.Handler> eh=handlers.getHandlers();eh.hasMoreElements();) { h = eh.nextElement(); // Gets the Meta node. It can be either a Group Meta or a // Table Meta. // meta = handlers.getMetaNode(h); // Gets the depth of the Meta node in the OID tree final int depth = handlers.getOidDepth(h); for (Enumeration<SnmpMibSubRequest> rqs=handlers.getSubRequests(h); rqs.hasMoreElements();) { // Invoke the get() operation. meta.get(rqs.nextElement(),depth); } } }
Example 14
Source File: SnmpMib.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
/** * Processes a <CODE>get</CODE> operation. * **/ // Implements the method defined in SnmpMibAgent. See SnmpMibAgent // for java-doc // @Override public void get(SnmpMibRequest req) throws SnmpStatusException { // Builds the request tree: creation is not allowed, operation // is not atomic. final int reqType = SnmpDefinitions.pduGetRequestPdu; SnmpRequestTree handlers = getHandlers(req,false,false,reqType); SnmpRequestTree.Handler h = null; SnmpMibNode meta = null; if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(), "get", "Processing handlers for GET... "); } // For each sub-request stored in the request-tree, invoke the // get() method. for (Enumeration<SnmpRequestTree.Handler> eh=handlers.getHandlers();eh.hasMoreElements();) { h = eh.nextElement(); // Gets the Meta node. It can be either a Group Meta or a // Table Meta. // meta = handlers.getMetaNode(h); // Gets the depth of the Meta node in the OID tree final int depth = handlers.getOidDepth(h); for (Enumeration<SnmpMibSubRequest> rqs=handlers.getSubRequests(h); rqs.hasMoreElements();) { // Invoke the get() operation. meta.get(rqs.nextElement(),depth); } } }
Example 15
Source File: SnmpMib.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
/** * Processes a <CODE>get</CODE> operation. * **/ // Implements the method defined in SnmpMibAgent. See SnmpMibAgent // for java-doc // @Override public void get(SnmpMibRequest req) throws SnmpStatusException { // Builds the request tree: creation is not allowed, operation // is not atomic. final int reqType = SnmpDefinitions.pduGetRequestPdu; SnmpRequestTree handlers = getHandlers(req,false,false,reqType); SnmpRequestTree.Handler h = null; SnmpMibNode meta = null; if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(), "get", "Processing handlers for GET... "); } // For each sub-request stored in the request-tree, invoke the // get() method. for (Enumeration<SnmpRequestTree.Handler> eh=handlers.getHandlers();eh.hasMoreElements();) { h = eh.nextElement(); // Gets the Meta node. It can be either a Group Meta or a // Table Meta. // meta = handlers.getMetaNode(h); // Gets the depth of the Meta node in the OID tree final int depth = handlers.getOidDepth(h); for (Enumeration<SnmpMibSubRequest> rqs=handlers.getSubRequests(h); rqs.hasMoreElements();) { // Invoke the get() operation. meta.get(rqs.nextElement(),depth); } } }
Example 16
Source File: SnmpMib.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * Processes a <CODE>get</CODE> operation. * **/ // Implements the method defined in SnmpMibAgent. See SnmpMibAgent // for java-doc // @Override public void get(SnmpMibRequest req) throws SnmpStatusException { // Builds the request tree: creation is not allowed, operation // is not atomic. final int reqType = SnmpDefinitions.pduGetRequestPdu; SnmpRequestTree handlers = getHandlers(req,false,false,reqType); SnmpRequestTree.Handler h = null; SnmpMibNode meta = null; if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(), "get", "Processing handlers for GET... "); } // For each sub-request stored in the request-tree, invoke the // get() method. for (Enumeration<SnmpRequestTree.Handler> eh=handlers.getHandlers();eh.hasMoreElements();) { h = eh.nextElement(); // Gets the Meta node. It can be either a Group Meta or a // Table Meta. // meta = handlers.getMetaNode(h); // Gets the depth of the Meta node in the OID tree final int depth = handlers.getOidDepth(h); for (Enumeration<SnmpMibSubRequest> rqs=handlers.getSubRequests(h); rqs.hasMoreElements();) { // Invoke the get() operation. meta.get(rqs.nextElement(),depth); } } }
Example 17
Source File: SnmpMib.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
/** * Processes a <CODE>get</CODE> operation. * **/ // Implements the method defined in SnmpMibAgent. See SnmpMibAgent // for java-doc // @Override public void get(SnmpMibRequest req) throws SnmpStatusException { // Builds the request tree: creation is not allowed, operation // is not atomic. final int reqType = SnmpDefinitions.pduGetRequestPdu; SnmpRequestTree handlers = getHandlers(req,false,false,reqType); SnmpRequestTree.Handler h = null; SnmpMibNode meta = null; if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(), "get", "Processing handlers for GET... "); } // For each sub-request stored in the request-tree, invoke the // get() method. for (Enumeration<SnmpRequestTree.Handler> eh=handlers.getHandlers();eh.hasMoreElements();) { h = eh.nextElement(); // Gets the Meta node. It can be either a Group Meta or a // Table Meta. // meta = handlers.getMetaNode(h); // Gets the depth of the Meta node in the OID tree final int depth = handlers.getOidDepth(h); for (Enumeration<SnmpMibSubRequest> rqs=handlers.getSubRequests(h); rqs.hasMoreElements();) { // Invoke the get() operation. meta.get(rqs.nextElement(),depth); } } }
Example 18
Source File: SnmpMib.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * Processes a <CODE>get</CODE> operation. * **/ // Implements the method defined in SnmpMibAgent. See SnmpMibAgent // for java-doc // @Override public void get(SnmpMibRequest req) throws SnmpStatusException { // Builds the request tree: creation is not allowed, operation // is not atomic. final int reqType = SnmpDefinitions.pduGetRequestPdu; SnmpRequestTree handlers = getHandlers(req,false,false,reqType); SnmpRequestTree.Handler h = null; SnmpMibNode meta = null; if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(), "get", "Processing handlers for GET... "); } // For each sub-request stored in the request-tree, invoke the // get() method. for (Enumeration<SnmpRequestTree.Handler> eh=handlers.getHandlers();eh.hasMoreElements();) { h = eh.nextElement(); // Gets the Meta node. It can be either a Group Meta or a // Table Meta. // meta = handlers.getMetaNode(h); // Gets the depth of the Meta node in the OID tree final int depth = handlers.getOidDepth(h); for (Enumeration<SnmpMibSubRequest> rqs=handlers.getSubRequests(h); rqs.hasMoreElements();) { // Invoke the get() operation. meta.get(rqs.nextElement(),depth); } } }
Example 19
Source File: SnmpMib.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * Processes a <CODE>get</CODE> operation. * **/ // Implements the method defined in SnmpMibAgent. See SnmpMibAgent // for java-doc // @Override public void get(SnmpMibRequest req) throws SnmpStatusException { // Builds the request tree: creation is not allowed, operation // is not atomic. final int reqType = SnmpDefinitions.pduGetRequestPdu; SnmpRequestTree handlers = getHandlers(req,false,false,reqType); SnmpRequestTree.Handler h = null; SnmpMibNode meta = null; if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(), "get", "Processing handlers for GET... "); } // For each sub-request stored in the request-tree, invoke the // get() method. for (Enumeration<SnmpRequestTree.Handler> eh=handlers.getHandlers();eh.hasMoreElements();) { h = eh.nextElement(); // Gets the Meta node. It can be either a Group Meta or a // Table Meta. // meta = handlers.getMetaNode(h); // Gets the depth of the Meta node in the OID tree final int depth = handlers.getOidDepth(h); for (Enumeration<SnmpMibSubRequest> rqs=handlers.getSubRequests(h); rqs.hasMoreElements();) { // Invoke the get() operation. meta.get(rqs.nextElement(),depth); } } }
Example 20
Source File: SnmpMib.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * Processes a <CODE>get</CODE> operation. * **/ // Implements the method defined in SnmpMibAgent. See SnmpMibAgent // for java-doc // @Override public void get(SnmpMibRequest req) throws SnmpStatusException { // Builds the request tree: creation is not allowed, operation // is not atomic. final int reqType = SnmpDefinitions.pduGetRequestPdu; SnmpRequestTree handlers = getHandlers(req,false,false,reqType); SnmpRequestTree.Handler h = null; SnmpMibNode meta = null; if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINEST)) { SNMP_ADAPTOR_LOGGER.logp(Level.FINEST, SnmpMib.class.getName(), "get", "Processing handlers for GET... "); } // For each sub-request stored in the request-tree, invoke the // get() method. for (Enumeration<SnmpRequestTree.Handler> eh=handlers.getHandlers();eh.hasMoreElements();) { h = eh.nextElement(); // Gets the Meta node. It can be either a Group Meta or a // Table Meta. // meta = handlers.getMetaNode(h); // Gets the depth of the Meta node in the OID tree final int depth = handlers.getOidDepth(h); for (Enumeration<SnmpMibSubRequest> rqs=handlers.getSubRequests(h); rqs.hasMoreElements();) { // Invoke the get() operation. meta.get(rqs.nextElement(),depth); } } }