public class MongoStorage extends Storage
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_AGENT_ID |
static java.lang.String |
SET_MODIFIER |
| Constructor and Description |
|---|
MongoStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAgentInformation(StartupConfiguration config,
BackendRegistry registry) |
void |
connect(java.lang.String uri) |
java.lang.String |
getBackendConfig(java.lang.String backendName,
java.lang.String configurationKey) |
void |
purge() |
protected void |
putChunkImpl(Chunk chunk) |
void |
removeAgentInformation() |
void |
setAgentId(java.util.UUID agentId) |
protected void |
updateChunkImpl(Chunk chunk) |
putChunk, registerCategory, updateChunkpublic static final java.lang.String KEY_AGENT_ID
public static final java.lang.String SET_MODIFIER
public void connect(java.lang.String uri)
throws java.net.UnknownHostException
public void setAgentId(java.util.UUID agentId)
setAgentId in class Storagepublic void addAgentInformation(StartupConfiguration config, BackendRegistry registry)
addAgentInformation in class Storagepublic void removeAgentInformation()
removeAgentInformation in class Storagepublic java.lang.String getBackendConfig(java.lang.String backendName,
java.lang.String configurationKey)
getBackendConfig in class Storagenull if the value is invalid or missingprotected void putChunkImpl(Chunk chunk)
putChunkImpl in class Storageprotected void updateChunkImpl(Chunk chunk)
updateChunkImpl in class Storage