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 |
Constructor and Description |
---|
ClusterRepositoryInfo() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getOrCreateId(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
public static java.lang.String getOrCreateId(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"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"