mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
1) Drop synchronized call semantic for ClusterManagerImpl.broadcast() 2) Have no choice now but to use an unbound thread pool to notify upper layer. This is to prevent thread starvation when we have cross-management server waitings. Reviewed-By: Kelven(with unit test)
39 lines
835 B
Java
39 lines
835 B
Java
package com.cloud.cluster;
|
|
|
|
public class ClusterServiceRequestPdu extends ClusterServicePdu {
|
|
|
|
private String responseResult;
|
|
private long startTick;
|
|
private long timeout;
|
|
|
|
public ClusterServiceRequestPdu() {
|
|
startTick = System.currentTimeMillis();
|
|
timeout = -1;
|
|
setPduType(PDU_TYPE_REQUEST);
|
|
}
|
|
|
|
public String getResponseResult() {
|
|
return responseResult;
|
|
}
|
|
|
|
public void setResponseResult(String responseResult) {
|
|
this.responseResult = responseResult;
|
|
}
|
|
|
|
public long getStartTick() {
|
|
return startTick;
|
|
}
|
|
|
|
public void setStartTick(long startTick) {
|
|
this.startTick = startTick;
|
|
}
|
|
|
|
public long getTimeout() {
|
|
return timeout;
|
|
}
|
|
|
|
public void setTimeout(long timeout) {
|
|
this.timeout = timeout;
|
|
}
|
|
}
|