Enum Class DiffIterateFlags
- All Implemented Interfaces:
Serializable
,Comparable<DiffIterateFlags>
,Constable
CdbSubscription.diffIterate(int,CdbDiffIterate,EnumSet,Object)
to
control the behavior of iterate over changes made in CDB data.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionControl if the deleted of a ancestor will trigger a subscription iteration.This is flag that only has meaning in the maapi case.Include the previous value for modification of a leaf/leaf-list value. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static DiffIterateFlags
valueOf
(int i) Returns the enum constant of this class with the specified name.static DiffIterateFlags
Returns the enum constant of this class with the specified name.static DiffIterateFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ITER_WANT_PREV
Include the previous value for modification of a leaf/leaf-list value. If the flags is provided toCdbSubscription.diffIterate(int,CdbDiffIterate,EnumSet,Object)
The old value is supplied to the call toCdbDiffIterate.iterate(ConfObject[], DiffIterateOperFlag, ConfObject,ConfObject,Object)
if a value have changed.For operational data subscriptions, the
ITER_WANT_PREV
flag is ignored, and old value is always null - there is no equivalent toCdbDBType.CDB_PRE_COMMIT_RUNNING
that holds "old" operational data method. This option is default inCdbSubscription.diffIterate(int, CdbDiffIterate)
which means that the flag needs not to be passed explicitly. -
ITER_WANT_ANCESTOR_DELETE
Control if the deleted of a ancestor will trigger a subscription iteration.The flag
ITER_WANT_ANCESTOR_DELETE
is passed todiffIterate
method which specifies that a subscription should be triggered because an ancestor was deleted subscription will also generate a call toiterate
, and in this casekp
will be the path that was actually deleted. This option is not default inCdbSubscription.diffIterate(int, CdbDiffIterate)
which means that the flag needs to be passed explicitly. -
ITER_WANT_ATTR
This is flag that only has meaning in the maapi case. If set, the iteration will also go over attribute values. In such cases the DiffIterateOperFlag will be set toDiffIterateOperFlag.MOP_ATTR_SET
in the iterator and the new and old values will be of typeConfAttributeValue
-
ITER_WANT_CLI_STR
-
ITER_WANT_SCHEMA_ORDER
-
ITER_WANT_LEAF_FIRST_ORDER
-
ITER_WANT_LEAF_LAST_ORDER
-
ITER_WANT_REVERSE
-
-
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
-
getValue
public int getValue() -
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:
i
- 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
-