Class ClusterNodeDescriptor

  • All Implemented Interfaces:
    Descriptor

    public class ClusterNodeDescriptor
    extends Object
    implements Descriptor
    Descriptor of a cluster node.
    Since:
    11.1
    • Constructor Detail

      • ClusterNodeDescriptor

        public ClusterNodeDescriptor()
        Empty constructor.
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: Descriptor
        The descriptor id, descriptors with same id are merged.

        To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.

        To forbid merge use a unique value, non-overriden toString() for exemple.

        Specified by:
        getId in interface Descriptor
      • getName

        public String getName()
        Gets the name (id) of the cluster node.
      • getEnabled

        public Boolean getEnabled()
        Checks if cluster is enabled for this node. May return null if there is no configuration.
      • merge

        public ClusterNodeDescriptor merge​(Descriptor o)
        Description copied from interface: Descriptor
        Returns a descriptor representing other merged into this

        Default implementation returns other.

        Specified by:
        merge in interface Descriptor
        Returns:
        the merged descriptor