@Test public void testGetSensorUnknownID() throws Exception { Deployer d = createDeployer(deployerName); Sensor s = d.getSensor(0); Assert.assertTrue(s == null); }
protected Sensor getSensor(int id) { Sensor sensor = deviceStateCache.getSensor(id); if (sensor == null) { log.error( "Attempted to access sensor with id ''{0}'' which did not exist in device " + "state cache.", id ); } return sensor; }
Deployer { protected Sensor getSensor(int id) { Sensor sensor = deviceStateCache.getSensor(id); if (sensor == null) { log.error( "Attempted to access sensor with id ''{0}'' which did not exist in device " + "state cache.", id ); } return sensor; } }
Deployer { protected Sensor getSensor(int id) { Sensor sensor = deviceStateCache.getSensor(id); if (sensor == null) { log.error( "Attempted to access sensor with id ''{0}'' which did not exist in device " + "state cache.", id ); } return sensor; } Deployer(String serviceName, StatusCache deviceStateCache,
                  ControllerConfiguration controllerConfig,
                  Map<String, ModelBuilder> builders); }
Deployer { protected Sensor getSensor(int id) { Sensor sensor = deviceStateCache.getSensor(id); if (sensor == null) { log.error( "Attempted to access sensor with id ''{0}'' which did not exist in device " + "state cache.", id ); } return sensor; } Deployer(String serviceName, StatusCache deviceStateCache,
                  ControllerConfiguration controllerConfig,
                  Map<String, ModelBuilder> builders); synchronized void startController(); boolean isPaused(); void softRestart(); void deployFromZip(InputStream inputStream); void deployFromOnline(String username, String credentials); Element queryElementById(int id); Map<String, String> getConfigurationProperties(); Sensor getSensorFromComponentInclude(Element componentIncludeElement); void announceDiscoveredDevices(List<DiscoveredDeviceDTO> list); String getLinkedAccountId(); void unlinkController(); }
Deployer { protected Sensor getSensor(int id) { Sensor sensor = deviceStateCache.getSensor(id); if (sensor == null) { log.error( "Attempted to access sensor with id ''{0}'' which did not exist in device " + "state cache.", id ); } return sensor; } Deployer(String serviceName, StatusCache deviceStateCache,
                  ControllerConfiguration controllerConfig,
                  Map<String, ModelBuilder> builders); synchronized void startController(); boolean isPaused(); void softRestart(); void deployFromZip(InputStream inputStream); void deployFromOnline(String username, String credentials); Element queryElementById(int id); Map<String, String> getConfigurationProperties(); Sensor getSensorFromComponentInclude(Element componentIncludeElement); void announceDiscoveredDevices(List<DiscoveredDeviceDTO> list); String getLinkedAccountId(); void unlinkController();  }