public enum DiffIterateFlags extends Enum<DiffIterateFlags>
CdbSubscription.diffIterate(int,CdbDiffIterate,EnumSet,Object)
to
control the behavior of iterate over changes made in CDB data.Enum Constant and Description |
---|
ITER_WANT_ANCESTOR_DELETE
Control if the deleted of a ancestor will trigger a subscription
iteration.
|
ITER_WANT_ATTR
This is flag that only has meaning in the maapi case.
|
ITER_WANT_CLI_STR |
ITER_WANT_LEAF_FIRST_ORDER |
ITER_WANT_LEAF_LAST_ORDER |
ITER_WANT_LEAF_LIST_AS_LEAF
Changes to leaf-lists will cause invocations of iterate()
as for leafs and not as for lists, e.g.
|
ITER_WANT_PREV
Include the previous value for modification of a leaf/leaf-list
value.
|
ITER_WANT_REVERSE |
ITER_WANT_SCHEMA_ORDER |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static DiffIterateFlags |
valueOf(int i) |
static DiffIterateFlags |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiffIterateFlags[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiffIterateFlags ITER_WANT_PREV
CdbSubscription.diffIterate(int ,CdbDiffIterate,EnumSet,Object)
The old value is supplied to the call to
CdbDiffIterate.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
to CdbDBType.CDB_PRE_COMMIT_RUNNING
that holds "old"
operational data method.
This option is default in
CdbSubscription.diffIterate(int, CdbDiffIterate)
which means
that the flag needs not to be passed explicitly.
public static final DiffIterateFlags ITER_WANT_ANCESTOR_DELETE
The flag ITER_WANT_ANCESTOR_DELETE is passed to
diffIterate method which specifies that a subscription should
be triggered because an ancestor was deleted subscription will also
generate a call to iterate, and in this case kp
will be the path that was actually deleted.
This option is not default in
CdbSubscription.diffIterate(int, CdbDiffIterate)
which means
that the flag needs to be passed explicitly.
public static final DiffIterateFlags ITER_WANT_ATTR
DiffIterateOperFlag.MOP_ATTR_SET
in the iterator and the new
and old values will be of type ConfAttributeValue
public static final DiffIterateFlags ITER_WANT_CLI_STR
public static final DiffIterateFlags ITER_WANT_SCHEMA_ORDER
public static final DiffIterateFlags ITER_WANT_LEAF_FIRST_ORDER
public static final DiffIterateFlags ITER_WANT_LEAF_LAST_ORDER
public static final DiffIterateFlags ITER_WANT_REVERSE
public static final DiffIterateFlags ITER_WANT_LEAF_LIST_AS_LEAF
DiffIterateOperFlag.MOP_VALUE_SET
rather than
DiffIterateOperFlag.MOP_CREATED
/
DiffIterateOperFlag.MOP_DELETED
.public static DiffIterateFlags[] values()
for (DiffIterateFlags c : DiffIterateFlags.values()) System.out.println(c);
public static DiffIterateFlags valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static DiffIterateFlags valueOf(int i)