public final class SimpleDBConfigSource extends AbstractConfigSource
initialize(String, String)
will query the SimpleDB
domain "PriamProperties" for any potential configurations. The domain is set up to support
multiple different clusters; this is done by using amazon's auto scaling groups (ASG).
Schema
Constructor and Description |
---|
SimpleDBConfigSource(ICredential provider) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String key)
Get a String associated with the given configuration key.
|
void |
initialize(java.lang.String asgName,
java.lang.String region)
Must be called before any other method.
|
void |
set(java.lang.String key,
java.lang.String value)
Set the value for the given key.
|
int |
size()
A non-negative integer indicating a count of elements.
|
@Inject public SimpleDBConfigSource(ICredential provider)
public void initialize(java.lang.String asgName, java.lang.String region)
IConfigSource
initialize
in interface IConfigSource
initialize
in class AbstractConfigSource
public int size()
IConfigSource
public java.lang.String get(java.lang.String key)
IConfigSource
key
- to look up value.public void set(java.lang.String key, java.lang.String value)
IConfigSource
key
- to set value for.value
- to set.