Interface StateTransferManager

All Known Implementing Classes:
StateTransferManagerImpl

public interface StateTransferManager
A component that manages the state transfer when the topology of the cluster changes.
Since:
5.1
Author:
Dan Berindei <dan@infinispan.org>, Mircea Markus, anistor@redhat.com
  • Method Details

    • isJoinComplete

      boolean isJoinComplete()
    • isStateTransferInProgress

      boolean isStateTransferInProgress()
      Checks if an inbound state transfer is in progress.
    • getInflightSegmentTransferCount

      long getInflightSegmentTransferCount()
      Returns the number of requested segments to be transferred.
    • getInflightTransactionalSegmentCount

      long getInflightTransactionalSegmentCount()
      Returns the number of transactional segments requested which are still in-flight.
    • isStateTransferInProgressForKey

      @Deprecated default boolean isStateTransferInProgressForKey(Object key)
      Deprecated.
      since 10.0; to be removed in next major version
      Checks if an inbound state transfer is in progress for a given key.
    • start

      void start() throws Exception
      Throws:
      Exception
    • waitForInitialStateTransferToComplete

      void waitForInitialStateTransferToComplete()
      Wait for the local cache to receive initial state from the other members.

      Does nothing if StateTransferConfiguration.awaitInitialTransfer() is disabled.

    • stop

      void stop()
    • forwardCommandIfNeeded

      @Deprecated default Map<Address,Response> forwardCommandIfNeeded(TopologyAffectedCommand command, Set<Object> affectedKeys, Address origin)
      Deprecated.
      Since 14.0. To be removed without replacement.
      If there is an state transfer happening at the moment, this method forwards the supplied command to the nodes that are new owners of the data, in order to assure consistency.
    • getRebalancingStatus

      String getRebalancingStatus() throws Exception
      Throws:
      Exception
    • getStateConsumer

      StateConsumer getStateConsumer()
    • getStateProvider

      StateProvider getStateProvider()