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

COVERAGE SUMMARY FOR SOURCE FILE [GoGridBindComputeStrategiesByClass.java]

nameclass, %method, %block, %line, %
GoGridBindComputeStrategiesByClass.java100% (1/1)100% (8/8)100% (17/17)100% (8/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class GoGridBindComputeStrategiesByClass100% (1/1)100% (8/8)100% (17/17)100% (8/8)
GoGridBindComputeStrategiesByClass (): void 100% (1/1)100% (3/3)100% (1/1)
defineAddNodeWithTagStrategy (): Class 100% (1/1)100% (2/2)100% (1/1)
defineDestroyNodeStrategy (): Class 100% (1/1)100% (2/2)100% (1/1)
defineGetNodeMetadataStrategy (): Class 100% (1/1)100% (2/2)100% (1/1)
defineListNodesStrategy (): Class 100% (1/1)100% (2/2)100% (1/1)
defineRebootNodeStrategy (): Class 100% (1/1)100% (2/2)100% (1/1)
defineStartNodeStrategy (): Class 100% (1/1)100% (2/2)100% (1/1)
defineStopNodeStrategy (): Class 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.gogrid.compute.config;
20 
21import org.jclouds.compute.config.BindComputeStrategiesByClass;
22import org.jclouds.compute.strategy.CreateNodeWithGroupEncodedIntoName;
23import org.jclouds.compute.strategy.DestroyNodeStrategy;
24import org.jclouds.compute.strategy.GetNodeMetadataStrategy;
25import org.jclouds.compute.strategy.ListNodesStrategy;
26import org.jclouds.compute.strategy.RebootNodeStrategy;
27import org.jclouds.compute.strategy.ResumeNodeStrategy;
28import org.jclouds.compute.strategy.SuspendNodeStrategy;
29import org.jclouds.gogrid.compute.strategy.FindIpThenCreateNodeInGroup;
30import org.jclouds.gogrid.compute.strategy.GoGridDestroyNodeStrategy;
31import org.jclouds.gogrid.compute.strategy.GoGridGetNodeMetadataStrategy;
32import org.jclouds.gogrid.compute.strategy.GoGridLifeCycleStrategy;
33import org.jclouds.gogrid.compute.strategy.GoGridListNodesStrategy;
34 
35/**
36 * @author Adrian Cole
37 */
38public class GoGridBindComputeStrategiesByClass extends BindComputeStrategiesByClass {
39   @Override
40   protected Class<? extends CreateNodeWithGroupEncodedIntoName> defineAddNodeWithTagStrategy() {
41      return FindIpThenCreateNodeInGroup.class;
42   }
43 
44   @Override
45   protected Class<? extends DestroyNodeStrategy> defineDestroyNodeStrategy() {
46      return GoGridDestroyNodeStrategy.class;
47   }
48 
49   @Override
50   protected Class<? extends GetNodeMetadataStrategy> defineGetNodeMetadataStrategy() {
51      return GoGridGetNodeMetadataStrategy.class;
52   }
53 
54   @Override
55   protected Class<? extends ListNodesStrategy> defineListNodesStrategy() {
56      return GoGridListNodesStrategy.class;
57   }
58 
59   @Override
60   protected Class<? extends RebootNodeStrategy> defineRebootNodeStrategy() {
61      return GoGridLifeCycleStrategy.class;
62   }
63 
64   @Override
65   protected Class<? extends ResumeNodeStrategy> defineStartNodeStrategy() {
66      return GoGridLifeCycleStrategy.class;
67   }
68 
69   @Override
70   protected Class<? extends SuspendNodeStrategy> defineStopNodeStrategy() {
71      return GoGridLifeCycleStrategy.class;
72   }
73}

[all classes][org.jclouds.gogrid.compute.config]
EMMA 2.0.5312 (C) Vladimir Roubtsov