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

COVERAGE SUMMARY FOR SOURCE FILE [ServerParameters.java]

nameclass, %method, %block, %line, %
ServerParameters.java100% (1/1)12%  (1/8)12%  (3/25)9%   (1/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ServerParameters100% (1/1)12%  (1/8)12%  (3/25)9%   (1/11)
getPrimaryDisk (): Integer 0%   (0/1)0%   (0/3)0%   (0/1)
getRam (): Integer 0%   (0/1)0%   (0/3)0%   (0/1)
getSecondaryDisk (): Integer 0%   (0/1)0%   (0/3)0%   (0/1)
setPrimaryDisk (Integer): void 0%   (0/1)0%   (0/4)0%   (0/2)
setRam (Integer): void 0%   (0/1)0%   (0/4)0%   (0/2)
setSecondaryDisk (Integer): void 0%   (0/1)0%   (0/4)0%   (0/2)
validate (): void 0%   (0/1)0%   (0/1)0%   (0/1)
ServerParameters (): void 100% (1/1)100% (3/3)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.rimuhosting.miro.domain;
20 
21import com.google.gson.annotations.SerializedName;
22import org.jclouds.rimuhosting.miro.data.PostData;
23 
24/**
25 * Attributes about a running VPS.  Implicit with any changes to
26 * these attributes on a VPS is that we'd need to restart the VPS for
27 * the changes to happen.  At least at this point in time.
28 *
29 * @author Ivan Meredith
30 */
31public class ServerParameters implements PostData {
32   /**
33    * File system image size.
34    */
35   @SerializedName("disk_space_mb")
36   private Integer primaryDisk;
37   /**
38    * Some VPSs have a secondary partition.  One that is not part
39    * of the regular backup setups.  Mostly not used.
40    */
41   @SerializedName("disk_space_2_mb")
42   private Integer secondaryDisk;
43   /**
44    * Memory size.
45    */
46   @SerializedName("memory_mb")
47   private Integer ram;
48 
49   public Integer getPrimaryDisk() {
50      return primaryDisk;
51   }
52 
53   public void setPrimaryDisk(Integer primaryDisk) {
54      this.primaryDisk = primaryDisk;
55   }
56 
57   public Integer getSecondaryDisk() {
58      return secondaryDisk;
59   }
60 
61   public void setSecondaryDisk(Integer secondaryDisk) {
62      this.secondaryDisk = secondaryDisk;
63   }
64 
65   public Integer getRam() {
66      return ram;
67   }
68 
69   public void setRam(Integer ram) {
70      this.ram = ram;
71   }
72 
73        @Override
74        public void validate() {
75                //XXX: do we need to do anything here?
76        }
77}

[all classes][org.jclouds.rimuhosting.miro.domain]
EMMA 2.0.5312 (C) Vladimir Roubtsov