Interface MeshNode


public interface MeshNode
Represents a node that manages git repositories
Since:
8.0
  • Method Details

    • getAvailabilityZone

      @Nullable String getAvailabilityZone()
      Returns:
      the availability zone of the node, or null
      Since:
      9.3
    • getId

      long getId()
      Returns:
      the (immutable) ID of the node
    • hasAvailabilityZone

      default boolean hasAvailabilityZone()
      Returns:
      true if the node has an availability zone; otherwise, false
      Since:
      9.3
    • getLastSeenDate

      @Nullable Date getLastSeenDate()
      Returns:
      when the last successful request was made to the node, or null
    • getName

      @Nonnull @RequiredString String getName()
      Returns:
      the human-readable name of the node, used in the UI and logs
    • getRpcId

      @Nonnull default String getRpcId()
      Returns:
      the node's RPC ID, which is used to identify the node during requests
    • getRpcUrl

      @Nonnull @RequiredString String getRpcUrl()
      Returns:
      the node's RPC URL, including the scheme and port
    • getState

      @Nonnull MeshNode.State getState()
      Returns:
      the node's current state
      Since:
      8.4
    • isAvailable

      boolean isAvailable()
      Returns:
      true if the node's state is MeshNode.State.AVAILABLE
      Since:
      8.4
    • isOffline

      boolean isOffline()
      Returns:
      true if the node is currently offline; otherwise, false
    • isSidecar

      default boolean isSidecar()
      Returns:
      true if this instance is the sidecar node; otherwise, false