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 Elements
    Modifier and Type
    Required Element
    Description
    The previous upgrader class, should be NoUpgrades if this is the first upgrader for this node.
    int
    The node version that this upgrader is for.
  • Element Details

    • version

      int version
      The node version that this upgrader is for.
      Returns:
      the version.
    • previousUpgrader

      Class<? extends NodeVersionUpgrader> previousUpgrader
      The previous upgrader class, should be NoUpgrades if this is the first upgrader for this node.
      Returns:
      the previous upgrader class.