@Test public void healthCheck() { System.setProperty(TASK_ASSIGNING_USER_SYSTEM_NAME, USER_SYSTEM_NAME); enableExtension(); extension.init(kieServer, registry); List<Message> messages = extension.healthCheck(true); assertContainsMesssage(messages, Severity.INFO, HEALTH_CHECK_IS_ALIVE_MESSAGE, 0); }
@Override public List<Message> healthCheck(boolean report) { List<Message> messages = KieServerExtension.super.healthCheck(report); if (!permanentErrors.isEmpty()) { messages.addAll(permanentErrors); } else if (report) { messages.add(new Message(Severity.INFO, HEALTH_CHECK_IS_ALIVE_MESSAGE)); } return messages; }
TaskAssigningPlanningKieServerExtension implements KieServerExtension { @Override public List<Message> healthCheck(boolean report) { List<Message> messages = KieServerExtension.super.healthCheck(report); if (!permanentErrors.isEmpty()) { messages.addAll(permanentErrors); } else if (report) { messages.add(new Message(Severity.INFO, HEALTH_CHECK_IS_ALIVE_MESSAGE)); } return messages; } }
TaskAssigningPlanningKieServerExtension implements KieServerExtension { @Override public List<Message> healthCheck(boolean report) { List<Message> messages = KieServerExtension.super.healthCheck(report); if (!permanentErrors.isEmpty()) { messages.addAll(permanentErrors); } else if (report) { messages.add(new Message(Severity.INFO, HEALTH_CHECK_IS_ALIVE_MESSAGE)); } return messages; }  }
TaskAssigningPlanningKieServerExtension implements KieServerExtension { @Override public List<Message> healthCheck(boolean report) { List<Message> messages = KieServerExtension.super.healthCheck(report); if (!permanentErrors.isEmpty()) { messages.addAll(permanentErrors); } else if (report) { messages.add(new Message(Severity.INFO, HEALTH_CHECK_IS_ALIVE_MESSAGE)); } return messages; }  @Override boolean isActive(); @Override void init(KieServerImpl kieServer, KieServerRegistry registry); @Override boolean isInitialized(); @Override void createContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void updateContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override boolean isUpdateContainerAllowed(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void disposeContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override List<Object> getAppComponents(SupportedTransports type); @Override T getAppComponents(Class<T> serviceType); @Override String getImplementedCapability(); @Override List<Object> getServices(); @Override String getExtensionName(); @Override Integer getStartOrder(); @Override String toString(); @Override void serverStarted(); @Override void destroy(KieServerImpl kieServer, KieServerRegistry registry); @Override List<Message> healthCheck(boolean report); }
TaskAssigningPlanningKieServerExtension implements KieServerExtension { @Override public List<Message> healthCheck(boolean report) { List<Message> messages = KieServerExtension.super.healthCheck(report); if (!permanentErrors.isEmpty()) { messages.addAll(permanentErrors); } else if (report) { messages.add(new Message(Severity.INFO, HEALTH_CHECK_IS_ALIVE_MESSAGE)); } return messages; }  @Override boolean isActive(); @Override void init(KieServerImpl kieServer, KieServerRegistry registry); @Override boolean isInitialized(); @Override void createContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void updateContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override boolean isUpdateContainerAllowed(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void disposeContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override List<Object> getAppComponents(SupportedTransports type); @Override T getAppComponents(Class<T> serviceType); @Override String getImplementedCapability(); @Override List<Object> getServices(); @Override String getExtensionName(); @Override Integer getStartOrder(); @Override String toString(); @Override void serverStarted(); @Override void destroy(KieServerImpl kieServer, KieServerRegistry registry); @Override List<Message> healthCheck(boolean report);  }