public enum ConfIterateFlags extends Enum<ConfIterateFlags>
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
Leaf-list nodes will cause invocations of iterate() as for leafs and not
as for lists, i.e.
|
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 ConfIterateFlags |
valueOf(int i) |
static ConfIterateFlags |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfIterateFlags[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfIterateFlags 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 ConfIterateFlags 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 ConfIterateFlags ITER_WANT_ATTR
DiffIterateOperFlag.MOP_ATTR_SET
in the iterator and the new
and old values will be of type ConfAttributeValue
public static final ConfIterateFlags ITER_WANT_CLI_STR
public static final ConfIterateFlags ITER_WANT_SCHEMA_ORDER
public static final ConfIterateFlags ITER_WANT_LEAF_FIRST_ORDER
public static final ConfIterateFlags ITER_WANT_LEAF_LAST_ORDER
public static final ConfIterateFlags ITER_WANT_REVERSE
public static final ConfIterateFlags ITER_WANT_LEAF_LIST_AS_LEAF
public static ConfIterateFlags[] values()
for (ConfIterateFlags c : ConfIterateFlags.values()) System.out.println(c);
public static ConfIterateFlags 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 ConfIterateFlags valueOf(int i)