|
|
|
@ -4,6 +4,7 @@ import java.text.MessageFormat;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
import org.quartz.JobExecutionContext;
|
|
|
|
|
import org.quartz.JobExecutionException;
|
|
|
|
|
import org.quartz.JobKey;
|
|
|
|
@ -89,6 +90,7 @@ public class RemoteHttpJobBean extends QuartzJobBean {
|
|
|
|
|
if (handler_address.split(",").length > 1) {
|
|
|
|
|
String failoverMessage = "";
|
|
|
|
|
for (String address : handler_address.split(",")) {
|
|
|
|
|
if (StringUtils.isNotBlank(address)) {
|
|
|
|
|
HashMap<String, String> params = new HashMap<String, String>();
|
|
|
|
|
params.put(HandlerParamEnum.TIMESTAMP.name(), String.valueOf(System.currentTimeMillis()));
|
|
|
|
|
params.put(HandlerParamEnum.ACTION.name(), ActionEnum.BEAT.name());
|
|
|
|
@ -103,6 +105,7 @@ public class RemoteHttpJobBean extends QuartzJobBean {
|
|
|
|
|
return triggerCallback;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RemoteCallBack result = new RemoteCallBack();
|
|
|
|
|
result.setStatus(RemoteCallBack.FAIL);
|
|
|
|
|