use of org.apache.karaf.features.management.codec.JmxRepository in project karaf by apache.
the class FeaturesServiceMBeanImpl method getRepositories.
/**
* {@inheritDoc}
*/
public TabularData getRepositories() throws Exception {
try {
List<Repository> allRepositories = Arrays.asList(featuresService.listRepositories());
ArrayList<JmxRepository> repositories = new ArrayList<>();
for (Repository repository : allRepositories) {
try {
repositories.add(new JmxRepository(repository));
} catch (Throwable t) {
t.printStackTrace();
}
}
return JmxRepository.tableFrom(repositories);
} catch (Throwable t) {
t.printStackTrace();
return null;
}
}
Aggregations