Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
Roberto Cirillo | 2e4e709ff8 | |
Roberto Cirillo | 89524aac9c | |
Roberto Cirillo | c252d1c5ae | |
Roberto Cirillo | ae6740cfbb | |
Roberto Cirillo | ac95563480 | |
Roberto Cirillo | 904bf0bc17 |
|
@ -1,5 +1,13 @@
|
||||||
# Changelog for storage-manager-core
|
# Changelog for storage-manager-core
|
||||||
|
|
||||||
|
## [v2.9.3-SNAPSHOT] 2022-09-19
|
||||||
|
* set java to 1.8
|
||||||
|
|
||||||
|
## [v2.9.2] 2022-09-07
|
||||||
|
* restored close() method to IClient
|
||||||
|
* add slf4j-simple dependency with test scope
|
||||||
|
* update gcube-bom to 2.0.2
|
||||||
|
|
||||||
## [v2.9.1] 2022-06-28
|
## [v2.9.1] 2022-06-28
|
||||||
* update to version 2.9.1 in order to have a fixed bom in the latest version of the range
|
* update to version 2.9.1 in order to have a fixed bom in the latest version of the range
|
||||||
|
|
||||||
|
|
18
pom.xml
18
pom.xml
|
@ -8,9 +8,11 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.gcube.contentmanagement</groupId>
|
<groupId>org.gcube.contentmanagement</groupId>
|
||||||
<artifactId>storage-manager-core</artifactId>
|
<artifactId>storage-manager-core</artifactId>
|
||||||
<version>2.9.1</version>
|
<version>2.9.3-SNAPSHOT</version>
|
||||||
<properties>
|
<properties>
|
||||||
<distroDirectory>${project.basedir}/distro</distroDirectory>
|
<distroDirectory>${project.basedir}/distro</distroDirectory>
|
||||||
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
</properties>
|
</properties>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</connection>
|
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</connection>
|
||||||
|
@ -23,7 +25,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.distribution</groupId>
|
<groupId>org.gcube.distribution</groupId>
|
||||||
<artifactId>gcube-bom</artifactId>
|
<artifactId>gcube-bom</artifactId>
|
||||||
<version>2.0.1</version>
|
<version>2.0.2</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -53,11 +55,11 @@
|
||||||
<artifactId>commons-codec</artifactId>
|
<artifactId>commons-codec</artifactId>
|
||||||
<version>1.8</version>
|
<version>1.8</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- <dependency> -->
|
<dependency>
|
||||||
<!-- <groupId>org.slf4j</groupId> -->
|
<groupId>org.slf4j</groupId>
|
||||||
<!-- <artifactId>slf4j-simple</artifactId> -->
|
<artifactId>slf4j-simple</artifactId>
|
||||||
<!-- <version>1.7.32</version> -->
|
<version>1.7.32</version>
|
||||||
<!-- <scope>test</scope> -->
|
<scope>test</scope>
|
||||||
<!-- </dependency> -->
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -209,6 +209,11 @@ public RemoteResourceComplexInfo getMetaFile();
|
||||||
*/
|
*/
|
||||||
public void forceClose();
|
public void forceClose();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* close the connections to backend storage system. Method restored for backward compatibility
|
||||||
|
*/
|
||||||
|
public void close();
|
||||||
|
|
||||||
|
|
||||||
public RemoteResource getUrl(boolean forceCreation);
|
public RemoteResource getUrl(boolean forceCreation);
|
||||||
|
|
||||||
|
|
|
@ -929,6 +929,26 @@ public class ServiceEngine implements IClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void close(){
|
||||||
|
currentOperation="close";
|
||||||
|
file.setOwner(owner);
|
||||||
|
getMyFile().setRemoteResource(REMOTE_RESOURCE.PATH);
|
||||||
|
setMyFile(file);
|
||||||
|
service.setResource(getMyFile());
|
||||||
|
service.setTypeOperation("forceclose");
|
||||||
|
try {
|
||||||
|
if(((file.getInputStream() != null) || (file.getOutputStream()!=null)) || ((file.getLocalPath() != null) || (file.getRemotePath() != null)))
|
||||||
|
service.startOperation(file,file.getRemotePath(), owner, primaryBackend, Costants.DEFAULT_CHUNK_OPTION, getContext(), isReplaceOption());
|
||||||
|
else{
|
||||||
|
logger.error("parameters incompatible ");
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (Throwable t) {
|
||||||
|
logger.error("get()", t.getCause());
|
||||||
|
throw new RemoteBackendException(" Error in "+currentOperation+" operation ", t.getCause());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getServiceClass() {
|
public String getServiceClass() {
|
||||||
|
|
Loading…
Reference in New Issue