Constructor and Description |
---|
DNS() |
Modifier and Type | Method and Description |
---|---|
protected static Map<String,String> |
asCNAMEAliasFQDNMap(List<org.kuali.common.dns.model.SimpleDnsRecord> records)
Filter the list down to just CNAME records.
Convert the DNS record name into a valid FQDN by appending the domain name. Convert the DNS record value into a valid FQDN by remove the trailing dot (if there is one) |
protected static Properties |
convert(Map<String,String> map) |
protected static Map<String,String> |
convert(Properties props) |
protected static void |
debug(String msg,
Object... args) |
protected static void |
elapsed(com.google.common.base.Stopwatch sw) |
static Map<String,String> |
getAliasMap(boolean refresh)
Return a mapping of aliases to canonical name records.
|
static com.google.common.collect.BiMap<String,String> |
getCanonicalMap(boolean refresh)
Return a mapping of canonical name records to aliases.
|
protected static <T> Set<T> |
getDuplicateValues(Map<?,T> map) |
protected static void |
info(String msg,
Object... args) |
protected static List<org.kuali.common.dns.model.SimpleDnsRecord> |
load() |
protected static List<org.kuali.common.dns.model.SimpleDnsRecord> |
queryProvider()
Grab all the DNS records known to this provider
|
protected static <T> void |
removeAllKeysWithDuplicateValues(Map<?,T> map) |
protected static void |
store(List<org.kuali.common.dns.model.SimpleDnsRecord> records) |
public DNS()
public static Map<String,String> getAliasMap(boolean refresh)
alias canonical env1.rice.kuali.org -> ec2-174-129-109-246.compute-1.amazonaws.com
public static com.google.common.collect.BiMap<String,String> getCanonicalMap(boolean refresh)
canonical alias ec2-174-129-109-246.compute-1.amazonaws.com -> env1.rice.kuali.org
protected static <T> void removeAllKeysWithDuplicateValues(Map<?,T> map)
protected static <T> Set<T> getDuplicateValues(Map<?,T> map)
protected static List<org.kuali.common.dns.model.SimpleDnsRecord> queryProvider()
protected static Map<String,String> asCNAMEAliasFQDNMap(List<org.kuali.common.dns.model.SimpleDnsRecord> records)
protected static Properties convert(Map<String,String> map)
protected static Map<String,String> convert(Properties props)
protected static void elapsed(com.google.common.base.Stopwatch sw)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.