test_class.declarator: elasticsearchIncidentRepository
test_class.modifier: private
test_class.original_string: private ElasticsearchIncidentRepository elasticsearchIncidentRepository;
test_class.type: ElasticsearchIncidentRepository
test_class.var_name: elasticsearchIncidentRepository
test_class.file: stagemonitor-alerting/src/test/java/org/stagemonitor/alerting/incident/ElasticsearchIncidentRepositoryTest.java
test_class.identifier: ElasticsearchIncidentRepositoryTest
test_class.superclass: extends AbstractElasticsearchTest
test_case.body: @Test
  	public void testGetNonExistingIncindent() throws Exception {
  		assertThat(elasticsearchIncidentRepository.getIncidentByCheckId("test 1")).isNull();
  	}
test_case.class_method_signature: ElasticsearchIncidentRepositoryTest.testGetNonExistingIncindent()
test_case.full_signature: @Test public void testGetNonExistingIncindent()
test_case.identifier: testGetNonExistingIncindent
test_case.invocations: isNull assertThat getIncidentByCheckId
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetNonExistingIncindent()
focal_class.declarator: BASE_URL = "/stagemonitor/incidents"
focal_class.modifier: public static final
focal_class.original_string: public static final String BASE_URL = "/stagemonitor/incidents";
focal_class.type: String
focal_class.var_name: BASE_URL
focal_class.declarator: elasticsearchClient
focal_class.modifier: private
focal_class.original_string: private ElasticsearchClient elasticsearchClient;
focal_class.type: ElasticsearchClient
focal_class.var_name: elasticsearchClient
focal_class.file: stagemonitor-alerting/src/main/java/org/stagemonitor/alerting/incident/ElasticsearchIncidentRepository.java
focal_class.identifier: ElasticsearchIncidentRepository
focal_class.interfaces: implements IncidentRepository
focal_class.class_method_signature: ElasticsearchIncidentRepository.ElasticsearchIncidentRepository(ElasticsearchClient elasticsearchClient)
focal_class.full_signature: public  ElasticsearchIncidentRepository(ElasticsearchClient elasticsearchClient)
focal_class.identifier: ElasticsearchIncidentRepository
focal_class.modifiers: public
focal_class.parameters: (ElasticsearchClient elasticsearchClient)
focal_class.signature:  ElasticsearchIncidentRepository(ElasticsearchClient elasticsearchClient)
focal_class.class_method_signature: ElasticsearchIncidentRepository.getAllIncidents()
focal_class.full_signature: @Override public Collection<Incident> getAllIncidents()
focal_class.identifier: getAllIncidents
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<Incident>
focal_class.signature: Collection<Incident> getAllIncidents()
focal_class.class_method_signature: ElasticsearchIncidentRepository.getIncidentByCheckId(String checkId)
focal_class.full_signature: @Override public Incident getIncidentByCheckId(String checkId)
focal_class.identifier: getIncidentByCheckId
focal_class.modifiers: @Override public
focal_class.parameters: (String checkId)
focal_class.return: Incident
focal_class.signature: Incident getIncidentByCheckId(String checkId)
focal_class.class_method_signature: ElasticsearchIncidentRepository.deleteIncident(Incident incident)
focal_class.full_signature: @Override public boolean deleteIncident(Incident incident)
focal_class.identifier: deleteIncident
focal_class.modifiers: @Override public
focal_class.parameters: (Incident incident)
focal_class.return: boolean
focal_class.signature: boolean deleteIncident(Incident incident)
focal_class.class_method_signature: ElasticsearchIncidentRepository.getEsId(Incident incident)
focal_class.full_signature: private String getEsId(Incident incident)
focal_class.identifier: getEsId
focal_class.modifiers: private
focal_class.parameters: (Incident incident)
focal_class.return: String
focal_class.signature: String getEsId(Incident incident)
focal_class.class_method_signature: ElasticsearchIncidentRepository.getEsId(String checkId)
focal_class.full_signature: private String getEsId(String checkId)
focal_class.identifier: getEsId
focal_class.modifiers: private
focal_class.parameters: (String checkId)
focal_class.return: String
focal_class.signature: String getEsId(String checkId)
focal_class.class_method_signature: ElasticsearchIncidentRepository.createIncident(Incident incident)
focal_class.full_signature: @Override public boolean createIncident(Incident incident)
focal_class.identifier: createIncident
focal_class.modifiers: @Override public
focal_class.parameters: (Incident incident)
focal_class.return: boolean
focal_class.signature: boolean createIncident(Incident incident)
focal_class.class_method_signature: ElasticsearchIncidentRepository.updateIncident(Incident incident)
focal_class.full_signature: @Override public boolean updateIncident(Incident incident)
focal_class.identifier: updateIncident
focal_class.modifiers: @Override public
focal_class.parameters: (Incident incident)
focal_class.return: boolean
focal_class.signature: boolean updateIncident(Incident incident)
focal_class.class_method_signature: ElasticsearchIncidentRepository.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: ElasticsearchIncidentRepository.getVersionParameter(Incident incident)
focal_class.full_signature: private String getVersionParameter(Incident incident)
focal_class.identifier: getVersionParameter
focal_class.modifiers: private
focal_class.parameters: (Incident incident)
focal_class.return: String
focal_class.signature: String getVersionParameter(Incident incident)
focal_class.class_method_signature: ElasticsearchIncidentRepository.hasNoConflict(int statusCode)
focal_class.full_signature: private boolean hasNoConflict(int statusCode)
focal_class.identifier: hasNoConflict
focal_class.modifiers: private
focal_class.parameters: (int statusCode)
focal_class.return: boolean
focal_class.signature: boolean hasNoConflict(int statusCode)
focal_class.class_method_signature: ElasticsearchIncidentRepository.setElasticsearchClient(ElasticsearchClient elasticsearchClient)
focal_class.full_signature:  void setElasticsearchClient(ElasticsearchClient elasticsearchClient)
focal_class.identifier: setElasticsearchClient
focal_class.parameters: (ElasticsearchClient elasticsearchClient)
focal_class.return: void
focal_class.signature: void setElasticsearchClient(ElasticsearchClient elasticsearchClient)
focal_method.body: @Override
  	public Incident getIncidentByCheckId(String checkId) {
  		return elasticsearchClient.getObject(BASE_URL + "/" + getEsId(checkId), Incident.class);
  	}
focal_method.class_method_signature: ElasticsearchIncidentRepository.getIncidentByCheckId(String checkId)
focal_method.full_signature: @Override public Incident getIncidentByCheckId(String checkId)
focal_method.identifier: getIncidentByCheckId
focal_method.invocations: getObject getEsId
focal_method.modifiers: @Override public
focal_method.parameters: (String checkId)
focal_method.return: Incident
focal_method.signature: Incident getIncidentByCheckId(String checkId)