Package com.atlassian.bitbucket.mesh
Interface MeshNode
public interface MeshNode
Represents a node that manages git repositories
- Since:
- 8.0
-
Method Details
-
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
- Returns:
- when the last successful request was made to the node, or
null
-
getName
- Returns:
- the human-readable name of the node, used in the UI and logs
-
getRpcId
- Returns:
- the node's RPC ID, which is used to identify the node during requests
-
getRpcUrl
- Returns:
- the node's RPC URL, including the scheme and port
-
getState
- Returns:
- the node's current state
- Since:
- 8.4
-
isAvailable
boolean isAvailable()- Returns:
true
if the node'sstate
isMeshNode.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
-