|
|
@ -169,7 +169,7 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
|
|
|
|
deviceInfo.getAvailableRAMMemory(),
|
|
|
|
deviceInfo.getAvailableRAMMemory(),
|
|
|
|
deviceInfo.isPluggedIn()
|
|
|
|
deviceInfo.isPluggedIn()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
//todo:amalka
|
|
|
|
|
|
|
|
// DeviceManagerUtil.getEventPublisherService().publishEvent(
|
|
|
|
// DeviceManagerUtil.getEventPublisherService().publishEvent(
|
|
|
|
// DEVICE_INFO_EVENT_STREAM_DEFINITION, "1.0.0", metaData, new Object[0], payload
|
|
|
|
// DEVICE_INFO_EVENT_STREAM_DEFINITION, "1.0.0", metaData, new Object[0], payload
|
|
|
|
// );
|
|
|
|
// );
|
|
|
@ -185,7 +185,6 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
|
|
|
|
DeviceManagementDAOFactory.rollbackTransaction();
|
|
|
|
DeviceManagementDAOFactory.rollbackTransaction();
|
|
|
|
throw new DeviceDetailsMgtException("Error occurred while updating the last update timestamp of the " +
|
|
|
|
throw new DeviceDetailsMgtException("Error occurred while updating the last update timestamp of the " +
|
|
|
|
"device", e);
|
|
|
|
"device", e);
|
|
|
|
//todo:amalka
|
|
|
|
|
|
|
|
// } catch (DataPublisherConfigurationException e) {
|
|
|
|
// } catch (DataPublisherConfigurationException e) {
|
|
|
|
// throw new DeviceDetailsMgtException("Error occurred while publishing the device location information.", e);
|
|
|
|
// throw new DeviceDetailsMgtException("Error occurred while publishing the device location information.", e);
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
@ -382,7 +381,6 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
|
|
|
|
deviceLocation.getBearing(),
|
|
|
|
deviceLocation.getBearing(),
|
|
|
|
deviceLocation.getDistance()
|
|
|
|
deviceLocation.getDistance()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
//todo:amalka
|
|
|
|
|
|
|
|
// DeviceManagerUtil.getEventPublisherService().publishEvent(
|
|
|
|
// DeviceManagerUtil.getEventPublisherService().publishEvent(
|
|
|
|
// LOCATION_EVENT_STREAM_DEFINITION, "1.0.0", metaData, new Object[0], payload
|
|
|
|
// LOCATION_EVENT_STREAM_DEFINITION, "1.0.0", metaData, new Object[0], payload
|
|
|
|
// );
|
|
|
|
// );
|
|
|
@ -397,7 +395,6 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
|
|
|
|
} catch (DeviceManagementException e) {
|
|
|
|
} catch (DeviceManagementException e) {
|
|
|
|
DeviceManagementDAOFactory.rollbackTransaction();
|
|
|
|
DeviceManagementDAOFactory.rollbackTransaction();
|
|
|
|
throw new DeviceDetailsMgtException("Error occurred while getting the device information.", e);
|
|
|
|
throw new DeviceDetailsMgtException("Error occurred while getting the device information.", e);
|
|
|
|
//todo:amalka
|
|
|
|
|
|
|
|
// } catch (DataPublisherConfigurationException e) {
|
|
|
|
// } catch (DataPublisherConfigurationException e) {
|
|
|
|
// DeviceManagementDAOFactory.rollbackTransaction();
|
|
|
|
// DeviceManagementDAOFactory.rollbackTransaction();
|
|
|
|
// throw new DeviceDetailsMgtException("Error occurred while publishing the device location information.", e);
|
|
|
|
// throw new DeviceDetailsMgtException("Error occurred while publishing the device location information.", e);
|
|
|
|