public interface SnmpProvider
SnmpContext objects.| 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). 
 | 
String getName()
null)void init(SnmpFactoryConfig config)
This method is invoked once, after the factory has been instantiated, before the provider is called upon to create contexts or listeners.
config - configuration associated with the caling factorySnmpContext newContext(SnmpTarget target, SnmpTargetConfig config, Mib mib)
target - target agentconfig - context configuration; the provider can safely
    assume that the configuration is immutable for the lifetime of the
    returned contextmib - MIB providerSnmpListener newListener(String address, int port, Mib mib)
address - address on which to listen (null to indicate ANY)port - port on which to listenmib - MIB providervoid close()
SnmpFactory
 has been closed.
 The provider should release any resources such as threads, locks, open files/sockets, etc when this method is invoked.
Copyright © 2012–2015. All rights reserved.