Statistics
| Branch: | Revision:

root / src / com / rackspace / cloud / loadbalancer / api / client / Node.java @ ffd154e6

History | View | Annotate | Download (1.3 kB)

1
/**
2
 * 
3
 */
4
package com.rackspace.cloud.loadbalancer.api.client;
5

    
6
public class Node extends Entity {
7
        private static final long serialVersionUID = 5994739895998309675L;
8
        private String id;
9
        private String address;
10
        private String port;
11
        private String condition;
12
        private String status;
13
        private String weight;
14
        private Boolean isExternalNode;
15
        
16
        public String getId() {
17
                return id;
18
        }
19
        
20
        public void setId(String id) {
21
                this.id = id;
22
        }
23
        
24
        public String getAddress() {
25
                return address;
26
        }
27
        
28
        public void setAddress(String address) {
29
                this.address = address;
30
        }
31
        
32
        public String getPort() {
33
                return port;
34
        }
35
        
36
        public void setPort(String port) {
37
                this.port = port;
38
        }
39
        
40
        public String getCondition() {
41
                return condition;
42
        }
43
        
44
        public void setCondition(String condition) {
45
                this.condition = condition.toUpperCase();
46
        }
47
        
48
        public String getStatus() {
49
                return status;
50
        }
51
        
52
        public void setStatus(String status) {
53
                this.status = status;
54
        }
55
        
56
        public void setWeight(String weight){
57
                this.weight = weight;
58
        }
59
        
60
        public String getWeight(){
61
                return weight;
62
        }
63
        
64
        public static long getSerialversionuid() {
65
                return serialVersionUID;
66
        }
67
        
68
        public boolean isExternalNode(){
69
                return isExternalNode;
70
        }
71
        
72
        public void setIsExternalNode(boolean external){
73
                isExternalNode = external;
74
        }
75
        
76
}