• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java CloudBlobDirectory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.microsoft.azure.storage.blob.CloudBlobDirectory的典型用法代码示例。如果您正苦于以下问题:Java CloudBlobDirectory类的具体用法?Java CloudBlobDirectory怎么用?Java CloudBlobDirectory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CloudBlobDirectory类属于com.microsoft.azure.storage.blob包,在下文中一共展示了CloudBlobDirectory类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: next

import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public ListBlobItem next() {
  ListBlobItem unwrapped = present.next();
  if (unwrapped instanceof CloudBlobDirectory) {
    return new CloudBlobDirectoryWrapperImpl((CloudBlobDirectory) unwrapped);
  } else if (unwrapped instanceof CloudBlockBlob) {
    return new CloudBlockBlobWrapperImpl((CloudBlockBlob) unwrapped);
  } else if (unwrapped instanceof CloudPageBlob) {
    return new CloudPageBlobWrapperImpl((CloudPageBlob) unwrapped);
  } else {
    return unwrapped;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:StorageInterfaceImpl.java


示例2: getDirectoryReference

import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public CloudBlobDirectoryWrapper getDirectoryReference(String relativePath)
    throws URISyntaxException, StorageException {

  CloudBlobDirectory dir = container.getDirectoryReference(relativePath);
  return new CloudBlobDirectoryWrapperImpl(dir);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:StorageInterfaceImpl.java


示例3: LogBlobIterator

import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
public LogBlobIterator(final CloudBlobDirectory logDirectory, final Date startDate, final Date endDate,
        final EnumSet<LoggingOperations> operations, final EnumSet<BlobListingDetails> details,
        final BlobRequestOptions options, final OperationContext opContext) {
    TimeZone gmtTime = TimeZone.getTimeZone("GMT");
    HOUR_FORMAT.setTimeZone(gmtTime);
    DAY_FORMAT.setTimeZone(gmtTime);
    MONTH_FORMAT.setTimeZone(gmtTime);
    YEAR_FORMAT.setTimeZone(gmtTime);

    this.logDirectory = logDirectory;
    this.operations = operations;
    this.details = details;
    this.opContext = opContext;

    if (options == null) {
        this.options = new BlobRequestOptions();
    }
    else {
        this.options = options;
    }

    if (startDate != null) {
        this.startDate = new GregorianCalendar();
        this.startDate.setTime(startDate);
        this.startDate.add(GregorianCalendar.MINUTE, (-this.startDate.get(GregorianCalendar.MINUTE)));
        this.startDate.setTimeZone(gmtTime);
    }
    if (endDate != null) {
        this.endDate = new GregorianCalendar();
        this.endDate.setTime(endDate);
        this.endDate.setTimeZone(gmtTime);
        this.endPrefix = this.logDirectory.getPrefix() + HOUR_FORMAT.format(this.endDate.getTime());
    }
}
 
开发者ID:horizon-institute,项目名称:runspotrun-android-client,代码行数:35,代码来源:LogBlobIterator.java


示例4: LogBlobIterable

import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
protected LogBlobIterable(final CloudBlobDirectory logDirectory, final Date startTime, final Date endTime,
        final EnumSet<LoggingOperations> operations, final EnumSet<BlobListingDetails> details,
        final BlobRequestOptions options, final OperationContext opContext) {
    this.logDirectory = logDirectory;
    this.startTime = startTime;
    this.endTime = endTime;
    this.operations = operations;
    this.details = details;
    this.options = options;
    this.opContext = opContext;
}
 
开发者ID:horizon-institute,项目名称:runspotrun-android-client,代码行数:12,代码来源:LogBlobIterable.java


示例5: CloudBlobDirectoryWrapperImpl

import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
public CloudBlobDirectoryWrapperImpl(CloudBlobDirectory directory) {
  this.directory = directory;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:4,代码来源:StorageInterfaceImpl.java


示例6: getParent

import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public CloudBlobDirectory getParent() throws URISyntaxException,
    StorageException {
  return directory.getParent();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:StorageInterfaceImpl.java


示例7: getParent

import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public CloudBlobDirectory getParent() throws URISyntaxException,
    StorageException {
  return null;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:MockStorageInterface.java


示例8: getParent

import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
@Override
public CloudBlobDirectory getParent() throws URISyntaxException, StorageException {
    return null;
}
 
开发者ID:vmware,项目名称:photon-model,代码行数:5,代码来源:AzureStorageEnumerationServiceTest.java


示例9: getLogDirectory

import com.microsoft.azure.storage.blob.CloudBlobDirectory; //导入依赖的package包/类
/**
 * Gets the {@link CloudBlobDirectory} object for the logs for a specific storage service.
 * 
 * @param service
 *            A {@link StorageService} enumeration value that indicates which storage service to use.
 * @return
 *         A {@link CloudBlobDirectory} object.
 * @throws URISyntaxException
 * @throws StorageException
 */
public CloudBlobDirectory getLogDirectory(StorageService service) throws URISyntaxException, StorageException {
    Utility.assertNotNull("service", service);
    return this.blobClient.getContainerReference(this.LogContainer).getDirectoryReference(
            service.toString().toLowerCase(Locale.US));
}
 
开发者ID:horizon-institute,项目名称:runspotrun-android-client,代码行数:16,代码来源:CloudAnalyticsClient.java



注:本文中的com.microsoft.azure.storage.blob.CloudBlobDirectory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java KeyCacheKey类代码示例发布时间:2022-05-22
下一篇:
Java CreateServiceInstanceBindingRequest类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap