访问阿里云的Jclouds组件库aliyun-Jclouds.zip
aliyun-Jclouds访问阿里云服务的 Jclouds 组件库 Maven<dependencies> <dependency> <groupId>io.github.aliyun-beta</groupId> <artifactId>aliyun-ecs</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>io.github.aliyun-beta</groupId> <artifactId>aliyun-oss</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>io.github.aliyun-beta</groupId> <artifactId>aliyun-slb</artifactId> <version>1.0.0</version> </dependency> </dependencies> Usage ComputeServiceComputeService computeService; String provider = "aliyun-ecs"; String key = "Your AccessKey"; String secret = "Your AccessKeySecret"; ComputeServiceContext context = ContextBuilder .newBuilder(provider) .credentials(key, secret) .buildView(ComputeServiceContext.class); computeService = context.getComputeService(); BlobStoreBlobStore blobStore; String provider = "aliyun-oss"; String key = "Your AccessKey"; String secret = "Your AccessKeySecret"; BlobStoreContext context = ContextBuilder .newBuilder(provider) .credentials(key, secret) .buildView(BlobStoreContext.class); blobStore = context.getBlobStore(); LoadBalancerServiceLoadBalancerService loadBalancerService; String provider = "aliyun-slb"; String key = "Your AccessKey"; String secret = "Your AccessKeySecret"; LoadBalancerServiceContext context = ContextBuilder .newBuilder(provider) .credentials(key, secret) .buildView(LoadBalancerServiceContext.class); loadBalancerService = context.getLoadBalancerService(); Buildmvn package -DskipTests 标签:阿里云
- 1
- 粉丝: 436
- 资源: 1万+
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助