Implemented isConnectionActive() added in PersistenceBackend
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib-no-insert@150547 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
479622a159
commit
a23613b659
|
@ -1,7 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE xml>
|
||||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.accounting.accounting-lib-persistence-no-insert.1-0-0" date="${buildDate}">
|
||||
<Changeset component="org.gcube.accounting.accounting-lib-persistence-no-insert.1-1-0" date="${buildDate}">
|
||||
<Change>Implemented isConnectionActive() added in PersistenceBackend</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.accounting.accounting-lib-persistence-no-insert.1-0-0" date="2017-06-07">
|
||||
<Change>First Release</Change>
|
||||
</Changeset>
|
||||
</ReleaseNotes>
|
22
pom.xml
22
pom.xml
|
@ -8,9 +8,9 @@
|
|||
</parent>
|
||||
<groupId>org.gcube.data.publishing</groupId>
|
||||
<artifactId>document-store-lib-no-insert</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<name>Document Store No Connector</name>
|
||||
<description>Document Store no wirte record</description>
|
||||
<version>1.1.0-SNAPSHOT</version>
|
||||
<name>Document Store No Insert</name>
|
||||
<description>This library is used to discard all accounted record. It just do nothing.</description>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
@ -18,6 +18,19 @@
|
|||
<serviceClass>DataPublishing</serviceClass>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>gcube-bom</artifactId>
|
||||
<version>LATEST</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
|
||||
<scm>
|
||||
<connection>scm:https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/${project.artifactId}</connection>
|
||||
<developerConnection>scm:https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/${project.artifactId}</developerConnection>
|
||||
|
@ -28,15 +41,12 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.data.publishing</groupId>
|
||||
<artifactId>document-store-lib</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.7.5</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Test Dependency -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
|
|
|
@ -13,53 +13,46 @@ import org.slf4j.LoggerFactory;
|
|||
*/
|
||||
public class PersistenceNoInsert extends PersistenceBackend {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PersistenceNoInsert.class);
|
||||
|
||||
private static final Logger logger = LoggerFactory
|
||||
.getLogger(PersistenceNoInsert.class);
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void prepareConnection(PersistenceBackendConfiguration configuration) throws Exception {
|
||||
logger.trace("PersistenceNoInsert prepareConnection" );
|
||||
logger.trace("prepareConnection()");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void openConnection() throws Exception {
|
||||
logger.trace("PersistenceNoInsert openConnection" );
|
||||
|
||||
logger.trace("openConnection()");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void reallyAccount(Record record) throws Exception {
|
||||
logger.trace("PersistenceNoInsert reallyAccount" );
|
||||
protected void reallyAccount(Record record) throws Exception {
|
||||
logger.trace("reallyAccount()");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void accountWithFallback(Record... records) throws Exception {
|
||||
logger.trace("accountWithFallback()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws Exception {
|
||||
logger.trace("PersistenceNoInsert close" );
|
||||
|
||||
logger.trace("close()");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void closeAndClean() throws Exception {
|
||||
logger.trace("PersistenceNoInsert closeAndClean" );
|
||||
logger.trace("closeAndClean()");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void closeConnection() throws Exception {
|
||||
logger.trace("PersistenceNoInsert closeConnection" );
|
||||
logger.trace("closeConnection()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isConnectionActive() throws Exception {
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue