- // Force this onto the console by using level WARN
- logger.warn("main: version '{}' successful start", getVersion());
+ }
+
+ @Override
+ public void run(String... args) throws Exception {
+ // Ensure output appears on the console by using level WARN
+ logger.warn("run: version '{}'", getImplementationVersion(MethodHandles.lookup().lookupClass()));
+ // Validate configuration
+ List<RicInstance> instances = instanceConfig.getInstances();
+ Assert.notEmpty(instances, "Instance list empty");
+ for (RicInstance it : instances) {
+ logger.warn("run: RIC instance {}", it);
+ Assert.hasText(it.getKey(), "Instance key missing");
+ Assert.hasText(it.getName(), "Name missing for instance " + it.getKey());
+ Assert.hasText(it.getAppUrlPrefix(), "App URL prefix missing for instance " + it.getKey());
+ Assert.hasText(it.getCaasUrlPrefix(), "Caas URL prefix missing for instance " + it.getKey());
+ Assert.hasText(it.getPltUrlPrefix(), "Plt URL prefix missing for instance " + it.getKey());
+ }