public abstract class Storage extends Object
Constructor and Description |
---|
Storage() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addAgentInformation(AgentInformation agentInfo) |
abstract ConnectionKey |
createConnectionKey(Category category) |
abstract Chunk |
find(Chunk query) |
abstract Cursor |
findAll(Chunk query) |
abstract Cursor |
findAllFromCategory(Category category) |
abstract String |
getBackendConfig(String backendName,
String configurationKey) |
abstract Connection |
getConnection() |
abstract long |
getCount(Category category) |
abstract InputStream |
loadFile(String filename) |
abstract void |
purge()
Drop all data related to the currently running agent.
|
abstract void |
putChunk(Chunk chunk) |
void |
registerCategory(Category category) |
abstract void |
removeAgentInformation() |
abstract void |
saveFile(String filename,
InputStream data) |
abstract void |
setAgentId(UUID id) |
abstract void |
updateAgentInformation(AgentInformation agentInfo) |
abstract void |
updateChunk(Chunk chunk) |
public abstract void setAgentId(UUID id)
public final void registerCategory(Category category)
public abstract Connection getConnection()
public abstract ConnectionKey createConnectionKey(Category category)
public abstract void putChunk(Chunk chunk)
public abstract void updateChunk(Chunk chunk)
public abstract void purge()
public abstract long getCount(Category category)
public abstract void addAgentInformation(AgentInformation agentInfo)
public abstract void removeAgentInformation()
public abstract void updateAgentInformation(AgentInformation agentInfo)
public abstract String getBackendConfig(String backendName, String configurationKey)
null
if the value is invalid or missingpublic abstract void saveFile(String filename, InputStream data)
public abstract InputStream loadFile(String filename)
Copyright © 2012. All Rights Reserved.