Interface ConsensusModuleControl


public interface ConsensusModuleControl
Control interface for performing operations on the consensus module from a ConsensusModuleExtension.
  • Method Details

    • memberId

      int memberId()
      The unique id for the hosting member of the cluster.
      Returns:
      unique id for the hosting member of the cluster.
    • time

      long time()
      Cluster time as timeUnit()s since 1 Jan 1970 UTC.
      Returns:
      time as timeUnit()s since 1 Jan 1970 UTC.
      See Also:
    • timeUnit

      TimeUnit timeUnit()
      The unit of time applied when timestamping and invoking time() operations.
      Returns:
      the unit of time applied when timestamping and invoking time() operations.
      See Also:
    • idleStrategy

      IdleStrategy idleStrategy()
      IdleStrategy which should be used by the extension when it experiences back-pressure or is undertaking any long-running actions.
      Returns:
      the IdleStrategy which should be used by the extension when it experiences back-pressure or is undertaking any long-running actions.
    • context

      The ConsensusModule.Context under which the extension is running.
      Returns:
      the ConsensusModule.Context under which the extension is running.
    • aeron

      Aeron aeron()
      The Aeron client to be used by the extension.
      Returns:
      the Aeron client to be used by the extension.
    • archive

      AeronArchive archive()
      The AeronArchive client to be used by the extension.
      Returns:
      the AeronArchive client to be used by the extension.
    • authorisationService

      AuthorisationService authorisationService()
      The AuthorisationService used by the consensus module.
      Returns:
      the AuthorisationService used by the consensus module.
    • getClientSession

      ClusterClientSession getClientSession(long clusterSessionId)
      Lookup a ClusterClientSession for a given id.
      Parameters:
      clusterSessionId - for the session to lookup.
      Returns:
      a ClusterClientSession for a given id, otherwise null if not found.
    • closeClusterSession

      void closeClusterSession(long clusterSessionId)
      Close a cluster session as an administrative function.
      Parameters:
      clusterSessionId - to be closed.
    • commitPositionCounterId

      int commitPositionCounterId()
      Numeric id for the commit position counter.
      Returns:
      commit position counter id.
    • clusterId

      int clusterId()
      Numeric id for the cluster (used when running multiple clusters on the same media driver).
      Returns:
      numeric id for the cluster.
      See Also:
    • clusterMember

      ClusterMember clusterMember()
      The current cluster member for this node.
      Returns:
      cluster member for this node.