[SNMP4J] SNMP4J 1.7 and SNMP4J-Agent 1.0beta1 Released

Frank Fock fock at agentpp.com
Tue Apr 11 19:31:11 CEST 2006


Hi Matthieu,

The BaseAgent needs indeed some more refactoring and documentation.
If you do not want to support object serialization (persistent
ManagedObjects), then you can overwrite the loadConfig(int) and
saveConfig() methods of BaseAgent in your subclass with empty
methods. Then you can provide a null value for the config file.

However, the boot counter should be persistently stored (for example
in the windows registry). You should overwrite the getEngineBoots()
method to provide your own mechanism.

Hope this helps.

Best regards,
Frank Fock

Matthieu Casanova wrote:
> Hi, about the snmp agent library, the BaseAgent seems to be changed, in 
> fact, with the alpha versions I copied the init() method from TestAgent 
> in my Agent, but now it seems those things are directly in BaseAgent.
> The difference is that the config files are required and it is not 
> possible to have null in those fields isn't it ?
> What the purpose of those files ? Keep track of datas in my agent to 
> restore them when restarting it ?
> If I don't want that I give any File() (that doesn't exists) and do not 
> add the shutdown hook so the files are never created. Is that good or do 
> you think it's really important to use those files ?
> 
> Matthieu
> 
> 2006/4/11, Frank Fock <fock at agentpp.com <mailto:fock at agentpp.com>>:
> 
>     Dear SNMP4J-Users,
> 
>     SNMP4J v1.7 and SNMP4J-Agent 1.0beta1 have been released today
>     and can be downloaded from http://www.snmp4j.org
> 
>     SNMP4J-Agent is still not documented as it should be, however
>     its code base should now be reasonable stable. Until v1.0 can
>     be finally released, TODOs in the code have to implemented,
>     everything thoroughly tested, and possible bugs removed (reports
>     are appreciated!). The managed object interface is now so stable
>     that AgenPro 2.5 with new and enhanced templates for SNMP4J will
>     be released in about three weeks.
> 
>     RELEASE NOTES
> 
>     CHANGES SNMP4J v1.7 SINCE v1.6e:
>     * Improved: Logging interface enhanced.
>     * Added: Variable.toInt() and Variable.toLong() to reduce
>        casting when converting to native integer or long values.
>     * Fixed: OID.mask.
>     * Added: When PDUv1 decodes a Counter64 object, a
>        MessageException is thrown.
>     * Added: OID.nextPeer(), OID.successor(),
>        and OID.predecessor().
>     * Fixed: ThreadPool.stop() blocked.
>     * Fixed: Additional retries with sync requests when first
>        try failed and second (or second to last) succeeded.
>     * Fixed: Possible NullPointerException when closing Snmp.
>     * Improved: Closing UDP default transport mapping first
>        disconnects socket before closing it.
>     * Fixed: Possible ConcurrentModificationException when using
>        List returned by sync TableUtils.getTable(..).
>     * Added: OctetString.fromByteArray to create an OctetString
>        from a byte array.
>     * Improved: OID.successor() to build correct successor for
>        128 subidentifier OIDs.
>     * Added: OID.min(OID a, OID b) and OID.max(OID a, OID b)
>     * Fixed: Handling of remote disconnect of TCP transport
>        mapping.
>     * Added: ConnectionOrientedTransportMapping interface and
>        TransportStateListener event listener.
>     * Added: Variable.getSyntaxString().
>     * Fixed: Bug in Snmp.send(PDU pdu, Target target,
>        TransportMapping transport) which did not propagate the
>        transport mapping.
>     * Added: UsignedInteger32(int) and UsignedInteger32(byte)
>        constructor.
>     * Fixed: Set SnmpMessageLengthDecoder as default for
>        DefaultTCPTransportMapping.
>     * Added sysOREntry OID constant in SnmpConstants.
> 
> 
>     CHANGES SNMP4J-AGENT v1.0-beta1 SINCE v1.0-alpha2 :
> 
>     * Added: SNMP-COMMUNITY-MIB support for coexistence.
>     * Added: ProxyForwarder implementation including
>        SNMP-PROXY-MIB.
>     * Added: SNMP4J-CONFIG-MIB and SNMP4J-LOG-MIB
>        implementations.
>     * Fixed: A couple of bugs regarding notification
>        originator and filtering.
>     * Improved: Table relationships.
>     * Added: MOFatory, MOTableModelEvent, etc.
>     * Added: TextualConvention interface and related
>        objects in org.snmp4j.agent.mo.snmp.tc
>     <http://org.snmp4j.agent.mo.snmp.tc>.
>     * Improved: Value constraint handling through classes
>        in org.snmp4j.agent.mo.snmp.smi.
>     * Added: Some more TCs like TruthValue, TimeStamp,
>        etc.
>     * Added: IndexGenerator to create unique index values.
>     * And many more changes...
> 
> 
>     Regards,
>     Frank Fock
> 
> 
> 
>     --
>     AGENT++
>     http://www.agentpp.com
>     http://www.mibexplorer.com <http://www.mibexplorer.com>
>     http://www.mibdesigner.com
> 
>     _______________________________________________
>     SNMP4J mailing list
>     SNMP4J at agentpp.org <mailto:SNMP4J at agentpp.org>
>     http://lists.agentpp.org/mailman/listinfo/snmp4j
> 
> 

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list