Search in sources :

Example 6 with StringsCompleter

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

Example 7 with StringsCompleter

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

Example 8 with StringsCompleter

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

Example 9 with StringsCompleter

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

Example 10 with StringsCompleter

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

Aggregations

StringsCompleter (org.apache.karaf.shell.support.completers.StringsCompleter)17 ArrayList (java.util.ArrayList)4 Completer (org.apache.karaf.shell.api.console.Completer)3 HashSet (java.util.HashSet)2 Map (java.util.Map)2 Command (org.apache.karaf.shell.api.console.Command)2 File (java.io.File)1 Collection (java.util.Collection)1 EnumSet (java.util.EnumSet)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Set (java.util.Set)1 TreeMap (java.util.TreeMap)1 CamelContext (org.apache.camel.CamelContext)1 Bus (org.apache.cxf.Bus)1 Server (org.apache.cxf.endpoint.Server)1 ServerRegistry (org.apache.cxf.endpoint.ServerRegistry)1 CommandLine (org.apache.karaf.shell.api.console.CommandLine)1 Session (org.apache.karaf.shell.api.console.Session)1 ArgumentCommandLine (org.apache.karaf.shell.support.completers.ArgumentCommandLine)1