|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
As of jSNMP v3.0, SnmpService supports all SNMPv1 requests (get, get-next, and set) along with SNMPv2/3 requests (get-bulk, report, and inform). It also supports the sending of traps. All requests (except traps) are asynchronous "orders". Those clients requesting orders pass in their SnmpCustomer interface to which all order results are delivered. The values in each successful order are mapped from their ASN.1 types to their respective Java types as shown in the following list:
ASN.1
|
Java
|
NULL
|
null |
INTEGER and Integer32
|
java.math.BigInteger |
OCTET STRING
|
byte[ ] |
Opaque
|
byte[ ] |
IpAddress
|
java.lang.String |
OBJECT IDENTIFIER
|
java.lang.String |
Counter and Counter32
|
java.lang.Long |
Gauge, Gauge32, and Unsigned32
|
java.lang.Long |
TimeTicks
|
java.lang.Long |
Counter64
|
java.math.BigInteger |
UInteger32 (historic)
|
java.lang.Long |
Java ints are signed 32-bit values, but Counter, Counter32, Gauge, Gauge32, Unsigned32, UInteger32, and TimeTicks are unsigned and may use the full 32-bits. To avoid signed/unsigned conversions, a java.lang.Long is used. However, if values greater that can be represented by a 32-bit unsigned number are supplied to the service, an exception will be thrown. Java does not have an unsigned 64 bit value, consequently a java.math.BigInteger is used. However, if values less than 0 or values greater than can be represented by a 64-bit unsigned number are supplied to the service, an exception will be thrown.
SnmpService also supports trap and inform registration. Clients wishing to receive trap and inform events, register with the SnmpService by passing in an interface which will be called when a trap or inform is received. Trap profiles must be associated with each trap listener, thus providing a filtering mechanism for the traps and informs received by the service. Note that the SNMP agent must be configured separately to send traps to the host and port where the service resides.
SnmpAuthoritativeSession
,
SnmpOrderInfo
,
SnmpCustomer
,
SnmpTrapEvent
,
SnmpTrapListener
,
SnmpTrapProfile
Method Summary | |
boolean |
addTrapListenerProfile(SnmpTrapListener cSnmpTrapListener,
SnmpTrapProfile cSnmpTrapProfile)
Adds a profile to a listener registered with the SnmpService. |
SnmpSecurityManager |
getSecurityManager()
Get a handle to the Security Manager. |
SnmpTrapProfile[] |
listTrapListenerProfiles(SnmpTrapListener cSnmpTrapListener)
Lists all profiles associated with a trap listener |
int |
placeGetBulkOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession,
SnmpOrderInfo cSnmpOrderInfo,
java.lang.String[] szNonRepeaterOIDs,
java.lang.String[] szRepeaterOIDs,
int iMaxRepetitions,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Places an order for an asynchronous get-bulk request. |
int |
placeGetNextOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession,
SnmpOrderInfo cSnmpOrderInfo,
boolean bAtomic,
java.lang.String[] szOIDs,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Places an order for an asynchronous get-next request. |
int |
placeGetOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession,
SnmpOrderInfo cSnmpOrderInfo,
boolean bAtomic,
java.lang.String[] szOIDs,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Places an order for an asynchronous get request. |
int |
placeInformOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession,
java.lang.Long lAgentTimeStamp,
SnmpOrderInfo cSnmpOrderInfo,
java.lang.String szEnterpriseOID,
int iTrapNum,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Places an order for an asynchronous inform request. |
int |
placeInformOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession,
SnmpOrderInfo cSnmpOrderInfo,
java.lang.String szEnterpriseOID,
int iTrapNum,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Places an order for an asynchronous inform request. |
void |
placeInspectionOrder(java.net.InetAddress cHostInetAddress,
int iPort,
int iRetries,
int iTimeout,
long lCacheThreshold,
byte bRequestType,
java.lang.String szReadCommunity,
java.lang.String[] szOIDs,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Deprecated. as of jSNMP v3.0 by placeGetOrder() and placeGetNextOrder() |
void |
placeInspectionOrder(java.net.InetAddress cHostInetAddress,
int iPort,
SnmpOrderInfo cSnmpOrderInfo,
byte bRequestType,
java.lang.String szReadCommunity,
java.lang.String[] szOIDs,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Deprecated. as of jSNMP v3.0 by placeGetOrder() and placeGetNextOrder() |
void |
placeInspectionOrder(java.lang.String szHost,
int iPort,
int iRetries,
int iTimeout,
long lCacheThreshold,
byte bRequestType,
java.lang.String szReadCommunity,
java.lang.String[] szOIDs,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Deprecated. as of jSNMP v3.0 by placeGetOrder() and placeGetNextOrder() |
void |
placeInspectionOrder(java.lang.String szHost,
int iPort,
SnmpOrderInfo cSnmpOrderInfo,
byte bRequestType,
java.lang.String szReadCommunity,
java.lang.String[] szOIDs,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Deprecated. as of jSNMP v3.0 by placeGetOrder() and placeGetNextOrder() |
void |
placeModificationOrder(java.net.InetAddress cHostInetAddress,
int iPort,
int iRetries,
int iTimeout,
java.lang.String szWriteCommunity,
boolean bAtomic,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Deprecated. as of jSNMP v3.0 by placeSetOrder() |
void |
placeModificationOrder(java.net.InetAddress cHostInetAddress,
int iPort,
SnmpOrderInfo cSnmpOrderInfo,
java.lang.String szWriteCommunity,
boolean bAtomic,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Deprecated. as of jSNMP v3.0 by placeSetOrder() |
void |
placeModificationOrder(java.lang.String szHost,
int iPort,
int iRetries,
int iTimeout,
java.lang.String szWriteCommunity,
boolean bAtomic,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Deprecated. as of jSNMP v3.0 by placeSetOrder() |
void |
placeModificationOrder(java.lang.String szHost,
int iPort,
SnmpOrderInfo cSnmpOrderInfo,
java.lang.String szWriteCommunity,
boolean bAtomic,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Deprecated. as of jSNMP v3.0 by placeSetOrder() |
int |
placeReportOrder(SnmpAuthoritativeSession cSnmpAuthoritativeSession,
SnmpOrderInfo cSnmpOrderInfo,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Places an order for an asynchronous report request. |
int |
placeSetOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession,
SnmpOrderInfo cSnmpOrderInfo,
boolean bAtomic,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects,
SnmpCustomer cSnmpCustomer,
int iOrderNumStart)
Places an order for an asynchronous set request. |
boolean |
placeTrapOrder(SnmpAuthoritativeSession cSnmpLocalAuthoritativeSession,
java.lang.Long lAgentTimeStamp,
java.lang.String szEnterpriseOID,
int iTrapNum,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects)
This method is the same as placeTrapOrder except it allows the caller to specify the timestamp. |
boolean |
placeTrapOrder(SnmpAuthoritativeSession cSnmpLocalAuthoritativeSession,
java.lang.String szEnterpriseOID,
int iTrapNum,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects)
Places a synchronous trap request. |
boolean |
placeV1TrapOrder(SnmpAuthoritativeSession cSnmpLocalAuthoritativeSession,
java.net.InetAddress cAgentInetAddress,
java.lang.Long lAgentTimeStamp,
java.lang.String szEnterpriseOID,
int iTrapNum,
java.lang.String[] szOIDs,
byte[] cbTypes,
java.lang.Object[] cValueObjects)
This method is the same as placeTrapOrder except it is for SNMPV1 traps only and allows the caller to specify the agent address and timestamp. |
void |
removeTrapListener(SnmpTrapListener cSnmpTrapListener)
Removes all profiles associated with a listener and unregisters the listener from the service. |
boolean |
removeTrapListenerProfile(SnmpTrapListener cSnmpTrapListener,
SnmpTrapProfile cSnmpTrapProfile)
Removes a profile from a registered listener. |
void |
stop()
Stop the SnmpService. |
Method Detail |
public void placeInspectionOrder(java.net.InetAddress cHostInetAddress, int iPort, int iRetries, int iTimeout, long lCacheThreshold, byte bRequestType, java.lang.String szReadCommunity, java.lang.String[] szOIDs, SnmpCustomer cSnmpCustomer, int iOrderNumStart)
cHostInetAddress
- host of the agentiPort
- UDP port of the agentiRetries
- maximum number of packet retriesiTimeout
- maximum time to wait in seconds for response packetlCacheThreshold
- maximum age of value in milliseconds if a
value exists in the cache. A cacheThreshold of 0
means a fresh value will be retrievedbRequestType
- SnmpConstants.SNMP_GET or SnmpConstants.SNMP_GET_NEXTszReadCommunity
- community nameszOIDs
- array of OIDs in dotted notationcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)public void placeInspectionOrder(java.lang.String szHost, int iPort, int iRetries, int iTimeout, long lCacheThreshold, byte bRequestType, java.lang.String szReadCommunity, java.lang.String[] szOIDs, SnmpCustomer cSnmpCustomer, int iOrderNumStart)
szHost
- hostname of the agentiPort
- UDP port of the agentiRetries
- maximum number of packet retriesiTimeout
- maximum time to wait in seconds for response packetlCacheThreshold
- maximum age of value in milliseconds if a
value exists in the cache. A cacheThreshold of 0
means a fresh value will be retrievedbRequestType
- SnmpConstants.SNMP_GET or SnmpConstants.SNMP_GET_NEXTszReadCommunity
- community nameszOIDs
- array of OIDs in dotted notationcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)public void placeInspectionOrder(java.net.InetAddress cHostInetAddress, int iPort, SnmpOrderInfo cSnmpOrderInfo, byte bRequestType, java.lang.String szReadCommunity, java.lang.String[] szOIDs, SnmpCustomer cSnmpCustomer, int iOrderNumStart)
cHostInetAddress
- host of the agentiPort
- UDP port of the agentcSnmpOrderInfo
- contains retries, wait-time, and cache agebRequestType
- SnmpConstants.SNMP_GET or SnmpConstants.SNMP_GET_NEXTszReadCommunity
- community nameszOIDs
- array of OIDs in dotted notationcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)public void placeInspectionOrder(java.lang.String szHost, int iPort, SnmpOrderInfo cSnmpOrderInfo, byte bRequestType, java.lang.String szReadCommunity, java.lang.String[] szOIDs, SnmpCustomer cSnmpCustomer, int iOrderNumStart)
szHost
- hostname of the agentiPort
- UDP port of the agentcSnmpOrderInfo
- contains retries, wait-time, and cache agebRequestType
- SnmpConstants.SNMP_GET or SnmpConstants.SNMP_GET_NEXTszReadCommunity
- community nameszOIDs
- array of OIDs in dotted notationcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)public int placeGetOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession, SnmpOrderInfo cSnmpOrderInfo, boolean bAtomic, java.lang.String[] szOIDs, SnmpCustomer cSnmpCustomer, int iOrderNumStart) throws java.lang.IllegalArgumentException
cSnmpRemoteAuthoritativeSession
- contains host, port, and security object for the agentcSnmpOrderInfo
- contains retries, wait-time, and cache agebAtomic
- true if all gets are to be sent in the same PDU (implies no caching)szOIDs
- array of OIDs in dotted notationcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)java.lang.IllegalArgumentException
- if cSnmpRemoteAuthoritativeSession is not "remote" authoritative sessionpublic int placeGetNextOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession, SnmpOrderInfo cSnmpOrderInfo, boolean bAtomic, java.lang.String[] szOIDs, SnmpCustomer cSnmpCustomer, int iOrderNumStart) throws java.lang.IllegalArgumentException
cSnmpRemoteAuthoritativeSession
- contains host, port, and security object for the agentcSnmpOrderInfo
- contains retries, wait-time, and cache agebAtomic
- true if all get-nexts are to be sent in the same PDU (implies no caching)szOIDs
- array of OIDs in dotted notationcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)java.lang.IllegalArgumentException
- if cSnmpRemoteAuthoritativeSession is not "remote" authoritative sessionpublic int placeGetBulkOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession, SnmpOrderInfo cSnmpOrderInfo, java.lang.String[] szNonRepeaterOIDs, java.lang.String[] szRepeaterOIDs, int iMaxRepetitions, SnmpCustomer cSnmpCustomer, int iOrderNumStart) throws java.lang.IllegalArgumentException
cSnmpRemoteAuthoritativeSession
- contains host, port, and security object for the agentcSnmpOrderInfo
- contains retries and wait-time (cache age is ignored)szNonRepeaterOIDs
- array of non-repeater OIDs in dotted notationszRepeaterOIDs
- array of repeater OIDs in dotted notationiMaxRepetitions
- maximum number of repetitions on repeaterscSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion (e.g if iOrderNumStart=7 and the inspection
consists of 3 non-repeater OIDs and 3 repeater OIDs and 2
maximum repetitions, the order numbers would be 7, 8, and 9
for the 3 non-repeaters and possibly 10, 11, 12, 13, 14, and 15
for the 3 repeaters.)java.lang.IllegalArgumentException
- if cSnmpRemoteAuthoritativeSession is not "remote" authoritative sessionpublic void placeModificationOrder(java.net.InetAddress cHostInetAddress, int iPort, int iRetries, int iTimeout, java.lang.String szWriteCommunity, boolean bAtomic, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects, SnmpCustomer cSnmpCustomer, int iOrderNumStart)
cHostInetAddress
- host of the agentiPort
- UDP port of the agentiRetries
- maximum number of packet retriesiTimeout
- maximum time to wait in seconds for response packetszWriteCommunity
- community namebAtomic
- true if all sets are to be sent in the same PDUszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion. (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)public void placeModificationOrder(java.lang.String szHost, int iPort, int iRetries, int iTimeout, java.lang.String szWriteCommunity, boolean bAtomic, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects, SnmpCustomer cSnmpCustomer, int iOrderNumStart)
szHost
- hostname of the agentiPort
- UDP port of the agentiRetries
- maximum number of packet retriesiTimeout
- maximum time to wait in seconds for response packetszWriteCommunity
- community namebAtomic
- true if all sets are to be sent in the same PDUszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion. (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)public void placeModificationOrder(java.net.InetAddress cHostInetAddress, int iPort, SnmpOrderInfo cSnmpOrderInfo, java.lang.String szWriteCommunity, boolean bAtomic, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects, SnmpCustomer cSnmpCustomer, int iOrderNumStart)
cHostInetAddress
- host of the agentiPort
- UDP port of the agentcSnmpOrderInfo
- contains retries, and wait-time (cache age is ignored)szWriteCommunity
- community namebAtomic
- true if all sets are to be sent in the same PDUszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion. (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)public void placeModificationOrder(java.lang.String szHost, int iPort, SnmpOrderInfo cSnmpOrderInfo, java.lang.String szWriteCommunity, boolean bAtomic, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects, SnmpCustomer cSnmpCustomer, int iOrderNumStart)
szHost
- hostname of the agentiPort
- UDP port of the agentcSnmpOrderInfo
- contains retries and wait-time (cache age is ignored)szWriteCommunity
- community namebAtomic
- true if all sets are to be sent in the same PDUszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion. (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)public int placeSetOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession, SnmpOrderInfo cSnmpOrderInfo, boolean bAtomic, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects, SnmpCustomer cSnmpCustomer, int iOrderNumStart) throws java.lang.IllegalArgumentException
cSnmpRemoteAuthoritativeSession
- contains host, port, and security object for the agentcSnmpOrderInfo
- contains retries and wait-time (cache age is ignored)bAtomic
- true if all sets are to be sent in the same PDUszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- index of first order number to be passed to the SnmpCustomer
on completion. (e.g if iOrderNumStart=7 and the inspection
consists of 3 OIDs, the order numbers would be 7,8,9.)java.lang.IllegalArgumentException
- if cSnmpRemoteAuthoritativeSession is not "remote" authoritative sessionpublic int placeInformOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession, SnmpOrderInfo cSnmpOrderInfo, java.lang.String szEnterpriseOID, int iTrapNum, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects, SnmpCustomer cSnmpCustomer, int iOrderNumStart) throws java.lang.IllegalArgumentException
cSnmpRemoteAuthoritativeSession
- contains host, port, and security object for the agentcSnmpOrderInfo
- contains retries and wait-time (cache age is ignored)szEnterpriseOID
- enterprise OIDiTrapNum
- trap number for enterpriseszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- order number to be passed to the SnmpCustomer upon
completionjava.lang.IllegalArgumentException
- if cSnmpRemoteAuthoritativeSession is not "remote" authoritative sessionpublic int placeInformOrder(SnmpAuthoritativeSession cSnmpRemoteAuthoritativeSession, java.lang.Long lAgentTimeStamp, SnmpOrderInfo cSnmpOrderInfo, java.lang.String szEnterpriseOID, int iTrapNum, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects, SnmpCustomer cSnmpCustomer, int iOrderNumStart) throws java.lang.IllegalArgumentException
cSnmpRemoteAuthoritativeSession
- contains host, port, and security object for the agentlAgentTimeStamp
- trap time stamp (if null, the application's 'uptime' will be used)cSnmpOrderInfo
- contains retries and wait-time (cache age is ignored)szEnterpriseOID
- enterprise OIDiTrapNum
- trap number for enterpriseszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setcSnmpCustomer
- requesting customer (callback)iOrderNumStart
- order number to be passed to the SnmpCustomer upon
completionjava.lang.IllegalArgumentException
- if cSnmpRemoteAuthoritativeSession is not "remote" authoritative sessionpublic boolean placeTrapOrder(SnmpAuthoritativeSession cSnmpLocalAuthoritativeSession, java.lang.String szEnterpriseOID, int iTrapNum, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects) throws java.lang.IllegalArgumentException
szEnterpriseOID = "1.3.6.1.6.3.1.1.5"; iTrapNum = SnmpConstants.TRAP_COLD_START + 1;
cSnmpLocalAuthoritativeSession
- contains host, port, and security object for the agentszEnterpriseOID
- enterprise OIDiTrapNum
- trap number for enterpriseszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setjava.lang.IllegalArgumentException
- if cLocalSnmpAuthoritativeSession is not "local"public boolean placeV1TrapOrder(SnmpAuthoritativeSession cSnmpLocalAuthoritativeSession, java.net.InetAddress cAgentInetAddress, java.lang.Long lAgentTimeStamp, java.lang.String szEnterpriseOID, int iTrapNum, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects) throws java.lang.IllegalArgumentException
cSnmpLocalAuthoritativeSession
- contains host, port, and security object for the agentcAgentInetAddress
- trap source address (if null, the application's host address will be used)lAgentTimeStamp
- trap time stamp (if null, the application's 'uptime' will be used)szEnterpriseOID
- enterprise OIDiTrapNum
- trap number for enterpriseszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setjava.lang.IllegalArgumentException
- if cLocalSnmpAuthoritativeSession is not "local" or not "V1"public boolean placeTrapOrder(SnmpAuthoritativeSession cSnmpLocalAuthoritativeSession, java.lang.Long lAgentTimeStamp, java.lang.String szEnterpriseOID, int iTrapNum, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects) throws java.lang.IllegalArgumentException
cSnmpLocalAuthoritativeSession
- contains host, port, and security object for the agentszEnterpriseOID
- enterprise OIDlAgentTimeStamp
- trap time stamp (if null, the application's 'uptime' will be used)iTrapNum
- trap number for enterpriseszOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of values to setjava.lang.IllegalArgumentException
- if cLocalSnmpAuthoritativeSession is not "local"public int placeReportOrder(SnmpAuthoritativeSession cSnmpAuthoritativeSession, SnmpOrderInfo cSnmpOrderInfo, java.lang.String[] szOIDs, byte[] cbTypes, java.lang.Object[] cValueObjects, SnmpCustomer cSnmpCustomer, int iOrderNumStart)
cSnmpAuthoritativeSession
- contains host, port, and security object for an agentcSnmpOrderInfo
- contains retries and wait-time (cache age is ignored)szOIDs
- array of OIDs in dotted notationcbTypes
- array of bytes representing ASN.1 typescValueObjects
- array of valuesbRequestType
- request typecSnmpCustomer
- requesting customer (callback)iOrderNumStart
- order number to be passed to the SnmpCustomer upon
completionpublic boolean addTrapListenerProfile(SnmpTrapListener cSnmpTrapListener, SnmpTrapProfile cSnmpTrapProfile) throws java.net.SocketException
cSnmpTrapListener
- a new or existing listenercSnmpTrapProfile
- profile to add to the list of associated profilesjava.net.SocketException
- if the Service is unable to listen for traps on a specified portpublic boolean removeTrapListenerProfile(SnmpTrapListener cSnmpTrapListener, SnmpTrapProfile cSnmpTrapProfile) throws java.util.NoSuchElementException
cSnmpTrapListener
- listener registered with the servicecSnmpTrapProfile
- profile to remove from the listenerjava.util.NoSuchElementException
- if the listener is not registeredpublic SnmpTrapProfile[] listTrapListenerProfiles(SnmpTrapListener cSnmpTrapListener) throws java.util.NoSuchElementException
cSnmpTrapListener
- listener registered with the servicejava.util.NoSuchElementException
- thrown if the listener is not registered.public void removeTrapListener(SnmpTrapListener cSnmpTrapListener) throws java.util.NoSuchElementException
cSnmpTrapListener
- listener registered with the servicejava.util.NoSuchElementException
- thrown if the listener is not registered.public SnmpSecurityManager getSecurityManager()
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Home Services Products Purchase Contact Us About Us Legal Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.