public final class PageBlobURL extends BlobURL
ContainerURL object. This class does not hold any state about a particular blob but is instead a convenient
way of sending off appropriate requests to the resource on the service. Please refer to the
Azure Docs
for more information.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PUT_PAGES_BYTES
Indicates the maximum number of bytes that may be sent in a call to putPage.
|
static int |
PAGE_BYTES
Indicates the number of bytes in a page.
|
storageClient| Constructor and Description |
|---|
PageBlobURL(URL url,
com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a
PageBlobURL object pointing to the account specified by the URL and using the provided
pipeline to make HTTP requests. |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<PageBlobClearPagesResponse> |
clearPages(PageRange pageRange,
PageBlobAccessConditions pageBlobAccessConditions,
com.microsoft.rest.v2.Context context)
Frees the specified pages from the page blob.
|
io.reactivex.Single<PageBlobCopyIncrementalResponse> |
copyIncremental(URL source,
String snapshot,
ModifiedAccessConditions modifiedAccessConditions,
com.microsoft.rest.v2.Context context)
Begins an operation to start an incremental copy from one page blob's snapshot to this page
blob.
|
io.reactivex.Single<PageBlobCreateResponse> |
create(long size,
Long sequenceNumber,
BlobHTTPHeaders headers,
Metadata metadata,
BlobAccessConditions accessConditions,
com.microsoft.rest.v2.Context context)
Creates a page blob of the specified length.
|
io.reactivex.Single<PageBlobGetPageRangesResponse> |
getPageRanges(BlobRange blobRange,
BlobAccessConditions accessConditions,
com.microsoft.rest.v2.Context context)
Returns the list of valid page ranges for a page blob or snapshot of a page blob.
|
io.reactivex.Single<PageBlobGetPageRangesDiffResponse> |
getPageRangesDiff(BlobRange blobRange,
String prevSnapshot,
BlobAccessConditions accessConditions,
com.microsoft.rest.v2.Context context)
Gets the collection of page ranges that differ between a specified snapshot and this page blob.
|
io.reactivex.Single<PageBlobResizeResponse> |
resize(long size,
BlobAccessConditions accessConditions,
com.microsoft.rest.v2.Context context)
Resizes the page blob to the specified size (which must be a multiple of 512).
|
io.reactivex.Single<PageBlobUpdateSequenceNumberResponse> |
updateSequenceNumber(SequenceNumberActionType action,
Long sequenceNumber,
BlobAccessConditions accessConditions,
com.microsoft.rest.v2.Context context)
Sets the page blob's sequence number.
|
io.reactivex.Single<PageBlobUploadPagesResponse> |
uploadPages(PageRange pageRange,
io.reactivex.Flowable<ByteBuffer> body,
PageBlobAccessConditions pageBlobAccessConditions,
com.microsoft.rest.v2.Context context)
Writes 1 or more pages to the page blob.
|
PageBlobURL |
withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a new
PageBlobURL with the given pipeline. |
PageBlobURL |
withSnapshot(String snapshot)
Creates a new
PageBlobURL with the given snapshot. |
abortCopyFromURL, acquireLease, breakLease, changeLease, createSnapshot, delete, download, getAccountInfo, getProperties, releaseLease, renewLease, setHTTPHeaders, setMetadata, setTier, startCopyFromURL, toAppendBlobURL, toBlockBlobURL, toPageBlobURL, undeleteappendToURLPath, createPipeline, toString, toURLpublic static final int PAGE_BYTES
public static final int MAX_PUT_PAGES_BYTES
public PageBlobURL(URL url, com.microsoft.rest.v2.http.HttpPipeline pipeline)
PageBlobURL object pointing to the account specified by the URL and using the provided
pipeline to make HTTP requests.url - A URL to an Azure Storage page blob.pipeline - A HttpPipeline which configures the behavior of HTTP exchanges. Please refer to the createPipeline
method on StorageURL for more information.public PageBlobURL withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
PageBlobURL with the given pipeline.withPipeline in class BlobURLpipeline - A HttpPipeline object to set.PageBlobURL object with the given pipeline.public PageBlobURL withSnapshot(String snapshot) throws MalformedURLException, UnknownHostException
PageBlobURL with the given snapshot.withSnapshot in class BlobURLsnapshot - A String of the snapshot id.PageBlobURL object with the given pipeline.MalformedURLException - Appending the specified snapshot produced an invalid URL.UnknownHostException - If the url contains an improperly formatted ipaddress or unknown host address.public io.reactivex.Single<PageBlobCreateResponse> create(long size, Long sequenceNumber, BlobHTTPHeaders headers, Metadata metadata, BlobAccessConditions accessConditions, com.microsoft.rest.v2.Context context)
size - Specifies the maximum size for the page blob, up to 8 TB. The page blob size must be aligned to a
512-byte boundary.sequenceNumber - A user-controlled value that you can use to track requests. The value of the sequence number must be
between 0 and 2^63 - 1.The default value is 0.headers - BlobHTTPHeadersmetadata - MetadataaccessConditions - BlobAccessConditionscontext - Context offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE or null. Each context object is
immutable. The withContext with data method creates a new Context object that refers to its
parent, forming a linked list.public io.reactivex.Single<PageBlobUploadPagesResponse> uploadPages(PageRange pageRange, io.reactivex.Flowable<ByteBuffer> body, PageBlobAccessConditions pageBlobAccessConditions, com.microsoft.rest.v2.Context context)
Flowable must produce the same data each time it is subscribed to.pageRange - A PageRange object. Given that pages must be aligned with 512-byte boundaries, the start offset must
be a modulus of 512 and the end offset must be a modulus of 512 - 1. Examples of valid byte ranges are
0-511, 512-1023, etc.body - The data to upload. Note that this Flowable must be replayable if retries are enabled
(the default). In other words, the Flowable must produce the same data each time it is subscribed to.pageBlobAccessConditions - PageBlobAccessConditionscontext - Context offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE or null. Each context object is
immutable. The withContext with data method creates a new Context object that refers to its
parent, forming a linked list.public io.reactivex.Single<PageBlobClearPagesResponse> clearPages(PageRange pageRange, PageBlobAccessConditions pageBlobAccessConditions, com.microsoft.rest.v2.Context context)
pageRange - A PageRange object. Given that pages must be aligned with 512-byte boundaries, the start offset must
be a modulus of 512 and the end offset must be a modulus of 512 - 1. Examples of valid byte ranges are
0-511, 512-1023, etc.context - Context offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE or null. Each context object is
immutable. The withContext with data method creates a new Context object that refers to its
parent, forming a linked list.pageBlobAccessConditions - PageBlobAccessConditionspublic io.reactivex.Single<PageBlobGetPageRangesResponse> getPageRanges(BlobRange blobRange, BlobAccessConditions accessConditions, com.microsoft.rest.v2.Context context)
blobRange - BlobRangeaccessConditions - BlobAccessConditionscontext - Context offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE or null. Each context object is
immutable. The withContext with data method creates a new Context object that refers to its
parent, forming a linked list.public io.reactivex.Single<PageBlobGetPageRangesDiffResponse> getPageRangesDiff(BlobRange blobRange, String prevSnapshot, BlobAccessConditions accessConditions, com.microsoft.rest.v2.Context context)
blobRange - BlobRangeprevSnapshot - Specifies that the response will contain only pages that were changed between target blob and previous
snapshot. Changed pages include both updated and cleared pages. The target
blob may be a snapshot, as long as the snapshot specified by prevsnapshot is the older of the two.accessConditions - BlobAccessConditionscontext - Context offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE or null. Each context object is
immutable. The withContext with data method creates a new Context object that refers to its
parent, forming a linked list.public io.reactivex.Single<PageBlobResizeResponse> resize(long size, BlobAccessConditions accessConditions, com.microsoft.rest.v2.Context context)
size - Resizes a page blob to the specified size. If the specified value is less than the current size of the
blob, then all pages above the specified value are cleared.accessConditions - BlobAccessConditionscontext - Context offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE or null. Each context object is
immutable. The withContext with data method creates a new Context object that refers to its
parent, forming a linked list.public io.reactivex.Single<PageBlobUpdateSequenceNumberResponse> updateSequenceNumber(SequenceNumberActionType action, Long sequenceNumber, BlobAccessConditions accessConditions, com.microsoft.rest.v2.Context context)
action - Indicates how the service should modify the blob's sequence number.sequenceNumber - The blob's sequence number. The sequence number is a user-controlled property that you can use to track
requests and manage concurrency issues.accessConditions - BlobAccessConditionscontext - Context offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE or null. Each context object is
immutable. The withContext with data method creates a new Context object that refers to its
parent, forming a linked list.public io.reactivex.Single<PageBlobCopyIncrementalResponse> copyIncremental(URL source, String snapshot, ModifiedAccessConditions modifiedAccessConditions, com.microsoft.rest.v2.Context context)
source - The source page blob.snapshot - The snapshot on the copy source.modifiedAccessConditions - ModifiedAccessConditionscontext - Context offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE or null. Each context object is
immutable. The withContext with data method creates a new Context object that refers to its
parent, forming a linked list.This documentation was released into the public domain.