/** * 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)); }
/** * 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)); }
name = service.toString().toLowerCase(Locale.US) + "/" + hourFormat.format(start.getTime()) + "00/000001.log"; blockBlob = container.getBlockBlobReference(name); blockBlob.upload(getRandomDataStream(1), 1, null, null, null); name = service.toString().toLowerCase(Locale.US) + "/" + hourFormat.format(start.getTime()) + "00/000001.log"; blockBlob = container.getBlockBlobReference(name);