Class AAzureCloudDirectory
java.lang.Object
com.activeviam.cloud.common.api.entity.impl.ACloudDirectory<IAzureEntity>
com.activeviam.cloud.azure.api.storage.entity.impl.AAzureCloudDirectory
- All Implemented Interfaces:
IAzureCloudDirectory,ICloudDirectory<IAzureEntity>
- Direct Known Subclasses:
AzureCloudDirectory,AzureEncryptedCloudDirectory
public abstract class AAzureCloudDirectory
extends ACloudDirectory<IAzureEntity>
implements IAzureCloudDirectory
Wrapper on an Azure Storage's directory.
- Author:
- ActiveViam
-
Field Summary
Fields inherited from interface com.activeviam.cloud.common.api.entity.ICloudDirectory
CLOUD_FILE_SEPARATOR -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates the directory if it does not exist.booleangetAppendBlob(String name) Retrieves theAppendBlobClientlocated inside this directory.getBlockBlob(String name) Gets theBlockBlobClientlocated inside this directory.com.azure.storage.blob.BlobContainerClientGets the container of this directory.Gets the entity located inside this directory.getPageBlob(String name) Gets thePageBlobClientlocated inside this directory.getSubDirectory(String name) Gets the directory located inside this directory.inthashCode()Gets the subdirectories in this directory.listEntities(boolean recursive) Retrieves the paths of the entities in this directory.toString()Methods inherited from class com.activeviam.cloud.common.api.entity.impl.ACloudDirectory
getPrefixMethods inherited from interface com.activeviam.cloud.common.api.entity.ICloudDirectory
getPrefix
-
Method Details
-
createIfNotExist
public void createIfNotExist()Description copied from interface:ICloudDirectoryCreates the directory if it does not exist.- Specified by:
createIfNotExistin interfaceICloudDirectory<IAzureEntity>
-
listEntities
Description copied from interface:ICloudDirectoryRetrieves the paths of the entities in this directory.- Specified by:
listEntitiesin interfaceICloudDirectory<IAzureEntity>- Parameters:
recursive- to retrieve also the entities in the subdirectories- Returns:
- the paths of the entities contained in this directory
-
listDirectories
Description copied from interface:ICloudDirectoryGets the subdirectories in this directory.For example, consider the following object:
- foo/bar/baz
- foo/bar/bash
- foo/boom/bang
- foo/bor/bir/bur
- faa/boo
Calling this method on
foo/will return:- foo/bar/
- foo/boom/
- foo/bor/
- Specified by:
listDirectoriesin interfaceICloudDirectory<IAzureEntity>- Returns:
- the subdirectories
-
getSubDirectory
Description copied from interface:ICloudDirectoryGets the directory located inside this directory.- Specified by:
getSubDirectoryin interfaceIAzureCloudDirectory- Specified by:
getSubDirectoryin interfaceICloudDirectory<IAzureEntity>- Parameters:
name- the name of the child directory- Returns:
- the directory
-
getEntity
Description copied from interface:ICloudDirectoryGets the entity located inside this directory.- Specified by:
getEntityin interfaceIAzureCloudDirectory- Specified by:
getEntityin interfaceICloudDirectory<IAzureEntity>- Parameters:
name- the name of the child entity- Returns:
- the path of the entity
-
getAppendBlob
Description copied from interface:IAzureCloudDirectoryRetrieves theAppendBlobClientlocated inside this directory.- Specified by:
getAppendBlobin interfaceIAzureCloudDirectory- Parameters:
name- the name of the child entity- Returns:
- the path of the entity
- See Also:
-
getBlockBlob
Description copied from interface:IAzureCloudDirectoryGets theBlockBlobClientlocated inside this directory.- Specified by:
getBlockBlobin interfaceIAzureCloudDirectory- Parameters:
name- the name of the child entity- Returns:
- the path of the entity
- See Also:
-
getPageBlob
Description copied from interface:IAzureCloudDirectoryGets thePageBlobClientlocated inside this directory.- Specified by:
getPageBlobin interfaceIAzureCloudDirectory- Parameters:
name- the name of the child entity- Returns:
- the path of the entity
- See Also:
-
getContainer
public com.azure.storage.blob.BlobContainerClient getContainer()Gets the container of this directory.- Returns:
- the container
-
hashCode
public int hashCode()- Overrides:
hashCodein classACloudDirectory<IAzureEntity>
-
equals
- Overrides:
equalsin classACloudDirectory<IAzureEntity>
-
toString
- Overrides:
toStringin classACloudDirectory<IAzureEntity>
-