Search in sources :

Example 1 with StringsCompleter

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);
}
Also used : StringsCompleter(org.apache.karaf.shell.console.completer.StringsCompleter)

Example 2 with StringsCompleter

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);
}
Also used : StringsCompleter(org.apache.karaf.shell.console.completer.StringsCompleter)

Example 3 with StringsCompleter

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);
}
Also used : StringsCompleter(org.apache.karaf.shell.console.completer.StringsCompleter)

Example 4 with StringsCompleter

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);
}
Also used : StringsCompleter(org.apache.karaf.shell.console.completer.StringsCompleter)

Example 5 with StringsCompleter

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);
}
Also used : StringsCompleter(org.apache.karaf.shell.console.completer.StringsCompleter)

Aggregations

StringsCompleter (org.apache.karaf.shell.console.completer.StringsCompleter)10 Profile (io.fabric8.api.Profile)2 Version (io.fabric8.api.Version)2 Container (io.fabric8.api.Container)1 ProfileService (io.fabric8.api.ProfileService)1 HashSet (java.util.HashSet)1 LinkedList (java.util.LinkedList)1 ScriptEngineFactory (javax.script.ScriptEngineFactory)1 Completer (org.apache.karaf.shell.console.Completer)1 FileCompleter (org.apache.karaf.shell.console.completer.FileCompleter)1 NullCompleter (org.apache.karaf.shell.console.completer.NullCompleter)1