public class ClusterRepositoryInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLUSTER_CONFIG_NODE |
static java.lang.String |
CLUSTER_ID_PROP |
static java.lang.String |
OAK_CLUSTERID_REPOSITORY_DESCRIPTOR_KEY |
Modifier and Type | Method and Description |
---|---|
static @Nullable java.lang.String |
getId(@NotNull NodeStore store) |
static @Nullable java.lang.String |
getOrCreateId(@NotNull NodeStore store)
Gets the {# CLUSTER_ID_PROP} if available, if it doesn't it
creates it and returns the newly created one (or if that
happened concurrently and another cluster instance won,
return that one)
|
public static final java.lang.String OAK_CLUSTERID_REPOSITORY_DESCRIPTOR_KEY
public static final java.lang.String CLUSTER_CONFIG_NODE
public static final java.lang.String CLUSTER_ID_PROP
@Nullable public static @Nullable java.lang.String getOrCreateId(@NotNull @NotNull NodeStore store)
Note that this method doesn't require synchronization as concurrent execution within the VM would be covered within NodeStore's merge and result in a conflict for one of the two threads - in which case the looser would re-read and find the clusterId set.
store
- the NodeStore instance@Nullable public static @Nullable java.lang.String getId(@NotNull @NotNull NodeStore store)
Copyright © 2010 - 2020 Adobe. All Rights Reserved