Fixed messages

This commit is contained in:
Fabio Sinibaldi 2022-02-16 18:36:42 +01:00
parent 5e4a84a77f
commit bdefe8bbc5
2 changed files with 4 additions and 3 deletions

View File

@ -51,13 +51,13 @@ public class SDIMaterializerPlugin implements MaterializationPlugin {
public InitializationReport initInContext() throws InitializationException {
InitializationReport report = new InitializationReport();
try{
String context = ContextUtils.getCurrentScope();
if(getSDIManager()==null) {
String context = ContextUtils.getCurrentScope();
log.info("Initializing in " + context);
sdiManagerMap.put(context,new SDIManager());
}
report.setStatus(Report.Status.OK);
report.putMessage("Initialized SDI Manager");
report.putMessage("Initialized SDI Manager in "+context+" pointing to "+getSDIManager().getGeoserverHostName());
} catch (SDIInteractionException e) {
throw new InitializationException("Unable to initialize SDI Manager ",e);
}

View File

@ -49,8 +49,9 @@ public class SDIManager {
private final GISInterface gis;
@Getter
private final DataTransferClient dtGeoServer;
@Getter
private final String geoserverHostName;
@Getter
private final AbstractGeoServerDescriptor currentGeoserver;