View Javadoc

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   */
19  package org.jclouds.tools.ant.taskdefs.compute;
20  
21  import java.io.File;
22  
23  /**
24   * @author Adrian Cole
25   * @author Ivan Meredith
26   */
27  public class NodeElement {
28     private String id;
29     private String group;
30     private String hardware;
31     private String os;
32     private String image;
33     private int count = 1;
34     private String openports = "22";
35     private String passwordproperty;
36     private File privatekeyfile;
37     private File publickeyfile;
38     private String hostproperty;
39     private String idproperty;
40     private String usernameproperty;
41     private String location;
42     private File runscript;
43  
44     public String getLocation() {
45        return location;
46     }
47  
48     public void setLocation(String location) {
49        this.location = location;
50     }
51  
52     String getUsernameproperty() {
53        return usernameproperty;
54     }
55  
56     /**
57      * The name of a property in which the username of the login user should be stored.
58      * 
59      */
60     public void setUsernameproperty(String usernameproperty) {
61        this.usernameproperty = usernameproperty;
62     }
63  
64     String getPasswordproperty() {
65        return passwordproperty;
66     }
67  
68     /**
69      * The name of a property in which the password of the login user should be stored.
70      * 
71      */
72     public void setPasswordproperty(String passwordproperty) {
73        this.passwordproperty = passwordproperty;
74     }
75  
76     /**
77      * The name of a property in which the hostname of the machine should be stored
78      * 
79      */
80     public void setHostproperty(String hostproperty) {
81        this.hostproperty = hostproperty;
82     }
83  
84     String getHostproperty() {
85        return hostproperty;
86     }
87  
88     /**
89      * The name of a property in which the id of the machine should be stored
90      * 
91      */
92     public void setIdproperty(String idproperty) {
93        this.idproperty = idproperty;
94     }
95  
96     String getIdproperty() {
97        return idproperty;
98     }
99  
100 
101    public void setHardware(String hardware) {
102       this.hardware = hardware;
103    }
104 
105    public String getHardware() {
106       return hardware;
107    }
108 
109    public void setOs(String os) {
110       this.os = os;
111    }
112 
113    public String getOs() {
114       return os;
115    }
116 
117    public void setRunscript(File runscript) {
118       this.runscript = runscript;
119    }
120 
121    public File getRunscript() {
122       return runscript;
123    }
124 
125    public void setOpenports(String openports) {
126       this.openports = openports;
127    }
128 
129    public String getOpenports() {
130       return openports;
131    }
132 
133    public void setImage(String image) {
134       this.image = image;
135    }
136 
137    public String getImage() {
138       return image;
139    }
140 
141    public void setCount(int count) {
142       this.count = count;
143    }
144 
145    public int getCount() {
146       return count;
147    }
148 
149    public void setGroup(String group) {
150       this.group = group;
151    }
152 
153    public String getGroup() {
154       return group;
155    }
156 
157    public void setPrivatekeyfile(File privatekeyfile) {
158       this.privatekeyfile = privatekeyfile;
159    }
160 
161    public File getPrivatekeyfile() {
162       return privatekeyfile;
163    }
164 
165    public void setPublickeyfile(File publickeyfile) {
166       this.publickeyfile = publickeyfile;
167    }
168 
169    public File getPublickeyfile() {
170       return publickeyfile;
171    }
172 
173    public void setId(String id) {
174       this.id = id;
175    }
176 
177    public String getId() {
178       return id;
179    }
180 
181 }