in artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/artemis-service.ts [257:275]
async createClusterConnections(): Promise<ClusterConnections> {
return new Promise<ClusterConnections>(async (resolve, reject) => {
var brokerObjectName = await this.brokerObjectName;
const clusterConnectionSearch = brokerObjectName + ",component=cluster-connections,name=*";
var search = await jolokiaService.search(clusterConnectionSearch);
if (search) {
const clusterConnections: ClusterConnections = {
clusterConnections: []
};
for (var key in search) {
const clusterConnection: ClusterConnection = await jolokiaService.readAttributes(search[key]) as ClusterConnection;
clusterConnections.clusterConnections.push(clusterConnection);
}
resolve(clusterConnections);
}
reject("invalid response:");
});
}