Class GCubeStorageBackend

  • All Implemented Interfaces:
    org.gcube.common.storagehub.model.storages.StorageBackend

    public class GCubeStorageBackend
    extends Object
    implements org.gcube.common.storagehub.model.storages.StorageBackend
    • Constructor Detail

      • GCubeStorageBackend

        protected GCubeStorageBackend()
    • Method Detail

      • download

        public InputStream download​(org.gcube.common.storagehub.model.items.nodes.Content content)
        Specified by:
        download in interface org.gcube.common.storagehub.model.storages.StorageBackend
      • getName

        public String getName()
        Specified by:
        getName in interface org.gcube.common.storagehub.model.storages.StorageBackend
      • onCopy

        public String onCopy​(org.gcube.common.storagehub.model.items.AbstractFileItem item)
        Specified by:
        onCopy in interface org.gcube.common.storagehub.model.storages.StorageBackend
      • onMove

        public String onMove​(org.gcube.common.storagehub.model.items.AbstractFileItem item)
        Specified by:
        onMove in interface org.gcube.common.storagehub.model.storages.StorageBackend
      • upload

        public org.gcube.common.storagehub.model.storages.MetaInfo upload​(InputStream stream,
                                                                          String relPath,
                                                                          String name)
        Specified by:
        upload in interface org.gcube.common.storagehub.model.storages.StorageBackend
      • onDelete

        public void onDelete​(org.gcube.common.storagehub.model.items.nodes.Content content)
        Specified by:
        onDelete in interface org.gcube.common.storagehub.model.storages.StorageBackend
      • getTotalSizeStored

        public String getTotalSizeStored()
        Specified by:
        getTotalSizeStored in interface org.gcube.common.storagehub.model.storages.StorageBackend
      • getTotalItemsCount

        public String getTotalItemsCount()
        Specified by:
        getTotalItemsCount in interface org.gcube.common.storagehub.model.storages.StorageBackend