- All Known Subinterfaces:
SnmpEngineIdProvider
- All Known Implementing Classes:
EngineBootsCounterFile
public interface EngineIdProvider
An
EngineIdProvider
holds persistently the engine ID of a SNMP engine.- Since:
- 3.5
- Version:
- 3.5
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptiongetEngineId
(OctetString defaultEngineID) Gets the engine ID for the SNMP entity associated with thisEngineIdProvider
.void
resetEngineId
(OctetString engineId) Sets the persistently stored engine ID to a new value.
-
Method Details
-
getEngineId
Gets the engine ID for the SNMP entity associated with thisEngineIdProvider
.- Parameters:
defaultEngineID
- the engine ID for this entity, if there is no persistently saved engine ID yet.- Returns:
- the persistently saved engine ID or the reference to the
defaultEngineID
which is then persistently stored.
-
resetEngineId
Sets the persistently stored engine ID to a new value.- Parameters:
engineId
- the new engine ID for this SNMP entity.
-