-
- All Known Implementing Classes:
Snmp4jConfigMib
public interface MOPriorityProviderMOPriorityProvideris an object (often aManagedObject) that defines a prioritisation of otherManagedObjects. This prioritisation can be used to define the order for storing and especially restoring and initializingManagedObjects byMOPersistenceProviderinstances.- Since:
- 3.5.0
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObject<?>getBootManagedObject(org.snmp4j.smi.OctetString context)Returns theManagedObjectthat stores the priority information and therefore needs to be stored/restored first to determinegetPriorityMap(OctetString)for the provided context.SortedMap<org.snmp4j.smi.OID,Integer>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 Detail
-
getPriorityMap
SortedMap<org.snmp4j.smi.OID,Integer> 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. earlier processing in store and restore operations. TheOIDs represent the lower bound of theMOScopeofManagedObjects 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.nulland the empty (size 0) string represent the default context.- Returns:
- a sorted map of OID to zero based priorities.
-
getBootManagedObject
ManagedObject<?> getBootManagedObject(org.snmp4j.smi.OctetString context)
Returns theManagedObjectthat 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.nulland the empty (size 0) string represent the default context.- Returns:
- the
MOScopethat identifies this managed object.
-
-