public class UriInfo.HighAvailability extends Object
UriInfo.HighAvailability
structure is used to hold information about
how HA URIs are constructed if the service supports HA mode. For example
high_availability": { "nameservice": "{{hdfs-site/dfs.internal.nameservices}}", "alias_key" : "dfs.ha.namenodes.{{ha-nameservice}}", "http_pattern" : "dfs.namenode.http-address.{{ha-nameservice}}.{{alias}}", "https_pattern" : "dfs.namenode.https-address.{{ha-nameservice}}.{{alias}}" }Where the nameservice is
c1ha
and the alias key is
dfs.ha.namenodes.c1ha
. In this case the http pattern is defined as
dfs.namenode.http-address.{{ha-nameservice}}.{{alias}}Constructor and Description |
---|
HighAvailability() |
Modifier and Type | Method and Description |
---|---|
String |
getAliasKey()
Gets the parameterized key to use when retrieving the host aliases.
|
String |
getHttpPattern()
Get the parameterized HTTP pattern to use.
|
String |
getHttpsPattern()
Get the parameterized HTTPS pattern to use.
|
String |
getNameservice()
Gets the nameservice name.
|
public String getNameservice()
public String getAliasKey()
public String getHttpPattern()
public String getHttpsPattern()
Copyright © 2022 Apache Software Foundation. All rights reserved.