This interface is provided to enable fine customization of the SNMP
agent behaviour.
You will not need to implement this interface except if your agent
needs extra customization requiring some contextual information.
If an SnmpUserDataFactory is set on the SnmpAdaptorServer, then a new
object containing user-data will be allocated through this factory
for each incoming request. This object will be passed along to
the SnmpMibAgent within SnmpMibRequest objects. By default, no
SnmpUserDataFactory is set on the SnmpAdaptorServer, and the contextual
object passed to SnmpMibAgent is null.
You can use this feature to obtain on contextual information
(such as community string etc...) or to implement a caching
mechanism, or for whatever purpose might be required by your specific
agent implementation.
The sequence allocateUserData() / releaseUserData() can
also be used to implement a caching mechanism:
allocateUserData() could be used to allocate
some cache space,
- and
releaseUserData() could be used to flush it.
This API is a Sun Microsystems internal API and is subject
to change without notice. |