public interface MeshService
MeshNodes.
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.
| Modifier and Type | Method and Description |
|---|---|
MeshNode |
getMember(long id) |
List<MeshNode> |
getMembers() |
Optional<MeshNode> |
getSidecar() |
boolean |
isAvailable()
Deprecated.
in 8.17 for removal in 9.0, without replacement
|
MeshNode |
register(RegisterMeshNodeRequest request)
Registers and provisions a new node and assigns unallocated partitions to it.
|
MeshNode |
update(UpdateMeshNodeRequest request)
Updates the node details, such as the RPC URL, name and/or secret.
|
@Nonnull MeshNode getMember(long id)
id - the node IDNoSuchMeshNodeException - if the node is not found@Nonnull List<MeshNode> getMembers()
@Nonnull Optional<MeshNode> getSidecar()
@Deprecated boolean isAvailable()
true (as of Bitbucket 8.15 where Mesh is always available)@Nonnull MeshNode register(@Nonnull RegisterMeshNodeRequest request)
request - request providing the new node details such as the name, id, RPC URL and secretID if one was not
provided in the request@Nonnull MeshNode update(@Nonnull UpdateMeshNodeRequest request)
request - provides new values for fields that should be updatedNoSuchMeshNodeException - if the node is not foundCopyright © 2024 Atlassian. All rights reserved.