当前位置: 首页>>代码示例>>Java>>正文


Java CloudBlobDirectory类代码示例

本文整理汇总了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;未经允许,请勿转载。