use of org.apache.karaf.shell.support.completers.StringsCompleter in project opennms by OpenNMS.
the class CollectorClassNameCompleter method complete.
@Override
public int complete(Session session, CommandLine commandLine, List<String> candidates) {
StringsCompleter serviceNames = new StringsCompleter();
serviceNames.getStrings().addAll(registry.getCollectorClassNames());
return serviceNames.complete(session, commandLine, candidates);
}
use of org.apache.karaf.shell.support.completers.StringsCompleter in project opennms by OpenNMS.
the class AliasCompleter method complete.
public int complete(Session session, CommandLine commandLine, List<String> candidates) {
StringsCompleter delegate = new StringsCompleter();
// Gather the list of known aliases
delegate.getStrings().addAll(secureCredentialsVault.getAliases());
return delegate.complete(session, commandLine, candidates);
}
use of org.apache.karaf.shell.support.completers.StringsCompleter in project opennms by OpenNMS.
the class MonitorClassNameCompleter method complete.
@Override
public int complete(Session session, CommandLine commandLine, List<String> candidates) {
StringsCompleter serviceNames = new StringsCompleter();
serviceNames.getStrings().addAll(registry.getMonitorClassNames());
return serviceNames.complete(session, commandLine, candidates);
}
use of org.apache.karaf.shell.support.completers.StringsCompleter in project opennms by OpenNMS.
the class ServiceNameCompleter method complete.
@Override
public int complete(Session session, CommandLine commandLine, List<String> candidates) {
StringsCompleter serviceNames = new StringsCompleter();
serviceNames.getStrings().addAll(serviceDetectorRegistry.getServiceNames());
return serviceNames.complete(session, commandLine, candidates);
}
use of org.apache.karaf.shell.support.completers.StringsCompleter in project opennms by OpenNMS.
the class ProviderTypeNameCompleter method complete.
@Override
public int complete(Session session, CommandLine commandLine, List<String> candidates) {
StringsCompleter serviceNames = new StringsCompleter();
serviceNames.getStrings().addAll(registry.getTypes());
return serviceNames.complete(session, commandLine, candidates);
}
Aggregations