@Test public void testGetCallHomeDeviceWithDuid() { DeviceInfo callHomeDevice = createCallHomeDevice("Bangalore-south"); assertEquals(callHomeDevice, m_adminStore.getCallHomeDeviceWithDuid("Bangalore-south")); }
@Override public DeviceInfo getCallHomeDeviceWithDuid(String duid) { Objects.requireNonNull(duid); Set<DeviceInfo> allDevices = getAllEntries(); for (DeviceInfo deviceInfo : allDevices) { if (deviceInfo.isCallHome()) { if (duid.equals(deviceInfo.getDeviceCallHomeInfo().getDuid())) { return deviceInfo; } } } return null; }
DeviceAdminStoreImpl extends AbstractStore<String, DeviceInfo> implements DeviceAdminStore { @Override public DeviceInfo getCallHomeDeviceWithDuid(String duid) { Objects.requireNonNull(duid); Set<DeviceInfo> allDevices = getAllEntries(); for (DeviceInfo deviceInfo : allDevices) { if (deviceInfo.isCallHome()) { if (duid.equals(deviceInfo.getDeviceCallHomeInfo().getDuid())) { return deviceInfo; } } } return null; } }
DeviceAdminStoreImpl extends AbstractStore<String, DeviceInfo> implements DeviceAdminStore { @Override public DeviceInfo getCallHomeDeviceWithDuid(String duid) { Objects.requireNonNull(duid); Set<DeviceInfo> allDevices = getAllEntries(); for (DeviceInfo deviceInfo : allDevices) { if (deviceInfo.isCallHome()) { if (duid.equals(deviceInfo.getDeviceCallHomeInfo().getDuid())) { return deviceInfo; } } } return null; } DeviceAdminStoreImpl(String mapDbFilePath); }
DeviceAdminStoreImpl extends AbstractStore<String, DeviceInfo> implements DeviceAdminStore { @Override public DeviceInfo getCallHomeDeviceWithDuid(String duid) { Objects.requireNonNull(duid); Set<DeviceInfo> allDevices = getAllEntries(); for (DeviceInfo deviceInfo : allDevices) { if (deviceInfo.isCallHome()) { if (duid.equals(deviceInfo.getDeviceCallHomeInfo().getDuid())) { return deviceInfo; } } } return null; } DeviceAdminStoreImpl(String mapDbFilePath); @Override DeviceInfo getCallHomeDeviceWithDuid(String duid); }
DeviceAdminStoreImpl extends AbstractStore<String, DeviceInfo> implements DeviceAdminStore { @Override public DeviceInfo getCallHomeDeviceWithDuid(String duid) { Objects.requireNonNull(duid); Set<DeviceInfo> allDevices = getAllEntries(); for (DeviceInfo deviceInfo : allDevices) { if (deviceInfo.isCallHome()) { if (duid.equals(deviceInfo.getDeviceCallHomeInfo().getDuid())) { return deviceInfo; } } } return null; } DeviceAdminStoreImpl(String mapDbFilePath); @Override DeviceInfo getCallHomeDeviceWithDuid(String duid);  }