Annotation Interface NodeVersionUpgrader.UpgraderMetadata
- Enclosing interface:
- NodeVersionUpgrader
@Evolving
@Retention(RUNTIME)
@Target(TYPE)
public static @interface NodeVersionUpgrader.UpgraderMetadata
Metadata annotation for the upgrader.
This annotation should be used on the class that implements the upgrader.
It specifies the previous version upgrader to use if any.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends NodeVersionUpgrader>The previous upgrader class, should beNoUpgradesif this is the first upgrader for this node.intThe node version that this upgrader is for.
-
Element Details
-
version
int versionThe node version that this upgrader is for.- Returns:
- the version.
-
previousUpgrader
Class<? extends NodeVersionUpgrader> previousUpgraderThe previous upgrader class, should beNoUpgradesif this is the first upgrader for this node.- Returns:
- the previous upgrader class.
-