use of com.microsoft.azure.management.eventhub.EventHubNamespace in project azure-tools-for-java by Microsoft.
the class CreateFunctionForm method getEventHubNameSpaces.
private List<EventHubNamespace> getEventHubNameSpaces() {
if (eventHubNamespaces == null) {
eventHubNamespaces = new ArrayList<>();
final List<Subscription> subs = az(AzureAccount.class).account().getSelectedSubscriptions();
for (final Subscription subscriptionId : subs) {
final Azure azure = AuthMethodManager.getInstance().getAzureClient(subscriptionId.getId());
final PagedList<EventHubNamespace> pagedList = azure.eventHubNamespaces().list();
pagedList.loadAll();
eventHubNamespaces.addAll(pagedList);
eventHubNamespaces.sort(Comparator.comparing(HasName::name));
}
}
return eventHubNamespaces;
}
use of com.microsoft.azure.management.eventhub.EventHubNamespace in project azure-tools-for-java by microsoft.
the class CreateFunctionForm method getEventHubNameSpaces.
private List<EventHubNamespace> getEventHubNameSpaces() {
if (eventHubNamespaces == null) {
eventHubNamespaces = new ArrayList<>();
final List<Subscription> subs = az(AzureAccount.class).account().getSelectedSubscriptions();
for (final Subscription subscriptionId : subs) {
final Azure azure = AuthMethodManager.getInstance().getAzureClient(subscriptionId.getId());
final PagedList<EventHubNamespace> pagedList = azure.eventHubNamespaces().list();
pagedList.loadAll();
eventHubNamespaces.addAll(pagedList);
eventHubNamespaces.sort(Comparator.comparing(HasName::name));
}
}
return eventHubNamespaces;
}
Aggregations