(小弟自学Azure,文中有不正确之处,请路过各位大神指正。)

  网上azure的资料较少,尤其是API,全是英文的,中文资料更是少之又少。这次由于公司项目需要使用Azure,所以对Azure的一些学习心得做下笔记,文中不正确地方请大家指正。

  Azure Blob 存储是用于存储大量非结构化对象数据(例如文本或二进制数据)的服务,这些数据可通过 HTTP 或 HTTPS 从世界各地进行访问。 可以使用 Blob 存储向外公开数据,或者私下存储应用程序数据。

  Blob 存储的常见用途包括:

    • 直接向浏览器提供图像或文档
    • 存储文件以供分布式访问
    • 对视频和音频进行流式处理
    • 存储数据以用于备份和还原、灾难恢复及存档
    • 存储数据以供本地或 Azure 托管服务执行分析

Package

com.microsoft.azure.storage.blob

Mean

blob的系统属性。

Inherited 

java.lang.Object ————> BlobProperties

Constructors 

    1. BlobProperties()
    2. BlobProperties(final BlobProperties other):复制一个已存在的blob来创建新的的实例。
    3. BlobProperties(final BlobType type):创建固定类型的blob实例

Method

    1. public Integer getAppendBlobCommittedBlockCount()、protected void setAppendBlobCommittedBlockCount(final Integer appendBlobCommittedBlockCount)

      如果blob是append blob,则获取提交的块的数量。

      2.public BlobType getBlobType()、protected void setBlobType(final BlobType blobType)

blob 类型,返回枚举值。

      3.public String getCacheControl()、public void setCacheControl(final String cacheControl)

      blob的缓存阀值。

      4.public String getContentDisposition()、public void setContentDisposition(final String contentDisposition)

      blob的内容阀值。

      5.public String getContentEncoding()、public void setContentEncoding(final String contentEncoding)

      blob编码。

      6.public String getContentLanguage()、public void setContentLanguage(final String contentLanguage)

      blob语言。

      7.public String getContentMD5()、public void setContentMD5(final String contentMD5)

      blob使用MD5加密后的值。

      8.public String getContentType()、public void setContentType(final String contentType)

      blob的内容类型值。

      9.public CopyState getCopyState()、protected void setCopyState(final CopyState copyState)

      复制状态,返回枚举值。

      10.public Date getDeletedTime()、protected void setDeletedTime(Date deletedTime)

      删除时间。

      11.public String getEtag()、protected void setEtag(final String etag)

获取blob的ETag值。ETag值是在对容器执行写操作时更新的唯一标识符。它可以被用于有条件地执行操作,提供并发控制和提高效率。AccessCondition#generateIfMatchCondition(String)和AccessCondition#generateIfNoneMatchCondition(String)方法采用ETag值,并返回可在请求中指定的AccessCondition对象。

      12.public Date getLastModified()、protected void setLastModified(final Date lastModified)

最后修改时间。

      13.public LeaseDuration getLeaseDuration()、protected void setLeaseDuration(final LeaseDuration leaseDuration)

      blob的租约持续时间,返回枚举值。

      14.public LeaseState getLeaseState()、protected void setLeaseState(final LeaseState leaseState)

      blob 的状态,返回枚举值Available, Breaking, Broken, Expired, Leased, Unspecified指的是Lease生命周期的五种状态.。其中Leased 和 Breaking属于locked状态,Expired, Broken, Available属于 unlocked。

      15.public LeaseStatus getLeaseStatus()、protected void setLeaseStatus(final LeaseStatus leaseStatus)

blob 的状态,返回枚举值Locked,UnLocked,Unspecified。您可以检查blob的锁状态以确定它当前是否具有活动锁(锁定为独占写入访问),或者是否可用于独占写入访问。

