-
Notifications
You must be signed in to change notification settings - Fork 115
Health statistics #436
base: gsoc-projects-2015
Are you sure you want to change the base?
Health statistics #436
Changes from 120 commits
9d3df24
71b9586
bfc7b46
fdbef49
e51db92
bb090ee
7484b0b
3643b5f
f57c5b2
3921c52
c4064a3
ef16940
5ca895e
e0bb022
4c65e70
e09334c
225952e
3c3fc11
431710d
9c0fce9
efa25eb
d168c16
d4115ed
b1a40e8
a6a7c46
78270c1
3933aeb
6e20979
454a4d6
6b4c22f
c54c26d
cd2f3b8
0f71e5e
60bf515
5b2ce68
57efe03
24ab63f
c0b43ea
4b01bd8
5ab9159
7112c1a
f32dbea
45e8c16
3888ceb
3702641
85c06f4
4449459
380c28e
3fb9369
9effd90
e001cfc
deaae58
5d924a4
7616726
310ea34
5d85797
70a0e13
89f12ac
cdd7534
d6e134e
e7f7379
598318e
80e6214
3be909f
9782be5
60a2232
2b3de72
7269f4f
eea5d39
1490310
3e3cc07
e39d118
064b4b3
cabb1d0
36b2308
09da05a
145bc25
55b1a91
2968805
db5e234
8c7f487
d6f2831
9886b3d
8389da4
764e35c
71e5436
e8b30c2
b5d396c
9bd6304
4054b29
2db724f
0b84314
beea127
4ad2c7a
ef4cd28
0566bf5
cdec6f4
8517d37
723b78f
d30b81d
3642c35
ff4f633
83084d3
072ca30
6fa845a
9798eee
67a1f82
711e688
4a258dc
1b7a77e
212a22b
f75bc4c
4216ddd
2c1a677
a1f9b30
0b87a40
d194c2a
6207834
626216d
7fa751e
8c0264f
82753c1
d6cf9d0
c0dd060
65d770f
cdf22cd
d5558cf
fd28523
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.apache.stratos.common.beans.healthStatistics; | ||
|
||
|
||
public class AverageLoadAverageBean { | ||
private static final long serialVersionUID = -7788619177798333712L; | ||
|
||
private String clusterId; | ||
private Long timeStamp; | ||
private Double memberAverageLoadAverage; | ||
private String memberId; | ||
|
||
public AverageLoadAverageBean(String clusterId, Long timeStamp, Double memberAverageLoadAverage, String memberId) { | ||
this.clusterId = clusterId; | ||
this.timeStamp = timeStamp; | ||
this.memberAverageLoadAverage = memberAverageLoadAverage; | ||
this.memberId = memberId; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Class variables initialized via the constructor can be marked as final. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Class variables changed to final variable. |
||
} | ||
|
||
|
||
|
||
public String getClusterId() { | ||
return clusterId; | ||
} | ||
|
||
public void setClusterId(String clusterId) { | ||
this.clusterId = clusterId; | ||
} | ||
|
||
|
||
public Double getMemberAverageLoadAverage() { | ||
return memberAverageLoadAverage; | ||
} | ||
|
||
public void setMemberAverageLoadAverage(Double memberAverageLoadAverage) { | ||
this.memberAverageLoadAverage = memberAverageLoadAverage; | ||
} | ||
|
||
public Long getTimeStamp() { | ||
return timeStamp; | ||
} | ||
|
||
public void setTimeStamp(Long timeStamp) { | ||
this.timeStamp = timeStamp; | ||
} | ||
|
||
public String getMemberId() { | ||
return memberId; | ||
} | ||
|
||
public void setMemberId(String memberId) { | ||
this.memberId = memberId; | ||
} | ||
|
||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.apache.stratos.common.beans.healthStatistics; | ||
|
||
public class AverageMemoryConsumptionBean { | ||
private static final long serialVersionUID = -7788619177798333711L; | ||
|
||
private String clusterId; | ||
private Double memberAverageMemoryConsumption; | ||
private Long timeStamp; | ||
private String memberId; | ||
|
||
public AverageMemoryConsumptionBean(String clusterId, Double memberAverageMemoryConsumption, Long timeStamp, String memberId) { | ||
this.clusterId = clusterId; | ||
this.memberAverageMemoryConsumption = memberAverageMemoryConsumption; | ||
this.timeStamp = timeStamp; | ||
this.memberId = memberId; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Class variables initialized via the constructor can be marked as final. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed the class variables into final. |
||
} | ||
|
||
public String getClusterId() { | ||
return clusterId; | ||
} | ||
|
||
public void setClusterId(String clusterId) { | ||
this.clusterId = clusterId; | ||
} | ||
|
||
public Double getMemberAverageMemoryConsumption() { | ||
return memberAverageMemoryConsumption; | ||
} | ||
|
||
public void setMemberAverageMemoryConsumption(Double memberAverageMemoryConsumption) { | ||
this.memberAverageMemoryConsumption = memberAverageMemoryConsumption; | ||
} | ||
|
||
public Long getTimeStamp() { | ||
return timeStamp; | ||
} | ||
|
||
public void setTimeStamp(Long timeStamp) { | ||
this.timeStamp = timeStamp; | ||
} | ||
|
||
public String getMemberId() { | ||
return memberId; | ||
} | ||
|
||
public void setMemberId(String memberId) { | ||
this.memberId = memberId; | ||
} | ||
|
||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.apache.stratos.common.beans.healthStatistics; | ||
|
||
|
||
public class InFlightRequestBean { | ||
|
||
private static final long serialVersionUID = -7788619177798333712L; | ||
|
||
private String clusterId; | ||
private Long timeStamp; | ||
private Double inFlightRequestCount; | ||
|
||
public InFlightRequestBean(String clusterId, Long timeStamp, Double inFlightRequestCount) { | ||
this.clusterId = clusterId; | ||
this.timeStamp = timeStamp; | ||
this.inFlightRequestCount = inFlightRequestCount; | ||
} | ||
|
||
|
||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove blank lines and format code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed the blank lines and reformatted the code. |
||
public String getClusterId() { | ||
return clusterId; | ||
} | ||
|
||
public void setClusterId(String clusterId) { | ||
this.clusterId = clusterId; | ||
} | ||
|
||
public Double getInFlightRequestCount() { | ||
return inFlightRequestCount; | ||
} | ||
|
||
public void setInFlightRequestCount(Double inFlightRequestCount) { | ||
this.inFlightRequestCount = inFlightRequestCount; | ||
} | ||
|
||
|
||
public Long getTimeStamp() { | ||
return timeStamp; | ||
} | ||
|
||
public void setTimeStamp(Long timeStamp) { | ||
this.timeStamp = timeStamp; | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"backendServerConfiguration": { | ||
"url": "%https.host%/api/v4.1" | ||
}, | ||
"healthStatistics": { | ||
"UI_enable": "false" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better to add class comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Included the class level comments.