Package com.atlassian.bitbucket.mesh
Interface MeshService
public interface MeshService
A service for administering
MeshNode
s.
Mesh is a distributed Git management system, allowing repositories to replicated to multiple active nodes, all of which can serve both read and write traffic. Adding Mesh nodes makes additional targets available to host replicas and increases the overall availability and scalability of the system.
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptiongetMember
(long id) register
(RegisterMeshNodeRequest request) Registers and provisions a new node and assigns unallocated partitions to it.update
(UpdateMeshNodeRequest request) Updates the node details, such as the RPC URL, name and/or secret.
-
Method Details
-
getMember
- Parameters:
id
- the node ID- Returns:
- the node
- Throws:
NoSuchMeshNodeException
- if the node is not found
-
getMembers
- Returns:
- the list of currently registered nodes, including the sidecar if it's running
-
getSidecar
- Returns:
- the sidecar, if one is running on the current node
-
register
Registers and provisions a new node and assigns unallocated partitions to it. The node is required to be running so it can be provisioned, which establishes trust between the control plane and the node.- Parameters:
request
- request providing the new node details such as the name, id, RPC URL and secret- Returns:
- the newly registered node, with a generated value for
ID
if one was not provided in therequest
-
update
Updates the node details, such as the RPC URL, name and/or secret.- Parameters:
request
- provides new values for fields that should be updated- Returns:
- the updated node
- Throws:
NoSuchMeshNodeException
- if the node is not found
-