cloudstack/server/src/com/cloud/cluster/ClusterServiceRequestPdu.java
Kelven Yang 7d87f48ef4 bug 14301:
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)
2012-03-27 16:09:55 -07:00

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;
}
}