EMMA Coverage Report (generated Wed Aug 10 12:30:04 EDT 2011)
[all classes][org.jclouds.rimuhosting.miro.data]

COVERAGE SUMMARY FOR SOURCE FILE [CloneOptions.java]

nameclass, %method, %block, %line, %
CloneOptions.java0%   (0/1)0%   (0/7)0%   (0/43)0%   (0/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CloneOptions0%   (0/1)0%   (0/7)0%   (0/43)0%   (0/9)
<static initializer> 0%   (0/1)0%   (0/8)0%   (0/1)
CloneOptions (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getInstanceId (): long 0%   (0/1)0%   (0/4)0%   (0/1)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setInstanceId (long): void 0%   (0/1)0%   (0/5)0%   (0/2)
setName (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
validate (): void 0%   (0/1)0%   (0/16)0%   (0/2)

1/**
2 *
3 * Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
4 *
5 * ====================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * 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, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 * ====================================================================
18 */
19package org.jclouds.rimuhosting.miro.data;
20 
21import com.google.gson.annotations.SerializedName;
22 
23/**
24 * Options for a clone.
25 * TODO: test and add contructors.
26 * @author Ivan Meredith
27 */
28public class CloneOptions implements PostData {
29   /**
30    * Select this if you want the newly setup VPS to be a clone of
31    * another VPS you have with us.&nbsp; We will need to pause (but
32    * not restart) the clone source VPS for a few seconds to a few
33    * minutes to take the snapshot.
34    */
35   @SerializedName("vps_order_oid_to_clone")
36   private Long instanceId;
37   /**
38    * The label you want to give the server.&nbsp; It will need to be a
39    * fully qualified domain name (FQDN).&nbsp; e.g. example.com. Will
40    * default to the domain name used on the order id provided.
41    */
42   @SerializedName("domain_name")
43   private String name;
44 
45   public long getInstanceId() {
46      return instanceId;
47   }
48 
49   public void setInstanceId(long instanceId) {
50      this.instanceId = instanceId;
51   }
52 
53   public String getName() {
54      return name;
55   }
56 
57   public void setName(String name) {
58      this.name = name;
59   }
60   
61   public void validate(){
62           assert(instanceId == null || instanceId < 0);
63   }
64}

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