com.atlassian.aws
Class AwsOmeCache<T>
java.lang.Object
com.atlassian.aws.AwsOmeCache<T>
- Direct Known Subclasses:
- InstanceCache, SpotRequestCache, SubnetCache, VolumeCache, VpcCache
public abstract class AwsOmeCache<T>
- extends Object
|
Constructor Summary |
AwsOmeCache(org.apache.log4j.Logger log)
|
AwsOmeCache(org.apache.log4j.Logger log,
long maximumDataAge,
TimeUnit maximumDataAgeUnit)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AwsOmeCache
public AwsOmeCache(org.apache.log4j.Logger log,
long maximumDataAge,
TimeUnit maximumDataAgeUnit)
AwsOmeCache
public AwsOmeCache(org.apache.log4j.Logger log)
describe
@NotNull
public Collection<T> describe(String... resourceIds)
- Returns a recently retrieved snapshot of resources of given type, optionally limiting them to the supplied
list.
- Returns:
- the list of all resources of given type on this account.
describe
@NotNull
public Collection<T> describe(Iterable<String> resourceIds)
describeResources
@NotNull
public Collection<T> describeResources(Iterable<? extends ResourceId<?>> resourceIds)
setMaximumStatusAgeSeconds
public void setMaximumStatusAgeSeconds(int maximumStatusAgeSeconds)
refreshAllData
protected abstract List<T> refreshAllData()
toResourceId
protected abstract String toResourceId(T resource)
onResourceLookupFailure
protected abstract void onResourceLookupFailure(String resourceId)
Copyright © 2015 Atlassian. All rights reserved.