initialized storage-manager-client with backendType option

This commit is contained in:
Roberto Cirillo 2021-09-02 15:44:35 +02:00
parent 5fbf3e3091
commit 4e9354930c
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import org.apache.http.HttpStatus;
import org.gcube.contentmanagement.blobstorage.resource.MyFile;
import org.gcube.contentmanagement.blobstorage.service.IClient;
import org.gcube.contentmanager.storageclient.wrapper.AccessType;
import org.gcube.contentmanager.storageclient.wrapper.BackendType;
import org.gcube.contentmanager.storageclient.wrapper.MemoryType;
import org.gcube.contentmanager.storageclient.wrapper.StorageClient;
import org.gcube.datatransfer.resolver.ConstantsResolver;
@ -352,7 +353,7 @@ public class StorageIDResolver {
StorageClient client;
if(memory==null)
memory=MemoryType.PERSISTENT;
client=new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), STORAGEID_RESOLVER, AccessType.PUBLIC, memory);
client=new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), STORAGEID_RESOLVER, AccessType.PUBLIC, memory, BackendType.MongoDB);
return new StorageClientInstance(client, memory, storageId);
}