对于14与15 接口。在调用FetchAttributesAsync()之前,LeaseStatus和LeaseState的值都是Unspecified的。在调用函数之后, LeaseState是Available状态。使用AcquireLeaseAsync(),请求lease blob成功后,LeaseState的值会变成Leased。Leased状态的Blob,调用break有两种情况,Break的存在时间没有结束,会变成Breaking状态;如果break的时间结束了则转为Broken状态 。而Lease的生命期限到了,则变为Expired.

      16.public long getLength()、protected void setLength(final long length)

      blob的大小(以字节为单位)。

      17.public Long getPageBlobSequenceNumber()、protected void setPageBlobSequenceNumber(final Long pageBlobSequenceNumber)

      如果blob是一个页面blob,则获取页面blob的当前序列号。

      18.public PremiumPageBlobTier getPremiumPageBlobTier()、protected void setPremiumPageBlobTier(PremiumPageBlobTier premiumPageBlobTier)

      如果使用高级帐户,而blob是一个页面blob,则获取blob的层。

      19.public RehydrationStatus getRehydrationStatus()、protected void setRehydrationStatus(RehydrationStatus rehydrationStatus)

这个方法的意思将将archive转换成hot或cool从而能读取文档(所以读取文档前可以执行此方法转换blob层,已确保万一)。若要读取存档存储中的数据,必须先将Blob的层更改为热层或冷层,用getRehydrationStatus来获取Blob是否在热层或冷层。blob中的数据如果没有在热层或者冷层是无法读取的。创建blob的时候,如果没有指定,默认是hot层,

      20.public Integer getRemainingRetentionDays()、protected void setRemainingRetentionDays(Integer remainingRetentionDays)

      获取被删除的blob在服务中保存的天数。

      21.public StandardBlobTier getStandardBlobTier()、protected void setStandardBlobTier(StandardBlobTier standardBlobTier)

      如果使用标准帐户,而blob是块blob,则获取blob的层。

      22.public Date getTierChangeTime()、protected void setTierChangeTime(Date tierChangeTime)

      获取最后一次在blob上更改层的值。

      23.public Boolean isBlobTierInferred()、protected void setBlobTierInferred(Boolean isBlobTierInferredTier)

      用来测试getRehydrationStatus是否执行成功。

      24.public boolean isIncrementalCopy()、protected void setIncrementalCopy(boolean isIncrementalCopy)

      判断是否是blob是增量拷贝。

      25.public boolean isServerEncrypted()、protected void setServerEncrypted(boolean serverEncrypted)

      blob的服务器端加密状态。

