initialized storage-manager-client with backendType option
This commit is contained in:
parent
5fbf3e3091
commit
4e9354930c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue