- All Known Implementing Classes:
Snmp4jConfigMib
public interface MOPriorityProvider
MOPriorityProvider
is an object (often a ManagedObject
) that defines
a prioritisation of other ManagedObject
s. This prioritisation can be used to
define the order for storing and especially restoring and initializing ManagedObject
s
by MOPersistenceProvider
instances.- Since:
- 3.5.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptiongetBootManagedObject
(org.snmp4j.smi.OctetString context) Returns theManagedObject
that stores the priority information and therefore needs to be stored/restored first to determinegetPriorityMap(OctetString)
for the provided context.getPriorityMap
(org.snmp4j.smi.OctetString context) Returns a sorted map that maps object identifiers to a integer based priority where lesser numbers represent higher priority, i.e.
-
Method Details
-
getPriorityMap
Returns a sorted map that maps object identifiers to a integer based priority where lesser numbers represent higher priority, i.e. earlier processing in store and restore operations. TheOID
s represent the lower bound of theMOScope
ofManagedObject
s or any of their parent sub-trees.- Parameters:
context
- the SNMPv3 context for which the boot managed object that stores the priority information is to e returned.null
and the empty (size 0) string represent the default context.- Returns:
- a sorted map of OID to zero based priorities.
-
getBootManagedObject
Returns theManagedObject
that stores the priority information and therefore needs to be stored/restored first to determinegetPriorityMap(OctetString)
for the provided context.- Parameters:
context
- the SNMPv3 context for which the boot managed object that stores the priority information is to e returned.null
and the empty (size 0) string represent the default context.- Returns:
- the
MOScope
that identifies this managed object.
-