EMMA Coverage Report (generated Mon Oct 17 05:41:20 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 * 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.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