EMMA Coverage Report (generated Mon Oct 17 05:41:20 EDT 2011)
[all classes][org.jclouds.aws.ec2]

COVERAGE SUMMARY FOR SOURCE FILE [AWSEC2ProviderMetadata.java]

nameclass, %method, %block, %line, %
AWSEC2ProviderMetadata.java100% (1/1)100% (11/11)100% (35/35)100% (11/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AWSEC2ProviderMetadata100% (1/1)100% (11/11)100% (35/35)100% (11/11)
AWSEC2ProviderMetadata (): void 100% (1/1)100% (3/3)100% (1/1)
getApiDocumentation (): URI 100% (1/1)100% (3/3)100% (1/1)
getConsole (): URI 100% (1/1)100% (3/3)100% (1/1)
getCredentialName (): String 100% (1/1)100% (2/2)100% (1/1)
getHomepage (): URI 100% (1/1)100% (3/3)100% (1/1)
getId (): String 100% (1/1)100% (2/2)100% (1/1)
getIdentityName (): String 100% (1/1)100% (2/2)100% (1/1)
getIso3166Codes (): Set 100% (1/1)100% (7/7)100% (1/1)
getLinkedServices (): Set 100% (1/1)100% (6/6)100% (1/1)
getName (): String 100% (1/1)100% (2/2)100% (1/1)
getType (): String 100% (1/1)100% (2/2)100% (1/1)

1/**
2 * Licensed to jclouds, Inc. (jclouds) under one or more
3 * contributor license agreements.  See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership.  jclouds licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License.  You may obtain a copy of the License at
9 *
10 *   http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied.  See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19package org.jclouds.aws.ec2;
20 
21import com.google.common.collect.ImmutableSet;
22 
23import java.net.URI;
24import java.util.Set;
25 
26import org.jclouds.providers.BaseProviderMetadata;
27import org.jclouds.providers.ProviderMetadata;
28 
29/**
30 * Implementation of {@ link org.jclouds.types.ProviderMetadata} for Amazon's
31 * Elastic Compute Cloud (EC2) provider.
32 *
33 * @author Jeremy Whitlock <jwhitlock@apache.org>
34 */
35public class AWSEC2ProviderMetadata extends BaseProviderMetadata {
36 
37   /**
38    * {@inheritDoc}
39    */
40   @Override
41   public String getId() {
42      return "aws-ec2";
43   }
44 
45   /**
46    * {@inheritDoc}
47    */
48   @Override
49   public String getType() {
50      return ProviderMetadata.COMPUTE_TYPE;
51   }
52 
53   /**
54    * {@inheritDoc}
55    */
56   @Override
57   public String getName() {
58      return "Amazon Elastic Compute Cloud (EC2)";
59   }
60 
61   /**
62    * {@inheritDoc}
63    */
64   @Override
65   public String getIdentityName() {
66      return "Access Key ID";
67   }
68 
69   /**
70    * {@inheritDoc}
71    */
72   @Override
73   public String getCredentialName() {
74      return "Secret Access Key";
75   }
76 
77   /**
78    * {@inheritDoc}
79    */
80   @Override
81   public URI getHomepage() {
82      return URI.create("http://aws.amazon.com/ec2/");
83   }
84 
85   /**
86    * {@inheritDoc}
87    */
88   @Override
89   public URI getConsole() {
90      return URI.create("https://console.aws.amazon.com/ec2/home");
91   }
92   /**
93    * {@inheritDoc}
94    */
95   @Override
96   public URI getApiDocumentation() {
97      return URI.create("http://docs.amazonwebservices.com/AWSEC2/latest/APIReference");
98   }
99 
100   /**
101    * {@inheritDoc}
102    */
103   @Override
104   public Set<String> getLinkedServices() {
105      return ImmutableSet.of("aws-s3", "aws-ec2", "aws-elb", "aws-simpledb");
106   }
107 
108   /**
109    * {@inheritDoc}
110    */
111   @Override
112   public Set<String> getIso3166Codes() {
113      return ImmutableSet.of("US-VA", "US-CA", "IE", "SG", "JP-13");
114   }
115 
116}

[all classes][org.jclouds.aws.ec2]
EMMA 2.0.5312 (C) Vladimir Roubtsov