Package org.snmp4j.agent.db
Enum Class MOXodusPersistence.SavingStrategy
java.lang.Object
java.lang.Enum<MOXodusPersistence.SavingStrategy>
org.snmp4j.agent.db.MOXodusPersistence.SavingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<MOXodusPersistence.SavingStrategy>
,java.lang.constant.Constable
- Enclosing class:
MOXodusPersistence
public static enum MOXodusPersistence.SavingStrategy
extends Enum<MOXodusPersistence.SavingStrategy>
The
MOXodusPersistence.SavingStrategy
defines how and when persistent data is saved.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSave only when theMOXodusPersistence.save()
method is being called and the persistent data do no longer match the data in the agent.Always save everything whenMOXodusPersistence.save()
is being called without checking for modifications.The default strategy saves changed data only if a correspondingMOChangeEvent
has been received. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MOXodusPersistence.SavingStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
onChangeEventsOnly
The default strategy saves changed data only if a correspondingMOChangeEvent
has been received. -
checkForModificationsOnSave
Save only when theMOXodusPersistence.save()
method is being called and the persistent data do no longer match the data in the agent. -
fullDumpOnSave
Always save everything whenMOXodusPersistence.save()
is being called without checking for modifications.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-