mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Addressing review comments
This commit is contained in:
parent
5531bc0140
commit
ceab2566ac
@ -788,7 +788,9 @@ public abstract class AbstractDeviceDAOImpl implements DeviceDAO {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new DeviceManagementDAOException("Error occurred while listing devices for type '" + type + "'", e);
|
String msg = "Error occurred while listing devices for type '" + type + "'";
|
||||||
|
log.error(msg, e);
|
||||||
|
throw new DeviceManagementDAOException(msg, e);
|
||||||
} finally {
|
} finally {
|
||||||
DeviceManagementDAOUtil.cleanupResources(stmt, rs);
|
DeviceManagementDAOUtil.cleanupResources(stmt, rs);
|
||||||
}
|
}
|
||||||
@ -846,15 +848,17 @@ public abstract class AbstractDeviceDAOImpl implements DeviceDAO {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Error encountered while populating allocated active devices for server with index : " + serverIndex +
|
String msg = "Error encountered while populating allocated active devices for server with index : " + serverIndex +
|
||||||
" active-server-count " + activeServerCount + " device-type " + type + " tenant-id " + tenantId);
|
" active-server-count " + activeServerCount + " device-type " + type + " tenant-id " + tenantId;
|
||||||
throw new DeviceManagementDAOException("Error occurred while populating active devices '" + type + "'", e);
|
log.error(msg, e);
|
||||||
|
throw new DeviceManagementDAOException(msg, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
log.error("Error encountered while retrieving allocated devices for server with index : " + serverIndex +
|
String msg = "Error encountered while retrieving allocated devices for server with index : " + serverIndex +
|
||||||
" active-server-count " + activeServerCount + " device-type " + type + " tenant-id " + tenantId);
|
" active-server-count " + activeServerCount + " device-type " + type + " tenant-id " + tenantId;
|
||||||
throw new DeviceManagementDAOException("Error occurred while listing devices for type '" + type + "'", e);
|
log.error(msg, e);
|
||||||
|
throw new DeviceManagementDAOException(msg, e);
|
||||||
}
|
}
|
||||||
return devices;
|
return devices;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -283,6 +283,7 @@ public class HeartBeatManagementServiceImpl implements HeartBeatManagementServic
|
|||||||
}
|
}
|
||||||
} catch (HeartBeatDAOException e) {
|
} catch (HeartBeatDAOException e) {
|
||||||
String msg = "Error occurred while recording heart beat.";
|
String msg = "Error occurred while recording heart beat.";
|
||||||
|
log.error(msg);
|
||||||
throw new HeartBeatManagementException(msg, e);
|
throw new HeartBeatManagementException(msg, e);
|
||||||
} catch (TransactionManagementException e) {
|
} catch (TransactionManagementException e) {
|
||||||
HeartBeatBeaconDAOFactory.rollbackTransaction();
|
HeartBeatBeaconDAOFactory.rollbackTransaction();
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
<artifactId>heartbeat-management</artifactId>
|
<artifactId>heartbeat-management</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Entgra - Task Allocation Framework</name>
|
<name>Entgra - Task Allocation Framework</name>
|
||||||
<url>http://wso2.org</url>
|
<url>http://entgra.io</url>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>io.entgra.server.bootup.heartbeat.beacon</module>
|
<module>io.entgra.server.bootup.heartbeat.beacon</module>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user