use of org.eclipse.winery.model.adaptation.instance.InstanceModelRefinement in project winery by eclipse.
the class InstanceModelWebSocket method startInstanceModelRefinement.
private void startInstanceModelRefinement(QName serviceTemplate) {
Thread thread = new Thread(() -> {
this.instanceModelRefiner = new InstanceModelRefinement(this);
DataToSend dataToSend = new DataToSend();
dataToSend.topologyTemplate = this.instanceModelRefiner.refine(new ServiceTemplateId(serviceTemplate));
try {
this.sendAsync(dataToSend);
this.onClose(this.session);
} catch (JsonProcessingException e) {
logger.error("Error while sending final topology template!", e);
} catch (IOException e) {
logger.error("Error while closing web socket!", e);
}
});
thread.start();
}
Aggregations