Commit f7f0628b by levphon

设备监控-设置ice批量查询的超时时间

1 parent 4656d6b8
...@@ -40,6 +40,7 @@ public class IceServerConfig { ...@@ -40,6 +40,7 @@ public class IceServerConfig {
// 加载属性文件 // 加载属性文件
Ice.Properties beforeProperties = Ice.Util.createProperties(); Ice.Properties beforeProperties = Ice.Util.createProperties();
beforeProperties.setProperty("Ice.MessageSizeMax", "20480"); beforeProperties.setProperty("Ice.MessageSizeMax", "20480");
beforeProperties.setProperty("Ice.Override.Timeout", "60000");
Ice.InitializationData initData = new Ice.InitializationData(); Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = beforeProperties; initData.properties = beforeProperties;
...@@ -74,6 +75,7 @@ public class IceServerConfig { ...@@ -74,6 +75,7 @@ public class IceServerConfig {
// 加载属性文件 // 加载属性文件
Ice.Properties beforeProperties = Ice.Util.createProperties(); Ice.Properties beforeProperties = Ice.Util.createProperties();
beforeProperties.setProperty("Ice.MessageSizeMax", "20480"); beforeProperties.setProperty("Ice.MessageSizeMax", "20480");
beforeProperties.setProperty("Ice.Override.Timeout", "60000");
Ice.InitializationData initData = new Ice.InitializationData(); Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = beforeProperties; initData.properties = beforeProperties;
......
...@@ -282,6 +282,10 @@ public class HdaoGpsComponent { ...@@ -282,6 +282,10 @@ public class HdaoGpsComponent {
* @return * @return
*/ */
public DataBsLocation getDeviceLastBsInfo(String sn, DeviceTypeRelationEnum deviceTypeRelationEnum) { public DataBsLocation getDeviceLastBsInfo(String sn, DeviceTypeRelationEnum deviceTypeRelationEnum) {
if (deviceTypeRelationEnum == null) {
log.warn("sn={} deviceTypeRelationEnum is null, please check sn data!!!", sn);
return null;
}
DataBsLocation dataBsLocation = null; DataBsLocation dataBsLocation = null;
try { try {
if (daoGpsServicePrx == null) { if (daoGpsServicePrx == null) {
...@@ -332,6 +336,10 @@ public class HdaoGpsComponent { ...@@ -332,6 +336,10 @@ public class HdaoGpsComponent {
* @return * @return
*/ */
public DataGpsLocation getDeviceLastGpsInfo(String sn, DeviceTypeRelationEnum deviceTypeRelationEnum) { public DataGpsLocation getDeviceLastGpsInfo(String sn, DeviceTypeRelationEnum deviceTypeRelationEnum) {
if (deviceTypeRelationEnum == null) {
log.warn("sn={} deviceTypeRelationEnum is null, please check sn data!!!", sn);
return null;
}
DataGpsLocation dataGpsLocation = null; DataGpsLocation dataGpsLocation = null;
try { try {
if (daoGpsServicePrx == null) { if (daoGpsServicePrx == null) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!