public class AccountingPersistenceCouchDB
extends org.gcube.accounting.persistence.AccountingPersistenceBackend
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DB_NAME |
protected org.gcube.common.couchdb.connector.HttpCouchClient |
httpCouchClient |
| Constructor and Description |
|---|
AccountingPersistenceCouchDB() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
createItem(org.codehaus.jackson.JsonNode node,
String id) |
static org.gcube.accounting.datamodel.UsageRecord |
jsonNodeToUsageRecord(org.codehaus.jackson.JsonNode jsonNode) |
protected void |
prepareConnection(org.gcube.accounting.persistence.AccountingPersistenceConfiguration configuration) |
protected void |
reallyAccount(org.gcube.accounting.datamodel.UsageRecord usageRecord) |
static org.codehaus.jackson.JsonNode |
usageRecordToJsonNode(org.gcube.accounting.datamodel.UsageRecord usageRecord) |
protected org.gcube.common.couchdb.connector.HttpCouchClient httpCouchClient
protected static final String DB_NAME
public void close()
throws Exception
close in class org.gcube.accounting.persistence.AccountingPersistenceBackendExceptionprotected void prepareConnection(org.gcube.accounting.persistence.AccountingPersistenceConfiguration configuration)
throws Exception
prepareConnection in class org.gcube.accounting.persistence.AccountingPersistenceBackendExceptionprotected void createItem(org.codehaus.jackson.JsonNode node,
String id)
throws Exception
Exceptionprotected void reallyAccount(org.gcube.accounting.datamodel.UsageRecord usageRecord)
throws Exception
reallyAccount in class org.gcube.accounting.persistence.AccountingPersistenceBackendExceptionpublic static org.codehaus.jackson.JsonNode usageRecordToJsonNode(org.gcube.accounting.datamodel.UsageRecord usageRecord)
throws Exception
ExceptionCopyright © 2015. All Rights Reserved.