update deploy script

This commit is contained in:
Shaun Chyxion 2020-08-05 19:57:06 +08:00
parent f43391df33
commit 4d705bf142
3 changed files with 5 additions and 11 deletions

View File

@ -94,7 +94,9 @@ public class CampaignServiceImpl
// Outbound = (readyAgent + expNum) * z * speedAdjust - taskNum; // Outbound = (readyAgent + expNum) * z * speedAdjust - taskNum;
final RespCallingList callingList = final RespCallingList callingList =
callingListService.fetchCallingList( callingListService.fetchCallingList(
countIdleAgentOfQueue, campaign.getCampaignKey(), campaign.getName()); countIdleAgentOfQueue,
campaign.getCampaignKey(),
campaign.getName());
if (callingList.isSuccess()) { if (callingList.isSuccess()) {
final ReqCampaignDial req= new ReqCampaignDial(); final ReqCampaignDial req= new ReqCampaignDial();
req.setCampaignId(campaignId); req.setCampaignId(campaignId);

View File

@ -66,7 +66,7 @@ if [ "$2" == "test" ]; then
deploy_server 'xiadou@118.24.251.131' $APP $JAR deploy_server 'xiadou@118.24.251.131' $APP $JAR
elif [ "$2" == "prod" ]; then elif [ "$2" == "prod" ]; then
echo "Deploy prod." echo "Deploy prod."
deploy_server 'xiandou@113.87.175.72' $APP $JAR '51022' deploy_server 'xiandou@localhost' $APP $JAR '4025'
fi fi
popd > /dev/null popd > /dev/null

View File

@ -1,10 +1,8 @@
package com.pudonghot.yo.fsagent.listener; package com.pudonghot.yo.fsagent.listener;
import java.lang.reflect.Field;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.util.ReflectionUtils;
import org.freeswitch.esl.client.inbound.Client; import org.freeswitch.esl.client.inbound.Client;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.pudonghot.yo.common.httpclient.HttpClient; import com.pudonghot.yo.common.httpclient.HttpClient;
@ -59,6 +57,7 @@ public class ApplicationStartup implements ApplicationListener<ApplicationReadyE
} }
connectFsEsl(); connectFsEsl();
if (onlineMode) { if (onlineMode) {
onlineDubbo(); onlineDubbo();
} }
@ -92,11 +91,4 @@ public class ApplicationStartup implements ApplicationListener<ApplicationReadyE
Assert.state("OK".equals(onlineResult), "Online dubbo service error caused"); Assert.state("OK".equals(onlineResult), "Online dubbo service error caused");
} }
} }
@SuppressWarnings("unchecked")
<T> T getField(final Class<?> clazz, final Object obj, final String name) {
final Field field = ReflectionUtils.findField(clazz, name);
ReflectionUtils.makeAccessible(field);
return (T) ReflectionUtils.getField(field, obj);
}
} }