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

COVERAGE SUMMARY FOR SOURCE FILE [EC2PropertiesBuilder.java]

nameclass, %method, %block, %line, %
EC2PropertiesBuilder.java100% (1/1)67%  (2/3)92%  (34/37)82%  (9/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EC2PropertiesBuilder100% (1/1)67%  (2/3)92%  (34/37)82%  (9/11)
EC2PropertiesBuilder (): void 0%   (0/1)0%   (0/3)0%   (0/2)
EC2PropertiesBuilder (Properties): void 100% (1/1)100% (4/4)100% (2/2)
defaultProperties (): Properties 100% (1/1)100% (30/30)100% (7/7)

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.ec2;
20 
21import static org.jclouds.Constants.PROPERTY_API_VERSION;
22import static org.jclouds.aws.reference.AWSConstants.PROPERTY_AUTH_TAG;
23import static org.jclouds.aws.reference.AWSConstants.PROPERTY_HEADER_TAG;
24import static org.jclouds.ec2.reference.EC2Constants.PROPERTY_EC2_AMI_OWNERS;
25import static org.jclouds.ec2.reference.EC2Constants.PROPERTY_EC2_TIMEOUT_SECURITYGROUP_PRESENT;
26 
27import java.util.Properties;
28 
29import org.jclouds.PropertiesBuilder;
30 
31/**
32 * Builds properties used in EC2 Clients
33 * 
34 * @author Adrian Cole
35 */
36public class EC2PropertiesBuilder extends PropertiesBuilder {
37   @Override
38   protected Properties defaultProperties() {
39      Properties properties = super.defaultProperties();
40      properties.setProperty(PROPERTY_AUTH_TAG, "AWS");
41      properties.setProperty(PROPERTY_HEADER_TAG, "amz");
42      properties.setProperty(PROPERTY_API_VERSION, EC2AsyncClient.VERSION);
43      properties.setProperty(PROPERTY_EC2_AMI_OWNERS, "*");
44      properties.setProperty(PROPERTY_EC2_TIMEOUT_SECURITYGROUP_PRESENT, "500");
45      return properties;
46   }
47 
48   public EC2PropertiesBuilder(Properties properties) {
49      super(properties);
50   }
51 
52   public EC2PropertiesBuilder() {
53      super();
54   }
55}

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