TAILIEUCHUNG - Introducing Windows Azure- P26

Introducing Windows Azure- P26:The cloud platform is getting more and more attractive to the computing world. Today, service-oriented architecture (SOA) and aspect-oriented programming (AOP) techniques are widely used in enterprise solutions. A question an IT management team or a software development team may ask is, what is the next trend going to be? Cloud computing seems to be the right answer. | CHAPTER 3 WORKING WITH CLOUD QUEUE AND BLOB STORAGE Figure 3-11 is the diagram for the class layout. As noted above in order to make our components reusable we define a base class called AzureStorageFacade which encapsulates the account initialization function in the constructor. We subclass three classes also using the facade design pattern to wrap up all the interfaces used to access Azure basic storages table queue and blob respectively. These three subclasses are AzureStorage TableStorage and BlobStorage. In this exercise we are going to use this base class to re-engineer the blob access classes from previous exercise and leave you to apply the first two classes to all existing exercises from previous chapters or use them in future development. Figure 3-11. Class diagram for large data I O to cloud blob storage tools Listing 3-15 is the implementation of the base class AzureStorageFacade. There is only one member method Initialization defined which is used to retrieve the account information from the configuration file. Listing 3-15. Implementation ofthe Base Class AzureStorageFacade using System using namespace using using 98 CHAPTER 3 WORKING WITH CLOUD QUEUE AND BLOB STORAGE public class AzureStorageFacade protected StorageAccountInfo accountinformation protected int retry 1 protected int retryinterval 1000 public StorageAccountInfo StorageAccountInfo get return accountinformation public AzureStorageFacade InitializationStorages protected void InitializationStorages retry Retry retryInterval RetryInterval accountInformation Listing 3-16 shows the implementation of the blob facade class which encapsulates all blob storage access functions and attributes

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.