use of org.apache.karaf.shell.console.completer.StringsCompleter in project opennms by OpenNMS.
the class ProviderTypeNameCompleter method complete.
@Override
public int complete(String buffer, int cursor, List<String> candidates) {
StringsCompleter serviceNames = new StringsCompleter();
serviceNames.getStrings().addAll(registry.getTypes());
return serviceNames.complete(buffer, cursor, candidates);
}
use of org.apache.karaf.shell.console.completer.StringsCompleter in project opennms by OpenNMS.
the class CollectorClassNameCompleter method complete.
@Override
public int complete(String buffer, int cursor, List<String> candidates) {
StringsCompleter serviceNames = new StringsCompleter();
serviceNames.getStrings().addAll(registry.getCollectorClassNames());
return serviceNames.complete(buffer, cursor, candidates);
}
use of org.apache.karaf.shell.console.completer.StringsCompleter in project openflowplugin by opendaylight.
the class DropAllPacketsCompleter method complete.
@Override
public int complete(String buffer, int cursor, List<String> candidates) {
StringsCompleter delegate = new StringsCompleter();
delegate.getStrings().add("on");
delegate.getStrings().add("off");
return delegate.complete(buffer, cursor, candidates);
}
use of org.apache.karaf.shell.console.completer.StringsCompleter in project opennms by OpenNMS.
the class MonitorClassNameCompleter method complete.
@Override
public int complete(String buffer, int cursor, List<String> candidates) {
StringsCompleter serviceNames = new StringsCompleter();
serviceNames.getStrings().addAll(registry.getMonitorClassNames());
return serviceNames.complete(buffer, cursor, candidates);
}
use of org.apache.karaf.shell.console.completer.StringsCompleter in project opennms by OpenNMS.
the class ServiceNameCompleter method complete.
@Override
public int complete(String buffer, int cursor, List<String> candidates) {
StringsCompleter serviceNames = new StringsCompleter();
serviceNames.getStrings().addAll(serviceDetectorRegistry.getServiceNames());
return serviceNames.complete(buffer, cursor, candidates);
}
Aggregations