test_class.declarator: baseSensor = new Sensor()
test_class.modifier: private
test_class.original_string: private Sensor baseSensor = new Sensor();
test_class.type: Sensor
test_class.var_name: baseSensor
test_class.file: sensor/src/test/java/com/oneops/sensor/SensorTest.java
test_class.identifier: SensorTest
test_case.body: @Test
      public void loadStatementsTest() {
          baseSensor.setTsDao(mock(ThresholdsDao.class));
          baseSensor.loadStatements(0, "mock-source");
          // assert(outMap.size()>0);
          //TODO anyway to check ?
  
      }
test_case.class_method_signature: SensorTest.loadStatementsTest()
test_case.full_signature: @Test public void loadStatementsTest()
test_case.identifier: loadStatementsTest
test_case.invocations: setTsDao mock loadStatements
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void loadStatementsTest()
focal_class.declarator: logger = Logger.getLogger(Sensor.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = Logger.getLogger(Sensor.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: HEARTBEAT = "heartbeat"
focal_class.modifier: private static final
focal_class.original_string: private static final String HEARTBEAT = "heartbeat";
focal_class.type: String
focal_class.var_name: HEARTBEAT
focal_class.declarator: DURATION = "duration"
focal_class.modifier: private static final
focal_class.original_string: private static final String DURATION = "duration";
focal_class.type: String
focal_class.var_name: DURATION
focal_class.declarator: METRIC = "metric"
focal_class.modifier: private static final
focal_class.original_string: private static final String METRIC = "metric";
focal_class.type: String
focal_class.var_name: METRIC
focal_class.declarator: ESPER_THREADS = "com.oneops.sensor.esper.threads"
focal_class.modifier: private static final
focal_class.original_string: private static final String ESPER_THREADS = "com.oneops.sensor.esper.threads";
focal_class.type: String
focal_class.var_name: ESPER_THREADS
focal_class.declarator: RELOAD_TRS = "com.oneops.sensor.thresholds.checkonevent"
focal_class.modifier: private static final
focal_class.original_string: private static final String RELOAD_TRS = "com.oneops.sensor.thresholds.checkonevent";
focal_class.type: String
focal_class.var_name: RELOAD_TRS
focal_class.declarator: ESPER_INBOUND_THREADS = Integer.valueOf(getProperty(ESPER_THREADS, "16"))
focal_class.modifier: private static final
focal_class.original_string: private static final int ESPER_INBOUND_THREADS = Integer.valueOf(getProperty(ESPER_THREADS, "16"));
focal_class.type: int
focal_class.var_name: ESPER_INBOUND_THREADS
focal_class.declarator: ESPER_OUTBOUND_THREADS = Integer.valueOf(getProperty(ESPER_THREADS, "16"))
focal_class.modifier: private static final
focal_class.original_string: private static final int ESPER_OUTBOUND_THREADS = Integer.valueOf(getProperty(ESPER_THREADS, "16"));
focal_class.type: int
focal_class.var_name: ESPER_OUTBOUND_THREADS
focal_class.declarator: ESPER_ROUTE_EXEC_THREADS = Integer.valueOf(getProperty(ESPER_THREADS, "16"))
focal_class.modifier: private static final
focal_class.original_string: private static final int ESPER_ROUTE_EXEC_THREADS = Integer.valueOf(getProperty(ESPER_THREADS, "16"));
focal_class.type: int
focal_class.var_name: ESPER_ROUTE_EXEC_THREADS
focal_class.declarator: ESPER_TIMER_THREADS = Integer.valueOf(getProperty(ESPER_THREADS, "16"))
focal_class.modifier: private static final
focal_class.original_string: private static final int ESPER_TIMER_THREADS = Integer.valueOf(getProperty(ESPER_THREADS, "16"));
focal_class.type: int
focal_class.var_name: ESPER_TIMER_THREADS
focal_class.declarator: CHECK_TR_ON_EVENT = Boolean.valueOf(getProperty(RELOAD_TRS, "false"))
focal_class.modifier: private static final
focal_class.original_string: private static final boolean CHECK_TR_ON_EVENT = Boolean.valueOf(getProperty(RELOAD_TRS, "false"));
focal_class.type: boolean
focal_class.var_name: CHECK_TR_ON_EVENT
focal_class.declarator: ROW_COUNT = "com.oneops.sensor.events.batchsize"
focal_class.modifier: public static final
focal_class.original_string: public static final String ROW_COUNT = "com.oneops.sensor.events.batchsize";
focal_class.type: String
focal_class.var_name: ROW_COUNT
focal_class.declarator: READ_ROWCOUNT = Integer.valueOf(getProperty(ROW_COUNT, "1000"))
focal_class.modifier: public static final
focal_class.original_string: public static final int READ_ROWCOUNT = Integer.valueOf(getProperty(ROW_COUNT, "1000"));
focal_class.type: int
focal_class.var_name: READ_ROWCOUNT
focal_class.declarator: gson = new Gson()
focal_class.modifier: private final
focal_class.original_string: private final Gson gson = new Gson();
focal_class.type: Gson
focal_class.var_name: gson
focal_class.declarator: random = new Random()
focal_class.modifier: private final
focal_class.original_string: private final Random random = new Random();
focal_class.type: Random
focal_class.var_name: random
focal_class.declarator: loadedThresholds = new HashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<Long, Map<String, ThresholdStatements>> loadedThresholds = new HashMap<>();
focal_class.type: Map<Long, Map<String, ThresholdStatements>>
focal_class.var_name: loadedThresholds
focal_class.declarator: instanceId
focal_class.modifier: private
focal_class.original_string: private int instanceId;
focal_class.type: int
focal_class.var_name: instanceId
focal_class.declarator: poolSize
focal_class.modifier: private
focal_class.original_string: private int poolSize;
focal_class.type: int
focal_class.var_name: poolSize
focal_class.declarator: isInited = false
focal_class.modifier: private
focal_class.original_string: private boolean isInited = false;
focal_class.type: boolean
focal_class.var_name: isInited
focal_class.declarator: epService
focal_class.modifier: private
focal_class.original_string: private EPServiceProvider epService;
focal_class.type: EPServiceProvider
focal_class.var_name: epService
focal_class.declarator: tsDao
focal_class.modifier: private
focal_class.original_string: private ThresholdsDao tsDao;
focal_class.type: ThresholdsDao
focal_class.var_name: tsDao
focal_class.declarator: opsEventDao
focal_class.modifier: private
focal_class.original_string: private OpsEventDao opsEventDao;
focal_class.type: OpsEventDao
focal_class.var_name: opsEventDao
focal_class.declarator: stmtBuilder
focal_class.modifier: private
focal_class.original_string: private StmtBuilder stmtBuilder;
focal_class.type: StmtBuilder
focal_class.var_name: stmtBuilder
focal_class.declarator: coProcessor
focal_class.modifier: private
focal_class.original_string: private CiOpsProcessor coProcessor;
focal_class.type: CiOpsProcessor
focal_class.var_name: coProcessor
focal_class.declarator: ciStateProcessor
focal_class.modifier: private
focal_class.original_string: private CiStateProcessor ciStateProcessor;
focal_class.type: CiStateProcessor
focal_class.var_name: ciStateProcessor
focal_class.declarator: listeners
focal_class.modifier: private
focal_class.original_string: private Map<String, UpdateListener> listeners;
focal_class.type: Map<String, UpdateListener>
focal_class.var_name: listeners
focal_class.declarator: minHeartbeatSeedDelay = 300
focal_class.modifier: private
focal_class.original_string: private int minHeartbeatSeedDelay = 300;
focal_class.type: int
focal_class.var_name: minHeartbeatSeedDelay
focal_class.declarator: heartbeatRandomDelay = 30
focal_class.modifier: private
focal_class.original_string: private int heartbeatRandomDelay = 30;
focal_class.type: int
focal_class.var_name: heartbeatRandomDelay
focal_class.declarator: replacedInstances
focal_class.modifier: private
focal_class.original_string: private ReplacedInstances replacedInstances;
focal_class.type: ReplacedInstances
focal_class.var_name: replacedInstances
focal_class.declarator: loadStatementTimeOut
focal_class.modifier: private
focal_class.original_string: private int loadStatementTimeOut;
focal_class.type: int
focal_class.var_name: loadStatementTimeOut
focal_class.file: sensor/src/main/java/com/oneops/sensor/Sensor.java
focal_class.identifier: Sensor
focal_class.class_method_signature: Sensor.setStmtBuilder(StmtBuilder stmtBuilder)
focal_class.full_signature: public void setStmtBuilder(StmtBuilder stmtBuilder)
focal_class.identifier: setStmtBuilder
focal_class.modifiers: public
focal_class.parameters: (StmtBuilder stmtBuilder)
focal_class.return: void
focal_class.signature: void setStmtBuilder(StmtBuilder stmtBuilder)
focal_class.class_method_signature: Sensor.setCoProcessor(CiOpsProcessor coProcessor)
focal_class.full_signature: public void setCoProcessor(CiOpsProcessor coProcessor)
focal_class.identifier: setCoProcessor
focal_class.modifiers: public
focal_class.parameters: (CiOpsProcessor coProcessor)
focal_class.return: void
focal_class.signature: void setCoProcessor(CiOpsProcessor coProcessor)
focal_class.class_method_signature: Sensor.getEpService()
focal_class.full_signature: public EPServiceProvider getEpService()
focal_class.identifier: getEpService
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EPServiceProvider
focal_class.signature: EPServiceProvider getEpService()
focal_class.class_method_signature: Sensor.setTsDao(ThresholdsDao tsDao)
focal_class.full_signature: public void setTsDao(ThresholdsDao tsDao)
focal_class.identifier: setTsDao
focal_class.modifiers: public
focal_class.parameters: (ThresholdsDao tsDao)
focal_class.return: void
focal_class.signature: void setTsDao(ThresholdsDao tsDao)
focal_class.class_method_signature: Sensor.setOpsEventDao(OpsEventDao opsEventsDao)
focal_class.full_signature: public void setOpsEventDao(OpsEventDao opsEventsDao)
focal_class.identifier: setOpsEventDao
focal_class.modifiers: public
focal_class.parameters: (OpsEventDao opsEventsDao)
focal_class.return: void
focal_class.signature: void setOpsEventDao(OpsEventDao opsEventsDao)
focal_class.class_method_signature: Sensor.setListeners(Map<String, UpdateListener> listeners)
focal_class.full_signature: public void setListeners(Map<String, UpdateListener> listeners)
focal_class.identifier: setListeners
focal_class.modifiers: public
focal_class.parameters: (Map<String, UpdateListener> listeners)
focal_class.return: void
focal_class.signature: void setListeners(Map<String, UpdateListener> listeners)
focal_class.class_method_signature: Sensor.init(int instanceId, int poolSize)
focal_class.full_signature: public void init(int instanceId, int poolSize)
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: (int instanceId, int poolSize)
focal_class.return: void
focal_class.signature: void init(int instanceId, int poolSize)
focal_class.class_method_signature: Sensor.cleanup()
focal_class.full_signature: public void cleanup()
focal_class.identifier: cleanup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cleanup()
focal_class.class_method_signature: Sensor.stop()
focal_class.full_signature: public void stop()
focal_class.identifier: stop
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void stop()
focal_class.class_method_signature: Sensor.initDefaultStatements()
focal_class.full_signature: private void initDefaultStatements()
focal_class.identifier: initDefaultStatements
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initDefaultStatements()
focal_class.class_method_signature: Sensor.initChannelDownStatement()
focal_class.full_signature: private void initChannelDownStatement()
focal_class.identifier: initChannelDownStatement
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initChannelDownStatement()
focal_class.class_method_signature: Sensor.addStatementToEngine(String stmtName, String stmt, String listenerName)
focal_class.full_signature: private void addStatementToEngine(String stmtName, String stmt, String listenerName)
focal_class.identifier: addStatementToEngine
focal_class.modifiers: private
focal_class.parameters: (String stmtName, String stmt, String listenerName)
focal_class.return: void
focal_class.signature: void addStatementToEngine(String stmtName, String stmt, String listenerName)
focal_class.class_method_signature: Sensor.sendOpsEvent(OpsEvent e)
focal_class.full_signature:  void sendOpsEvent(OpsEvent e)
focal_class.identifier: sendOpsEvent
focal_class.parameters: (OpsEvent e)
focal_class.return: void
focal_class.signature: void sendOpsEvent(OpsEvent e)
focal_class.class_method_signature: Sensor.getAllOpenEvents()
focal_class.full_signature: private Observable<OpsEvent> getAllOpenEvents()
focal_class.identifier: getAllOpenEvents
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Observable<OpsEvent>
focal_class.signature: Observable<OpsEvent> getAllOpenEvents()
focal_class.class_method_signature: Sensor.addCiThresholdsList(long ciId, long manifestId, List<CmsRfcCISimple> monitors)
focal_class.full_signature: public void addCiThresholdsList(long ciId, long manifestId, List<CmsRfcCISimple> monitors)
focal_class.identifier: addCiThresholdsList
focal_class.modifiers: public
focal_class.parameters: (long ciId, long manifestId, List<CmsRfcCISimple> monitors)
focal_class.return: void
focal_class.signature: void addCiThresholdsList(long ciId, long manifestId, List<CmsRfcCISimple> monitors)
focal_class.class_method_signature: Sensor.removeStmtFromEngine(long manifestId, String source, String eplName)
focal_class.full_signature: private void removeStmtFromEngine(long manifestId, String source, String eplName)
focal_class.identifier: removeStmtFromEngine
focal_class.modifiers: private
focal_class.parameters: (long manifestId, String source, String eplName)
focal_class.return: void
focal_class.signature: void removeStmtFromEngine(long manifestId, String source, String eplName)
focal_class.class_method_signature: Sensor.removeCi(long ciId, long manifestId)
focal_class.full_signature: public void removeCi(long ciId, long manifestId)
focal_class.identifier: removeCi
focal_class.modifiers: public
focal_class.parameters: (long ciId, long manifestId)
focal_class.return: void
focal_class.signature: void removeCi(long ciId, long manifestId)
focal_class.class_method_signature: Sensor.persistAndaddToEngine(long ciId, long manifestId, String source, long checksum, String thresholdsJson, boolean isHeartbeat, String hbDuration)
focal_class.full_signature: private void persistAndaddToEngine(long ciId, long manifestId, String source, long checksum, String thresholdsJson, boolean isHeartbeat, String hbDuration)
focal_class.identifier: persistAndaddToEngine
focal_class.modifiers: private
focal_class.parameters: (long ciId, long manifestId, String source, long checksum, String thresholdsJson, boolean isHeartbeat, String hbDuration)
focal_class.return: void
focal_class.signature: void persistAndaddToEngine(long ciId, long manifestId, String source, long checksum, String thresholdsJson, boolean isHeartbeat, String hbDuration)
focal_class.class_method_signature: Sensor.insertFakeEvent(long ciId, long manifestId, String source)
focal_class.full_signature: public void insertFakeEvent(long ciId, long manifestId, String source)
focal_class.identifier: insertFakeEvent
focal_class.modifiers: public
focal_class.parameters: (long ciId, long manifestId, String source)
focal_class.return: void
focal_class.signature: void insertFakeEvent(long ciId, long manifestId, String source)
focal_class.class_method_signature: Sensor.insertFakeEventWithDelay(long ciId, long manifestId, String source, int delay)
focal_class.full_signature: public void insertFakeEventWithDelay(long ciId, long manifestId, String source, int delay)
focal_class.identifier: insertFakeEventWithDelay
focal_class.modifiers: public
focal_class.parameters: (long ciId, long manifestId, String source, int delay)
focal_class.return: void
focal_class.signature: void insertFakeEventWithDelay(long ciId, long manifestId, String source, int delay)
focal_class.class_method_signature: Sensor.insertOpenCloseFakeEvent(long ciId, long manifestId, String source)
focal_class.full_signature: public void insertOpenCloseFakeEvent(long ciId, long manifestId, String source)
focal_class.identifier: insertOpenCloseFakeEvent
focal_class.modifiers: public
focal_class.parameters: (long ciId, long manifestId, String source)
focal_class.return: void
focal_class.signature: void insertOpenCloseFakeEvent(long ciId, long manifestId, String source)
focal_class.class_method_signature: Sensor.sendCEPEvent(BasicEvent event)
focal_class.full_signature: public void sendCEPEvent(BasicEvent event)
focal_class.identifier: sendCEPEvent
focal_class.modifiers: public
focal_class.parameters: (BasicEvent event)
focal_class.return: void
focal_class.signature: void sendCEPEvent(BasicEvent event)
focal_class.class_method_signature: Sensor.isMetricsValid(BasicEvent event)
focal_class.full_signature: private boolean isMetricsValid(BasicEvent event)
focal_class.identifier: isMetricsValid
focal_class.modifiers: private
focal_class.parameters: (BasicEvent event)
focal_class.return: boolean
focal_class.signature: boolean isMetricsValid(BasicEvent event)
focal_class.class_method_signature: Sensor.isMetricMapValid(Map<String, Double> metrics)
focal_class.full_signature: private boolean isMetricMapValid(Map<String, Double> metrics)
focal_class.identifier: isMetricMapValid
focal_class.modifiers: private
focal_class.parameters: (Map<String, Double> metrics)
focal_class.return: boolean
focal_class.signature: boolean isMetricMapValid(Map<String, Double> metrics)
focal_class.class_method_signature: Sensor.loadStatements(long manifestId, String source)
focal_class.full_signature: public boolean loadStatements(long manifestId, String source)
focal_class.identifier: loadStatements
focal_class.modifiers: public
focal_class.parameters: (long manifestId, String source)
focal_class.return: boolean
focal_class.signature: boolean loadStatements(long manifestId, String source)
focal_class.class_method_signature: Sensor.loadThresholds()
focal_class.full_signature: private Observable<FakeEvent> loadThresholds()
focal_class.identifier: loadThresholds
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Observable<FakeEvent>
focal_class.signature: Observable<FakeEvent> loadThresholds()
focal_class.class_method_signature: Sensor.handleError(Throwable t)
focal_class.full_signature: private void handleError(Throwable t)
focal_class.identifier: handleError
focal_class.modifiers: private
focal_class.parameters: (Throwable t)
focal_class.return: void
focal_class.signature: void handleError(Throwable t)
focal_class.class_method_signature: Sensor.loadAllStatements()
focal_class.full_signature: private void loadAllStatements()
focal_class.identifier: loadAllStatements
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadAllStatements()
focal_class.class_method_signature: Sensor.validateThreshold(Threshold tr)
focal_class.full_signature: private boolean validateThreshold(Threshold tr)
focal_class.identifier: validateThreshold
focal_class.modifiers: private
focal_class.parameters: (Threshold tr)
focal_class.return: boolean
focal_class.signature: boolean validateThreshold(Threshold tr)
focal_class.class_method_signature: Sensor.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_class.class_method_signature: Sensor.getAllLoadedStmts()
focal_class.full_signature: public Map<String, String> getAllLoadedStmts()
focal_class.identifier: getAllLoadedStmts
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getAllLoadedStmts()
focal_class.class_method_signature: Sensor.getThreshold(long manifestId, String source)
focal_class.full_signature: private Threshold getThreshold(long manifestId, String source)
focal_class.identifier: getThreshold
focal_class.modifiers: private
focal_class.parameters: (long manifestId, String source)
focal_class.return: Threshold
focal_class.signature: Threshold getThreshold(long manifestId, String source)
focal_class.class_method_signature: Sensor.persistThreshold(long ciId,
                                    long manifestId,
                                    String source,
                                    long checksum,
                                    String thresholdsJson,
                                    boolean isHeartbeat,
                                    String hbDuration)
focal_class.full_signature: private void persistThreshold(long ciId,
                                    long manifestId,
                                    String source,
                                    long checksum,
                                    String thresholdsJson,
                                    boolean isHeartbeat,
                                    String hbDuration)
focal_class.identifier: persistThreshold
focal_class.modifiers: private
focal_class.parameters: (long ciId,
                                    long manifestId,
                                    String source,
                                    long checksum,
                                    String thresholdsJson,
                                    boolean isHeartbeat,
                                    String hbDuration)
focal_class.return: void
focal_class.signature: void persistThreshold(long ciId,
                                    long manifestId,
                                    String source,
                                    long checksum,
                                    String thresholdsJson,
                                    boolean isHeartbeat,
                                    String hbDuration)
focal_class.class_method_signature: Sensor.isManagedByThisInstance(long manifestId)
focal_class.full_signature: public boolean isManagedByThisInstance(long manifestId)
focal_class.identifier: isManagedByThisInstance
focal_class.modifiers: public
focal_class.parameters: (long manifestId)
focal_class.return: boolean
focal_class.signature: boolean isManagedByThisInstance(long manifestId)
focal_class.class_method_signature: Sensor.handleReplace(long ciId, long manifestId)
focal_class.full_signature: public void handleReplace(long ciId, long manifestId)
focal_class.identifier: handleReplace
focal_class.modifiers: public
focal_class.parameters: (long ciId, long manifestId)
focal_class.return: void
focal_class.signature: void handleReplace(long ciId, long manifestId)
focal_class.class_method_signature: Sensor.setMinHeartbeatSeedDelay(int minHeartbeatSeedDelay)
focal_class.full_signature: public void setMinHeartbeatSeedDelay(int minHeartbeatSeedDelay)
focal_class.identifier: setMinHeartbeatSeedDelay
focal_class.modifiers: public
focal_class.parameters: (int minHeartbeatSeedDelay)
focal_class.return: void
focal_class.signature: void setMinHeartbeatSeedDelay(int minHeartbeatSeedDelay)
focal_class.class_method_signature: Sensor.setHeartbeatRandomDelay(int heartbeatRandomDelay)
focal_class.full_signature: public void setHeartbeatRandomDelay(int heartbeatRandomDelay)
focal_class.identifier: setHeartbeatRandomDelay
focal_class.modifiers: public
focal_class.parameters: (int heartbeatRandomDelay)
focal_class.return: void
focal_class.signature: void setHeartbeatRandomDelay(int heartbeatRandomDelay)
focal_class.class_method_signature: Sensor.setCiStateProcessor(CiStateProcessor ciStateProcessor)
focal_class.full_signature: public void setCiStateProcessor(CiStateProcessor ciStateProcessor)
focal_class.identifier: setCiStateProcessor
focal_class.modifiers: public
focal_class.parameters: (CiStateProcessor ciStateProcessor)
focal_class.return: void
focal_class.signature: void setCiStateProcessor(CiStateProcessor ciStateProcessor)
focal_class.class_method_signature: Sensor.setReplacedInstances(ReplacedInstances replacedInstances)
focal_class.full_signature: public void setReplacedInstances(ReplacedInstances replacedInstances)
focal_class.identifier: setReplacedInstances
focal_class.modifiers: public
focal_class.parameters: (ReplacedInstances replacedInstances)
focal_class.return: void
focal_class.signature: void setReplacedInstances(ReplacedInstances replacedInstances)
focal_class.class_method_signature: Sensor.getLoadStatementTimeOut()
focal_class.full_signature: public int getLoadStatementTimeOut()
focal_class.identifier: getLoadStatementTimeOut
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getLoadStatementTimeOut()
focal_class.class_method_signature: Sensor.setLoadStatementTimeOut(int loadStatementTimeOut)
focal_class.full_signature: public void setLoadStatementTimeOut(int loadStatementTimeOut)
focal_class.identifier: setLoadStatementTimeOut
focal_class.modifiers: public
focal_class.parameters: (int loadStatementTimeOut)
focal_class.return: void
focal_class.signature: void setLoadStatementTimeOut(int loadStatementTimeOut)
focal_method.body: public boolean loadStatements(long manifestId, String source) {
          Threshold tr = getThreshold(manifestId, source);
          if (tr == null) {
              //no thresholds defined
              return false;
          }
          ThresholdStatements stmts = stmtBuilder.getThresholdStatements(
                  manifestId,
                  source,
                  tr.getCrc(),
                  tr.getThresholdJson(),
                  tr.isHeartbeat(),
                  tr.getHbDuration());
  
          for (String stmtName : stmts.getStatements().keySet()) {
              SensorStatement stmt = stmts.getStatements().get(stmtName);
              addStatementToEngine(stmt.getStmtName(), stmt.getStmtText(), stmt.getListenerName());
          }
  
          if (!loadedThresholds.containsKey(manifestId)) {
              loadedThresholds.put(manifestId, new HashMap<String, ThresholdStatements>());
          }
          loadedThresholds.get(manifestId).put(source, stmts);
          return true;
      }
focal_method.class_method_signature: Sensor.loadStatements(long manifestId, String source)
focal_method.full_signature: public boolean loadStatements(long manifestId, String source)
focal_method.identifier: loadStatements
focal_method.invocations: getThreshold getThresholdStatements getCrc getThresholdJson isHeartbeat getHbDuration keySet getStatements get getStatements addStatementToEngine getStmtName getStmtText getListenerName containsKey put put get
focal_method.modifiers: public
focal_method.parameters: (long manifestId, String source)
focal_method.return: boolean
focal_method.signature: boolean loadStatements(long manifestId, String source)