Package com.microsoft.windowsazure.services.blob.models

Examples of com.microsoft.windowsazure.services.blob.models.ListBlobBlocksOptions


                new ByteArrayInputStream(new byte[512]));
        service.createBlobBlock(container, blob, "125",
                new ByteArrayInputStream(new byte[195]));

        ListBlobBlocksResult result = service.listBlobBlocks(container, blob,
                new ListBlobBlocksOptions().setCommittedList(true)
                        .setUncommittedList(true));

        // Assert
        assertNotNull(result);
        assertNotNull(result.getLastModified());
View Full Code Here


                new ByteArrayInputStream(new byte[512]));
        service.createBlobBlock(container, blob, "125",
                new ByteArrayInputStream(new byte[195]));

        ListBlobBlocksResult result1 = service.listBlobBlocks(container, blob,
                new ListBlobBlocksOptions().setCommittedList(true)
                        .setUncommittedList(true));
        ListBlobBlocksResult result2 = service.listBlobBlocks(container, blob,
                new ListBlobBlocksOptions().setCommittedList(true));
        ListBlobBlocksResult result3 = service.listBlobBlocks(container, blob,
                new ListBlobBlocksOptions().setUncommittedList(true));

        // Assert
        assertEquals(1, result1.getCommittedBlocks().size());
        assertEquals(2, result1.getUncommittedBlocks().size());
View Full Code Here

        BlockList blockList = new BlockList();
        blockList.addUncommittedEntry(blockId1).addLatestEntry(blockId3);
        service.commitBlobBlocks(container, blob, blockList);

        ListBlobBlocksResult result = service.listBlobBlocks(container, blob,
                new ListBlobBlocksOptions().setCommittedList(true)
                        .setUncommittedList(true));

        // Assert
        assertNotNull(result);
        assertNotNull(result.getLastModified());
View Full Code Here

    }

    @Override
    public ListBlobBlocksResult listBlobBlocks(String container, String blob)
            throws ServiceException {
        return listBlobBlocks(container, blob, new ListBlobBlocksOptions());
    }
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.blob.models.ListBlobBlocksOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.