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() |
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()
boolean isAvailable()
true if the Mesh feature is available to use; false otherwise. The Mesh feature is
only available if a data center license is installed.@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 © 2022 Atlassian. All rights reserved.