Constructor and Description |
---|
Instances() |
Modifier and Type | Method and Description |
---|---|
protected static EC2Instance |
convert(com.amazonaws.services.ec2.model.Instance instance) |
protected static List<EC2Instance> |
convert(List<com.amazonaws.services.ec2.model.Instance> instances) |
protected static File |
getCacheFile(String account) |
static SortedMap<String,List<EC2Instance>> |
getInstances(boolean refresh)
Produces a map containing all EC2 server instances for all Kuali accounts.
|
protected static List<EC2Instance> |
getInstances(String account,
boolean refresh) |
protected static com.google.common.base.Optional<com.amazonaws.services.ec2.model.Tag> |
getTag(com.amazonaws.services.ec2.model.Instance instance,
String key) |
protected static List<EC2Tag> |
getTags(com.amazonaws.services.ec2.model.Instance instance) |
protected static com.google.common.base.Optional<String> |
getTagValue(com.amazonaws.services.ec2.model.Instance instance,
String tagName) |
protected static List<EC2Instance> |
load(File file) |
static List<EC2Instance> |
queryAmazon(com.amazonaws.auth.AWSCredentials creds) |
protected static void |
store(File file,
List<EC2Instance> instances) |
protected static void |
store(File file,
List<String> lines,
String encoding) |
static void |
updateTag(String account,
String key,
String value,
org.kuali.common.aws.ec2.api.EC2Service service) |
static void |
updateTags(String account) |
public Instances()
public static SortedMap<String,List<EC2Instance>> getInstances(boolean refresh)
public static void updateTags(String account)
public static void updateTag(String account, String key, String value, org.kuali.common.aws.ec2.api.EC2Service service)
protected static List<EC2Instance> getInstances(String account, boolean refresh)
protected static File getCacheFile(String account)
protected static List<EC2Instance> load(File file)
public static List<EC2Instance> queryAmazon(com.amazonaws.auth.AWSCredentials creds)
protected static void store(File file, List<EC2Instance> instances)
protected static List<EC2Instance> convert(List<com.amazonaws.services.ec2.model.Instance> instances)
protected static EC2Instance convert(com.amazonaws.services.ec2.model.Instance instance)
protected static com.google.common.base.Optional<String> getTagValue(com.amazonaws.services.ec2.model.Instance instance, String tagName)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.