| Modifier and Type | Field and Description |
|---|---|
static String |
COMMENT_STR |
static String |
GLUSTERFS_DEPS_KEY |
static String |
NAMENODE_HA_DEPS_KEY |
static String |
NO_GLUSTERFS_DEPS_KEY |
static String |
RESOURCEMANAGER_HA_DEPS_KEY |
| Constructor and Description |
|---|
RoleCommandOrder() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
compareDeps(RoleCommandOrder rco) |
Map<RoleCommandPair,Set<RoleCommandPair>> |
getDependencies()
For test purposes
|
LinkedHashSet<String> |
getSectionKeys()
Gets the collection of section names that was used to initialize this
RoleCommandOrder instance. |
Set<Service> |
getTransitiveServices(Service service,
RoleCommand cmd)
Returns transitive dependencies as a services list
|
void |
initialize(Cluster cluster,
LinkedHashSet<String> sectionKeys) |
int |
order(RoleGraphNode rgn1,
RoleGraphNode rgn2)
Returns the dependency order.
|
public static final String GLUSTERFS_DEPS_KEY
public static final String NO_GLUSTERFS_DEPS_KEY
public static final String NAMENODE_HA_DEPS_KEY
public static final String RESOURCEMANAGER_HA_DEPS_KEY
public static final String COMMENT_STR
public void initialize(Cluster cluster, LinkedHashSet<String> sectionKeys)
public int order(RoleGraphNode rgn1, RoleGraphNode rgn2)
rgn1 - roleGraphNode1rgn2 - roleGraphNode2public Set<Service> getTransitiveServices(Service service, RoleCommand cmd) throws org.apache.ambari.server.AmbariException
service - to check if it depends on another servicesorg.apache.ambari.server.AmbariExceptionpublic int compareDeps(RoleCommandOrder rco)
public LinkedHashSet<String> getSectionKeys()
RoleCommandOrder instance. If this instance has not been
initialized, this will be null.
The ordering of this collection is maintained.null
if it has not been initialized.public Map<RoleCommandPair,Set<RoleCommandPair>> getDependencies()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.