Interface CDSShardAccess


  • @Beta
    @Deprecated(forRemoval=true)
    public interface CDSShardAccess
    Deprecated, for removal: This API element is subject to removal in a future version.
    Unprivileged access interface to shard information. Provides read-only access to operational details about a CDS shard.
    Author:
    Robert Varga
    • Method Detail

      • getLeaderLocation

        @NonNull LeaderLocation getLeaderLocation()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Return the shard leader location relative to the local node.
        Returns:
        Shard leader location.
        Throws:
        IllegalStateException - if the CDSDataTreeProducer from which the associated CDSDataTreeProducer is no longer valid.
      • makeLeaderLocal

        @NonNull CompletionStage<Void> makeLeaderLocal()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Request the shard leader to be moved to the local node. The request will be evaluated against shard state and satisfied if leader movement is possible. If current shard policy or state prevents the movement from happening, the returned CompletionStage will report an exception.

        This is a one-time operation, which does not prevent further movement happening in future. Even if this request succeeds, there is no guarantee that the leader will remain local in face of failures, shutdown or any future movement requests from other nodes.

        Note that due to asynchronous nature of CDS, the leader may no longer be local by the time the returned CompletionStage reports success.

        Returns:
        A CompletionStage representing the request.
        Throws:
        IllegalStateException - if the CDSDataTreeProducer from which the associated CDSDataTreeProducer is no longer valid.