org.fusesource.fabric.boot.commands.support
Class ContainerAwareProfileCompleter

java.lang.Object
  extended by org.fusesource.fabric.boot.commands.support.ContainerAwareProfileCompleter
All Implemented Interfaces:
org.apache.karaf.shell.console.Completer

public class ContainerAwareProfileCompleter
extends java.lang.Object
implements org.apache.karaf.shell.console.Completer

A completer that is aware of the target container. The target container is being looked up from the command arguments. If no container is found the current container is assumed.


Field Summary
protected  FabricService fabricService
           
protected  IZKClient zooKeeper
           
 
Constructor Summary
ContainerAwareProfileCompleter(int containerArgumentIndex, boolean assigned, boolean unassigned)
           
 
Method Summary
 int complete(java.lang.String buffer, int cursor, java.util.List<java.lang.String> candidates)
           
 FabricService getFabricService()
           
 IZKClient getZooKeeper()
           
 void setFabricService(FabricService fabricService)
           
 void setZooKeeper(IZKClient zooKeeper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fabricService

protected FabricService fabricService

zooKeeper

protected IZKClient zooKeeper
Constructor Detail

ContainerAwareProfileCompleter

public ContainerAwareProfileCompleter(int containerArgumentIndex,
                                      boolean assigned,
                                      boolean unassigned)
Method Detail

complete

public int complete(java.lang.String buffer,
                    int cursor,
                    java.util.List<java.lang.String> candidates)
Specified by:
complete in interface org.apache.karaf.shell.console.Completer

getFabricService

public FabricService getFabricService()

setFabricService

public void setFabricService(FabricService fabricService)

getZooKeeper

public IZKClient getZooKeeper()

setZooKeeper

public void setZooKeeper(IZKClient zooKeeper)


Copyright © 2013 Red Hat. All Rights Reserved.