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, updateChunk
public 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 Storage
public void addAgentInformation(StartupConfiguration config, BackendRegistry registry)
addAgentInformation
in class Storage
public void removeAgentInformation()
removeAgentInformation
in class Storage
public java.lang.String getBackendConfig(java.lang.String backendName, java.lang.String configurationKey)
getBackendConfig
in class Storage
null
if the value is invalid or missingprotected void putChunkImpl(Chunk chunk)
putChunkImpl
in class Storage
protected void updateChunkImpl(Chunk chunk)
updateChunkImpl
in class Storage