use of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry in project airavata by apache.
the class XBayaConfiguration method servicesChanged.
public void servicesChanged(ThriftServiceType type) {
if (type == ThriftServiceType.API_SERVICE) {
try {
Client airavataClient = XBayaUtil.getAiravataClient(getThriftClientData(ThriftServiceType.API_SERVICE));
if (getJcrComponentRegistry() == null) {
setJcrComponentRegistry(new JCRComponentRegistry(getThriftClientData(ThriftServiceType.API_SERVICE).getGatewayId(), airavataClient));
} else {
getJcrComponentRegistry().setClient(airavataClient);
}
triggerObservers(getJcrComponentRegistry());
} catch (AiravataClientConnectException e) {
logger.error(e.getMessage(), e);
}
}
}
Aggregations