6
6
import java .util .ArrayList ;
7
7
import java .util .List ;
8
8
import javax .validation .Valid ;
9
- import javax .validation .constraints .NotNull ;
10
9
import com .google .gson .annotations .Expose ;
11
10
import com .google .gson .annotations .SerializedName ;
12
11
import org .apache .commons .lang3 .builder .EqualsBuilder ;
@@ -28,29 +27,6 @@ public class ServerHealth {
28
27
@ SerializedName ("startTime" )
29
28
@ Expose
30
29
private DateTime startTime ;
31
- /**
32
- * WebLogic cluster name, if the server is part of a cluster
33
- *
34
- */
35
- @ SerializedName ("clusterName" )
36
- @ Expose
37
- private String clusterName ;
38
- /**
39
- * Name of node that is hosting the Pod containing this WebLogic server.
40
- *
41
- */
42
- @ SerializedName ("nodeName" )
43
- @ Expose
44
- private String nodeName ;
45
- /**
46
- * Current state of this WebLogic server.
47
- * (Required)
48
- *
49
- */
50
- @ SerializedName ("state" )
51
- @ Expose
52
- @ NotNull
53
- private String state ;
54
30
/**
55
31
* Server health of this WebLogic server.
56
32
*
@@ -100,87 +76,6 @@ public ServerHealth withStartTime(DateTime startTime) {
100
76
return this ;
101
77
}
102
78
103
- /**
104
- * WebLogic cluster name, if the server is part of a cluster
105
- * @return cluster name
106
- */
107
- public String getClusterName () {
108
- return clusterName ;
109
- }
110
-
111
- /**
112
- * WebLogic cluster name, if the server is part of a cluster
113
- * @param clusterName cluster name
114
- */
115
- public void setClusterName (String clusterName ) {
116
- this .clusterName = clusterName ;
117
- }
118
-
119
- /**
120
- * WebLogic cluster name, if the server is part of a cluster
121
- * @param clusterName cluster name
122
- * @return this
123
- */
124
- public ServerHealth withClusterName (String clusterName ) {
125
- this .clusterName = clusterName ;
126
- return this ;
127
- }
128
-
129
- /**
130
- * Name of node that is hosting the Pod containing this WebLogic server.
131
- * @return node name
132
- */
133
- public String getNodeName () {
134
- return nodeName ;
135
- }
136
-
137
- /**
138
- * Name of node that is hosting the Pod containing this WebLogic server.
139
- * @param nodeName node name
140
- */
141
- public void setNodeName (String nodeName ) {
142
- this .nodeName = nodeName ;
143
- }
144
-
145
- /**
146
- * Name of node that is hosting the Pod containing this WebLogic server.
147
- * @param nodeName node name
148
- * @return this
149
- */
150
- public ServerHealth withNodeName (String nodeName ) {
151
- this .nodeName = nodeName ;
152
- return this ;
153
- }
154
-
155
- /**
156
- * Current state of this WebLogic server.
157
- * (Required)
158
- * @return state
159
- */
160
- public String getState () {
161
- return state ;
162
- }
163
-
164
- /**
165
- * Current state of this WebLogic server.
166
- * (Required)
167
- * @param state state
168
- */
169
- public void setState (String state ) {
170
- this .state = state ;
171
- }
172
-
173
- /**
174
- * Current state of this WebLogic server.
175
- * (Required)
176
- * @param state state
177
- * @return this
178
- */
179
- public ServerHealth withState (String state ) {
180
- this .state = state ;
181
- return this ;
182
- }
183
-
184
79
/**
185
80
* Server health of this WebLogic server.
186
81
* @return health
@@ -261,12 +156,12 @@ public ServerHealth withSymptoms(List<String> symptoms) {
261
156
262
157
@ Override
263
158
public String toString () {
264
- return new ToStringBuilder (this ).append ("startTime" , startTime ).append ("clusterName" , clusterName ). append ( "nodeName" , nodeName ). append ( "state" , state ). append ( " health" , health ).append ("subsystemName" , subsystemName ).append ("symptoms" , symptoms ).toString ();
159
+ return new ToStringBuilder (this ).append ("startTime" , startTime ).append ("health" , health ).append ("subsystemName" , subsystemName ).append ("symptoms" , symptoms ).toString ();
265
160
}
266
161
267
162
@ Override
268
163
public int hashCode () {
269
- return new HashCodeBuilder ().append (nodeName ). append ( symptoms ).append (clusterName ). append ( health ).append (startTime ). append ( state ).append (subsystemName ).toHashCode ();
164
+ return new HashCodeBuilder ().append (symptoms ).append (health ).append (startTime ).append (subsystemName ).toHashCode ();
270
165
}
271
166
272
167
@ Override
@@ -278,7 +173,7 @@ public boolean equals(Object other) {
278
173
return false ;
279
174
}
280
175
ServerHealth rhs = ((ServerHealth ) other );
281
- return new EqualsBuilder ().append (nodeName , rhs . nodeName ). append ( symptoms , rhs .symptoms ).append (clusterName , rhs . clusterName ). append ( health , rhs .health ).append (startTime , rhs .startTime ). append ( state , rhs . state ).append (subsystemName , rhs .subsystemName ).isEquals ();
176
+ return new EqualsBuilder ().append (symptoms , rhs .symptoms ).append (health , rhs .health ).append (startTime , rhs .startTime ).append (subsystemName , rhs .subsystemName ).isEquals ();
282
177
}
283
178
284
179
}
0 commit comments