public class MongoStorage extends Storage
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_AGENT_ID |
static String |
SET_MODIFIER |
| Constructor and Description |
|---|
MongoStorage(StartupConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAgentInformation(AgentInformation agentInfo) |
ConnectionKey |
createConnectionKey(Category category) |
Chunk |
find(Chunk query) |
Cursor |
findAll(Chunk query) |
Cursor |
findAllFromCategory(Category category) |
String |
getBackendConfig(String backendName,
String configurationKey) |
Connection |
getConnection() |
long |
getCount(Category category) |
void |
purge()
Drop all data related to the currently running agent.
|
void |
putChunk(Chunk chunk) |
void |
removeAgentInformation() |
void |
setAgentId(UUID agentId) |
void |
updateAgentInformation(AgentInformation agentInfo) |
void |
updateChunk(Chunk chunk) |
registerCategorypublic static final String KEY_AGENT_ID
public static final String SET_MODIFIER
public MongoStorage(StartupConfiguration conf)
public Connection getConnection()
getConnection in class Storagepublic void setAgentId(UUID agentId)
setAgentId in class Storagepublic void updateChunk(Chunk chunk)
updateChunk in class Storagepublic void purge()
Storagepublic ConnectionKey createConnectionKey(Category category)
createConnectionKey in class Storagepublic Cursor findAllFromCategory(Category category)
findAllFromCategory in class Storagepublic void addAgentInformation(AgentInformation agentInfo)
addAgentInformation in class Storagepublic void updateAgentInformation(AgentInformation agentInfo)
updateAgentInformation in class Storagepublic void removeAgentInformation()
removeAgentInformation in class Storagepublic String getBackendConfig(String backendName, String configurationKey)
getBackendConfig in class Storagenull if the value is invalid or missingCopyright © 2012. All Rights Reserved.