Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ public double getQps() {
*
* @param qps max total QOS, values <= 0 are special for clearing the threshold.
*/
public void setQps(double qps) {
public SystemRule setQps(double qps) {
this.qps = qps;
return this;
}

public long getMaxThread() {
Expand All @@ -75,8 +76,9 @@ public long getMaxThread() {
*
* @param maxThread max parallel thread number, values <= 0 are special for clearing the threshold.
*/
public void setMaxThread(long maxThread) {
public SystemRule setMaxThread(long maxThread) {
this.maxThread = maxThread;
return this;
}

public long getAvgRt() {
Expand All @@ -88,8 +90,9 @@ public long getAvgRt() {
*
* @param avgRt max average response time, values <= 0 are special for clearing the threshold.
*/
public void setAvgRt(long avgRt) {
public SystemRule setAvgRt(long avgRt) {
this.avgRt = avgRt;
return this;
}

public double getHighestSystemLoad() {
Expand All @@ -109,8 +112,9 @@ public double getHighestSystemLoad() {
* @param highestSystemLoad highest system load, values <= 0 are special for clearing the threshold.
* @see SystemRuleManager
*/
public void setHighestSystemLoad(double highestSystemLoad) {
public SystemRule setHighestSystemLoad(double highestSystemLoad) {
this.highestSystemLoad = highestSystemLoad;
return this;
}

/**
Expand All @@ -127,8 +131,9 @@ public double getHighestCpuUsage() {
*
* @param highestCpuUsage the value to set.
*/
public void setHighestCpuUsage(double highestCpuUsage) {
public SystemRule setHighestCpuUsage(double highestCpuUsage) {
this.highestCpuUsage = highestCpuUsage;
return this;
}

@Override
Expand Down