public final class SNMPMonitor extends Object
Modifier and Type | Method and Description |
---|---|
static long |
counter32Value(long v)
Wrapper for SNMP Counter32.
|
static Long |
counter32Value(Long valueObject)
Wrapper for SNMP Counter32.
|
static long |
gauge32Value(long v)
Latcher for SNMP Gauge32.
|
static Long |
gauge32Value(Long valueObject)
Latcher for SNMP Gauge32.
|
Object |
getAttribute(ObjectName name,
String attribute)
Gets the value of an attribute.
|
Object |
getAttribute(String name,
String attribute)
Get the value of the attribute.
|
ObjectName |
getConnectionHandler(ObjectName statistics)
Return the ObjectName of the Connection Handler corresponding to the statistics name.
|
Set<ObjectName> |
getConnectionHandlers()
Return a Set of Connection Handler ObjectNames.
|
Set<ObjectName> |
getConnectionHandlersStatistics()
Gets the Connection Handlers Statistics MBean.
|
ObjectName |
getConnectionHandlerStatistics(ObjectName connectionHandlerName)
Returns the ObjectName of the Statistics Connection Handler name.
|
static SNMPMonitor |
getMonitor(MBeanServer server)
Gets the singleton SNMPMonitor object.
|
static Integer |
integerValue(Long valueObject)
Checker for SNMP INTEGER.
|
static Byte[] |
string2ByteArray(String s)
Wrapper for SNMP Byte[].
|
public static SNMPMonitor getMonitor(MBeanServer server)
server
- The serverpublic Set<ObjectName> getConnectionHandlersStatistics()
public ObjectName getConnectionHandler(ObjectName statistics)
statistics
- ObjectNamepublic Set<ObjectName> getConnectionHandlers()
public ObjectName getConnectionHandlerStatistics(ObjectName connectionHandlerName)
connectionHandlerName
- The connection handler namepublic Object getAttribute(String name, String attribute)
name
- of Mbean as a Stringattribute
- to look forpublic Object getAttribute(ObjectName name, String attribute)
name
- of the Mbeanattribute
- to look forpublic static Byte[] string2ByteArray(String s)
s
- value stringpublic static long counter32Value(long v)
v
- valuepublic static Long counter32Value(Long valueObject)
valueObject
- Valuepublic static long gauge32Value(long v)
v
- valuepublic static Long gauge32Value(Long valueObject)
valueObject
- valueCopyright 2010-2020 ForgeRock AS.