Package com.tailf.conf
Class ConfCdbUpgradePath
Object
com.tailf.conf.InstancePath
com.tailf.conf.ConfPath
com.tailf.conf.ConfCdbUpgradePath
Class Representing a KeyPath path.
This is a simplified variant of ConfPath
for use with
CdbUpgradeSession
.
During a cdb upgrade, it may be necessary to migrate data from nodes that
are about to be deleted. As these nodes are not present in the maapi
schema, they cannot safely be represented by standard ConfPath objects.
Instead use ConfCdbUpgradePath which relies only on ConfNamespace instances
and thus allows deleted paths to be referenced as long as the namespace has
been reinstalled.
-
Constructor Summary
ConstructorDescriptionConfCdbUpgradePath
(String fmt, Object... arguments) ConfCdbUpgradePath
(List<com.tailf.conf.gen.PathParser.PathElement> pl) -
Method Summary
Modifier and TypeMethodDescriptionAppends suffix path to existing keypathclone()
Clones the ConfCdbUpgradePathcopyAppend
(String s) CopyAppends to the keypathcopyPop()
Creates a new ConfCdbUpgradePath with the current path minus the last element including list keys.A ConfCdbUpgradePath cannot be converted to an xpath string as this requires access to the schema.Methods inherited from class com.tailf.conf.InstancePath
atoString, encode, encodeIKP, equals, getCSNode, getKP, getLatestMountId, getMountIdGetter, hashCode, isKey, isParsingDeferred, isRel, setMountIdGetter
-
Constructor Details
-
ConfCdbUpgradePath
- Throws:
ConfException
-
ConfCdbUpgradePath
-
-
Method Details
-
append
Appends suffix path to existing keypath- Overrides:
append
in classConfPath
- Parameters:
s
- path to append- Throws:
ConfException
-
copyAppend
CopyAppends to the keypath- Overrides:
copyAppend
in classConfPath
- Throws:
ConfException
-
copyPop
Creates a new ConfCdbUpgradePath with the current path minus the last element including list keys.- Overrides:
copyPop
in classConfPath
- Throws:
ConfException
-
toXPathString
A ConfCdbUpgradePath cannot be converted to an xpath string as this requires access to the schema. This method will always throw an exception.- Overrides:
toXPathString
in classConfPath
- Returns:
- XPath string representation
-
clone
Clones the ConfCdbUpgradePath
-