Azure系列2.1.6 —— BlobProperties的更多相关文章

  1. 初码-Azure系列-迁移PHP应用至Azure的一些实践记录和思考

    最近客户在逐步迁移应用从阿里云到Azure,这次又轮到一个PHP+MySQL应用了,顺便也记一下流水账. 需求:迁移部署在阿里云上的ECS服务器(系列2,IO优化+2核4G+50G的SSD云盘+10M ...

  2. 初码-Azure系列-记一次MySQL数据库向Azure的迁移

    初码Azure系列文章目录 还在继续给客户迁移不同的系统到Azure,这一次是一个系统的MySQL数据库要迁移,将迁移过程记录一下 原系统环境 数据库版本:MySQL Community Editio ...

  3. 初码-Azure系列-文章目录

    系统迁移 初码-Azure系列-记一次MySQL数据库向Azure的迁移 初码-Azure系列-迁移PHP应用至Azure的一些实践记录和思考 初码-Azure系列-记一次从阿里云到Azure的迁移和 ...

  4. 初码-Azure系列-如何在控制面板中选择中文版操作系统

    之前在文章<初码-Azure系列-记一次从阿里云到Azure的迁移和部署>中说到,默认的Windows Server 2016操作系统是英文版,后来摸索出中文版的方法,如下:

  5. 初码-Azure系列-存储队列的使用与一个Azure小工具(蓝天助手)

    初码Azure系列文章目录 将消息队列技术模型简化,并打造成更适合互联网+与敏捷开发的云服务模式,好像已经是行业趋势,阿里云也在推荐使用消息服务(HTTP协议为主)而来替代消息队列(TCP协议.MQT ...

  6. 【初码干货】【Azure系列】1、再次感受Azure,体验Windows Server 2016并部署BlogEngine.NET

    上个月末,在某人的建议下,重新注册了一个1元试用账户(包含1个月期限的1500元订阅),并充值了1000元转为了正式账户,相当于1000元得到了2500的订阅,于是又一次开启了Azure之旅. 在这不 ...

  7. Azure系列2.1.9 —— CloudBlob

    (小弟自学Azure,文中有不正确之处,请路过各位大神指正.) 网上azure的资料较少,尤其是API,全是英文的,中文资料更是少之又少.这次由于公司项目需要使用Azure,所以对Azure的一些学习 ...

  8. Azure系列2.1 —— com.microsoft.azure.storage.blob

    网上azure的资料较少,尤其是API,全是英文的,中文资料更是少之又少.这次由于公司项目需要使用Azure,所以对Azure的一些学习心得做下笔记,文中不正确地方请大家指正. Azure Blob ...

  9. 初码-Azure系列-记一次从阿里云到Azure的迁移和部署

    有个客户在阿里云上,这次要迁移到Azure去,手工记一下流水账 原系统信息: 阿里云ECS单Web节点(8核16G,10000IOPS SSD云盘)+阿里云ECS单数据库节点(16核32G,15000 ...

随机推荐

  1. 基于python的Selenium使用小结

    之前介绍过基于Unittest和TestNG自动化测试框架,然而基于Web端的测试的基础框架是需要Selenium做主要支撑的,这里边给大家介绍下Web测试核心之基于Python的Selenium 一 ...

  2. 浅谈javascript的Touch事件

    js的touch事件,一般用于移动端的触屏滑动 代码如下: $(function(){ document.addEventListener("touchmove", _touch, ...

  3. UVA11400-Lighting System Design(动态规划基础)

    Problem UVA11400-Lighting System Design Accept: 654  Submit: 4654Time Limit: 3000 mSec Problem Descr ...

  4. 理解 tf.Variable、tf.get_variable以及范围命名方法tf.variable_scope、tf.name_scope

    tensorflow提供了通过变量名称来创建或者获取一个变量的机制.通过这个机制,在不同的函数中可以直接通过变量的名字来使用变量,而不需要将变量通过参数的形式到处传递. 1. tf.Variable( ...

  5. 09 python初学 (字符串)

    # 重复输出字符串 print('hello' * 2) # >>>hellohello # 字符串切片操作,最重要的!!!! print('hello'[2:]) # >&g ...

  6. mysql 性能优化思路 - mysqldumpslow /tmp/mysql-slow.log 字符集 utf-8 create database

    提高MySQL服务的性能,响应速度: 1.替换有问题的硬件:内存,CPU,磁盘 2.服务的配置参数的配置 3.SQL的优化 .服务参数的配置: 1.1 连接数,连接超时: max_connection ...

  7. git冲突Please move or remove them before you can merge

    解决Git冲突造成的Please move or remove them before you can merge git clean -d -fx ""其中x -----删除忽略 ...

  8. 很详细全部的WinDbg学习资料

    [ 分类 ]- windbg - hgy413的专栏(﹎゛Never Give Up Your Dream ..ヽ..) - CSDN博客 .

  9. EntityFramework Core并发深挖详解,一纸长文,你准备好看完了吗?

    前言 之前有关EF并发探讨过几次,但是呢,博主感觉还是有问题,为什么会觉得有问题,其实就是理解不够透彻罢了,于是在项目中都是用的存储过程或者SQL语句来实现,利用放假时间好好补补EF Core并发的问 ...

  10. MyBatis-你所不了解的sql和include

    目录 <sql> 节点的基础 <include> 节点 <sql> 节点包含的节点 一起来学习 mybatis @ 在前一篇[MyBatis动态SQL(认真看看, ...