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)
Frees the specified pages from the page blob.
|
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)
Begins an operation to start an incremental copy from one page blob's snapshot to this 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)
Creates a page blob of the specified length.
|
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)
Returns the list of valid page ranges for a page blob or snapshot of a page blob.
|
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)
Gets the collection of page ranges that differ between a specified snapshot and this 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)
Resizes the page blob to the specified size (which must be a multiple of 512).
|
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)
Sets the page blob's sequence number.
|
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)
Writes 1 or more pages to the page blob.
|
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.
|
io.reactivex.Single<PageBlobUploadPagesFromURLResponse> |
uploadPagesFromURL(PageRange range,
URL sourceURL,
Long sourceOffset)
Writes 1 or more pages from the source page blob to this page blob.
|
io.reactivex.Single<PageBlobUploadPagesFromURLResponse> |
uploadPagesFromURL(PageRange range,
URL sourceURL,
Long sourceOffset,
byte[] sourceContentMD5,
PageBlobAccessConditions destAccessConditions,
SourceModifiedAccessConditions sourceAccessConditions,
com.microsoft.rest.v2.Context context)
Writes 1 or more pages from the source page blob to this 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, abortCopyFromURL, acquireLease, acquireLease, breakLease, breakLease, changeLease, changeLease, createSnapshot, createSnapshot, delete, delete, download, download, getAccountInfo, getAccountInfo, getProperties, getProperties, releaseLease, releaseLease, renewLease, renewLease, setHTTPHeaders, setHTTPHeaders, setMetadata, setMetadata, setTier, setTier, startCopyFromURL, startCopyFromURL, syncCopyFromURL, syncCopyFromURL, toAppendBlobURL, toBlockBlobURL, toPageBlobURL, undelete, undelete
appendToURLPath, createPipeline, createPipeline, createPipeline, createPipeline, toString, toURL
public 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
StorageURL.createPipeline(ICredentials, PipelineOptions)
for more information.public PageBlobURL withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
PageBlobURL
with the given pipeline.withPipeline
in class BlobURL
pipeline
- 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 BlobURL
snapshot
- 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)
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.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
- BlobHTTPHeaders
metadata
- Metadata
accessConditions
- BlobAccessConditions
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.public io.reactivex.Single<PageBlobUploadPagesResponse> uploadPages(PageRange pageRange, io.reactivex.Flowable<ByteBuffer> body)
Note that the data passed 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.
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.public io.reactivex.Single<PageBlobUploadPagesResponse> uploadPages(PageRange pageRange, io.reactivex.Flowable<ByteBuffer> body, PageBlobAccessConditions pageBlobAccessConditions, com.microsoft.rest.v2.Context context)
Note that the data passed 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.
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
- PageBlobAccessConditions
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.public io.reactivex.Single<PageBlobUploadPagesFromURLResponse> uploadPagesFromURL(PageRange range, URL sourceURL, Long sourceOffset)
range
- 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.sourceURL
- The url to the blob that will be the source of the copy. A source blob in the same storage account can be
authenticated via Shared Key. However, if the source is a blob in another account, the source blob must
either be public or must be authenticated via a shared access signature. If the source blob is public, no
authentication is required to perform the operation.sourceOffset
- The source offset to copy from. Pass null or 0 to copy from the beginning of source page blob.public io.reactivex.Single<PageBlobUploadPagesFromURLResponse> uploadPagesFromURL(PageRange range, URL sourceURL, Long sourceOffset, byte[] sourceContentMD5, PageBlobAccessConditions destAccessConditions, SourceModifiedAccessConditions sourceAccessConditions, com.microsoft.rest.v2.Context context)
range
- The destination PageRange
range. 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.sourceURL
- The url to the blob that will be the source of the copy. A source blob in the same storage account can be
authenticated via Shared Key. However, if the source is a blob in another account, the source blob must
either be public or must be authenticated via a shared access signature. If the source blob is public, no
authentication is required to perform the operation.sourceOffset
- The source offset to copy from. Pass null or 0 to copy from the beginning of source blob.sourceContentMD5
- An MD5 hash of the block content from the source blob. If specified, the service will calculate the MD5
of the received data and fail the request if it does not match the provided MD5.destAccessConditions
- PageBlobAccessConditions
sourceAccessConditions
- SourceModifiedAccessConditions
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.public io.reactivex.Single<PageBlobClearPagesResponse> clearPages(PageRange pageRange)
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.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
- PageBlobAccessConditions
public io.reactivex.Single<PageBlobGetPageRangesResponse> getPageRanges(BlobRange blobRange)
blobRange
- BlobRange
public io.reactivex.Single<PageBlobGetPageRangesResponse> getPageRanges(BlobRange blobRange, BlobAccessConditions accessConditions, com.microsoft.rest.v2.Context context)
blobRange
- BlobRange
accessConditions
- BlobAccessConditions
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.public io.reactivex.Single<PageBlobGetPageRangesDiffResponse> getPageRangesDiff(BlobRange blobRange, String prevSnapshot)
blobRange
- BlobRange
prevSnapshot
- 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.public io.reactivex.Single<PageBlobGetPageRangesDiffResponse> getPageRangesDiff(BlobRange blobRange, String prevSnapshot, BlobAccessConditions accessConditions, com.microsoft.rest.v2.Context context)
blobRange
- BlobRange
prevSnapshot
- 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
- BlobAccessConditions
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.public io.reactivex.Single<PageBlobResizeResponse> resize(long size)
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.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
- BlobAccessConditions
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.public io.reactivex.Single<PageBlobUpdateSequenceNumberResponse> updateSequenceNumber(SequenceNumberActionType action, Long sequenceNumber)
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.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
- BlobAccessConditions
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.public io.reactivex.Single<PageBlobCopyIncrementalResponse> copyIncremental(URL source, String snapshot)
source
- The source page blob.snapshot
- The snapshot on the copy source.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
- Standard HTTP Access conditions related to the modification of data. ETag and LastModifiedTime are used
to construct conditions related to when the blob was changed relative to the given request. The request
will fail if the specified condition is not satisfied.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.Copyright © 2019 Microsoft Corporation. All rights reserved.