Class PersistenceAccountingService
- java.lang.Object
-
- org.gcube.documentstore.persistence.PersistenceBackend
-
- org.gcube.documentstore.persistence.PersistenceAccountingService
-
public class PersistenceAccountingService extends org.gcube.documentstore.persistence.PersistenceBackend- Author:
- Alessandro Pieve (ISTI - CNR) alessandro.pieve@isti.cnr.it, Luca Frosini (ISTI - CNR) luca.frosini@isti.cnr.it
-
-
Field Summary
Fields Modifier and Type Field Description static StringPATH_SERVICE_INSERT_ACCOUNTINGstatic StringSERVICE_CLASSstatic StringSERVICE_ENTRY_NAMEstatic StringSERVICE_NAMEstatic StringURL_PROPERTY_KEY
-
Constructor Summary
Constructors Constructor Description PersistenceAccountingService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccountWithFallback(org.gcube.documentstore.records.Record... records)protected voidclean()voidclose()protected voidcloseConnection()protected static voidforceURL(String url)booleanisConnectionActive()protected voidopenConnection()protected voidprepareConnection(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration)protected voidreallyAccount(org.gcube.documentstore.records.Record record)protected voidsend(org.gcube.documentstore.records.Record... records)
-
-
-
Field Detail
-
PATH_SERVICE_INSERT_ACCOUNTING
public static final String PATH_SERVICE_INSERT_ACCOUNTING
- See Also:
- Constant Field Values
-
URL_PROPERTY_KEY
public static final String URL_PROPERTY_KEY
- See Also:
- Constant Field Values
-
SERVICE_CLASS
public static final String SERVICE_CLASS
- See Also:
- Constant Field Values
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_ENTRY_NAME
public static final String SERVICE_ENTRY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
forceURL
protected static void forceURL(String url)
-
prepareConnection
protected void prepareConnection(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration) throws Exception- Specified by:
prepareConnectionin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
send
protected void send(org.gcube.documentstore.records.Record... records) throws Exception- Throws:
Exception
-
reallyAccount
protected void reallyAccount(org.gcube.documentstore.records.Record record) throws Exception- Specified by:
reallyAccountin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
accountWithFallback
protected void accountWithFallback(org.gcube.documentstore.records.Record... records) throws Exception- Overrides:
accountWithFallbackin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
close
public void close() throws Exception- Overrides:
closein classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
openConnection
protected void openConnection() throws Exception- Specified by:
openConnectionin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
closeConnection
protected void closeConnection() throws Exception- Specified by:
closeConnectionin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
isConnectionActive
public boolean isConnectionActive() throws Exception- Specified by:
isConnectionActivein classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
-