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"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE xml>
|
<!DOCTYPE xml>
|
||||||
<ReleaseNotes>
|
<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>
|
<Change>First Release</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
</ReleaseNotes>
|
</ReleaseNotes>
|
22
pom.xml
22
pom.xml
|
@ -8,9 +8,9 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.gcube.data.publishing</groupId>
|
<groupId>org.gcube.data.publishing</groupId>
|
||||||
<artifactId>document-store-lib-no-insert</artifactId>
|
<artifactId>document-store-lib-no-insert</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.1.0-SNAPSHOT</version>
|
||||||
<name>Document Store No Connector</name>
|
<name>Document Store No Insert</name>
|
||||||
<description>Document Store no wirte record</description>
|
<description>This library is used to discard all accounted record. It just do nothing.</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
@ -18,6 +18,19 @@
|
||||||
<serviceClass>DataPublishing</serviceClass>
|
<serviceClass>DataPublishing</serviceClass>
|
||||||
</properties>
|
</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>
|
<scm>
|
||||||
<connection>scm:https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/${project.artifactId}</connection>
|
<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>
|
<developerConnection>scm:https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/${project.artifactId}</developerConnection>
|
||||||
|
@ -28,15 +41,12 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.data.publishing</groupId>
|
<groupId>org.gcube.data.publishing</groupId>
|
||||||
<artifactId>document-store-lib</artifactId>
|
<artifactId>document-store-lib</artifactId>
|
||||||
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
<version>1.7.5</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- Test Dependency -->
|
<!-- Test Dependency -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
|
|
@ -13,53 +13,46 @@ import org.slf4j.LoggerFactory;
|
||||||
*/
|
*/
|
||||||
public class PersistenceNoInsert extends PersistenceBackend {
|
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
|
@Override
|
||||||
protected void prepareConnection(PersistenceBackendConfiguration configuration) throws Exception {
|
protected void prepareConnection(PersistenceBackendConfiguration configuration) throws Exception {
|
||||||
logger.trace("PersistenceNoInsert prepareConnection" );
|
logger.trace("prepareConnection()");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void openConnection() throws Exception {
|
protected void openConnection() throws Exception {
|
||||||
logger.trace("PersistenceNoInsert openConnection" );
|
logger.trace("openConnection()");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected void reallyAccount(Record record) throws Exception {
|
protected void reallyAccount(Record record) throws Exception {
|
||||||
logger.trace("PersistenceNoInsert reallyAccount" );
|
logger.trace("reallyAccount()");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
@Override
|
||||||
* {@inheritDoc}
|
protected void accountWithFallback(Record... records) throws Exception {
|
||||||
*/
|
logger.trace("accountWithFallback()");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws Exception {
|
public void close() throws Exception {
|
||||||
logger.trace("PersistenceNoInsert close" );
|
logger.trace("close()");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void closeAndClean() throws Exception {
|
protected void closeAndClean() throws Exception {
|
||||||
logger.trace("PersistenceNoInsert closeAndClean" );
|
logger.trace("closeAndClean()");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void closeConnection() throws Exception {
|
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