public class Snmp4jProvider extends Object implements SnmpProvider
SnmpProvider based on SNMP4j.| Modifier and Type | Field and Description | 
|---|---|
static String | 
PROVIDER_NAME  | 
static String | 
USE_SINGLE_SESSION  | 
| Constructor and Description | 
|---|
Snmp4jProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Notifies the recipient that the  
SnmpFactory
 has been closed. | 
String | 
getName()
Gets the provider name. 
 | 
void | 
init(SnmpFactoryConfig config)
Initializes this provider instance. 
 | 
SnmpContext | 
newContext(SnmpTarget target,
          SnmpTargetConfig config,
          Mib mib)
Creates a new SNMPv2c context. 
 | 
SnmpListener | 
newListener(String address,
           int port,
           Mib mib)
Creates a new listener that will receive and distribute SNMP notifications
 (traps, informs). 
 | 
void | 
onDispose(Object ref)  | 
public static final String PROVIDER_NAME
public static final String USE_SINGLE_SESSION
public String getName()
getName in interface SnmpProvidernull)public void init(SnmpFactoryConfig config)
SnmpProviderThis method is invoked once, after the factory has been instantiated, before the provider is called upon to create contexts or listeners.
init in interface SnmpProviderconfig - configuration associated with the caling factorypublic SnmpContext newContext(SnmpTarget target, SnmpTargetConfig config, Mib mib)
newContext in interface SnmpProvidertarget - target agentconfig - context configuration; the provider can safely
    assume that the configuration is immutable for the lifetime of the
    returned contextmib - MIB providerpublic SnmpListener newListener(String address, int port, Mib mib)
SnmpProvidernewListener in interface SnmpProvideraddress - address on which to listen (null to indicate ANY)port - port on which to listenmib - MIB providerpublic void close()
SnmpProviderSnmpFactory
 has been closed.
 The provider should release any resources such as threads, locks, open files/sockets, etc when this method is invoked.
close in interface SnmpProviderpublic void onDispose(Object ref)
Copyright © 2012–2015. All rights reserved.