public class Environments2 extends Object
Constructor and Description |
---|
Environments2() |
Modifier and Type | Method and Description |
---|---|
static void |
fillIn(Environment.Builder builder,
EnvironmentMetadataService service) |
protected static void |
fillIn(String group,
Environment.Builder builder,
File dir) |
protected static com.google.common.base.Optional<Application> |
getApplication(EnvironmentMetadata meta) |
protected static com.google.common.base.Optional<Application> |
getApplication(File dir) |
protected static Environment.Builder |
getBuilder(String group,
EC2Instance server,
com.google.common.collect.BiMap<String,String> cnames) |
static SortedMap<String,List<Environment.Builder>> |
getBuilders(boolean refresh) |
static List<Environment.Builder> |
getBuilders(String group,
List<EC2Instance> instances,
com.google.common.collect.BiMap<String,String> cnames) |
protected static List<EC2Instance> |
getDeployServers(String group,
List<EC2Instance> instances,
com.google.common.collect.BiMap<String,String> cnames) |
protected static File |
getEnvCacheDir(String group,
String environment) |
protected static File |
getEnvironmentCacheFile(String group,
String environment) |
static SortedMap<String,List<Environment>> |
getEnvironments(boolean refresh) |
protected static String |
getFqdnForDeployServer(String group,
EC2Instance server,
com.google.common.collect.BiMap<String,String> cnames) |
protected static com.google.common.base.Optional<String> |
getJava(EnvironmentMetadata meta) |
protected static com.google.common.base.Optional<Memory> |
getMemory(EnvironmentMetadata meta) |
protected static <T> com.google.common.base.Optional<T> |
getMetadata(MetadataUrl<T> url) |
protected static <T> T |
getMetadata(MetadataUrl<T> url,
T provided) |
protected static <T> com.google.common.base.Optional<T> |
getMetadata(com.google.common.base.Optional<MetadataUrl<T>> optional) |
protected static <T> T |
getMetadata(com.google.common.base.Optional<MetadataUrl<T>> optional,
T provided) |
protected static <T> com.google.common.base.Optional<T> |
getOptionalMetadata(MetadataUrl<com.google.common.base.Optional<T>> url) |
protected static <T> T |
getOptionalMetadata(MetadataUrl<com.google.common.base.Optional<T>> url,
T provided) |
protected static com.google.common.base.Optional<Tomcat> |
getTomcat(EnvironmentMetadata meta) |
protected static com.google.common.base.Optional<Tomcat> |
getTomcat(Properties props) |
protected static boolean |
isActiveDeployServer(EC2Instance instance)
Returns true if the instance has been tagged with [Name=env] AND it has a public DNS name
|
public Environments2()
public static SortedMap<String,List<Environment>> getEnvironments(boolean refresh)
protected static File getEnvCacheDir(String group, String environment)
protected static File getEnvironmentCacheFile(String group, String environment)
protected static void fillIn(String group, Environment.Builder builder, File dir)
protected static com.google.common.base.Optional<Tomcat> getTomcat(Properties props)
protected static com.google.common.base.Optional<Application> getApplication(File dir)
public static SortedMap<String,List<Environment.Builder>> getBuilders(boolean refresh)
public static void fillIn(Environment.Builder builder, EnvironmentMetadataService service)
protected static com.google.common.base.Optional<Memory> getMemory(EnvironmentMetadata meta)
protected static com.google.common.base.Optional<Application> getApplication(EnvironmentMetadata meta)
protected static com.google.common.base.Optional<String> getJava(EnvironmentMetadata meta)
protected static com.google.common.base.Optional<Tomcat> getTomcat(EnvironmentMetadata meta)
public static List<Environment.Builder> getBuilders(String group, List<EC2Instance> instances, com.google.common.collect.BiMap<String,String> cnames)
protected static String getFqdnForDeployServer(String group, EC2Instance server, com.google.common.collect.BiMap<String,String> cnames)
protected static Environment.Builder getBuilder(String group, EC2Instance server, com.google.common.collect.BiMap<String,String> cnames)
protected static List<EC2Instance> getDeployServers(String group, List<EC2Instance> instances, com.google.common.collect.BiMap<String,String> cnames)
protected static boolean isActiveDeployServer(EC2Instance instance)
protected static <T> com.google.common.base.Optional<T> getMetadata(com.google.common.base.Optional<MetadataUrl<T>> optional)
protected static <T> T getMetadata(com.google.common.base.Optional<MetadataUrl<T>> optional, T provided)
protected static <T> T getOptionalMetadata(MetadataUrl<com.google.common.base.Optional<T>> url, T provided)
protected static <T> com.google.common.base.Optional<T> getOptionalMetadata(MetadataUrl<com.google.common.base.Optional<T>> url)
protected static <T> T getMetadata(MetadataUrl<T> url, T provided)
protected static <T> com.google.common.base.Optional<T> getMetadata(MetadataUrl<T> url)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.