org.jclouds.karaf.commands.compute.completer
Class ComputeCompleterSupport

java.lang.Object
  extended by org.jclouds.karaf.commands.compute.completer.ComputeCompleterSupport
All Implemented Interfaces:
Runnable, org.apache.karaf.shell.console.Completer
Direct Known Subclasses:
ImageCompleter, LocationCompleter, NodesCompleter

public abstract class ComputeCompleterSupport
extends Object
implements org.apache.karaf.shell.console.Completer, Runnable


Field Summary
protected  Set<String> cache
           
protected  org.apache.karaf.shell.console.completer.StringsCompleter delegate
           
 
Constructor Summary
ComputeCompleterSupport()
           
 
Method Summary
 int complete(String buffer, int cursor, List<String> candidates)
           
protected  org.jclouds.compute.ComputeService getService()
           
 List<org.jclouds.compute.ComputeService> getServices()
           
 void run()
           
 void setServices(List<org.jclouds.compute.ComputeService> services)
           
abstract  void updateCache()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected final org.apache.karaf.shell.console.completer.StringsCompleter delegate

cache

protected Set<String> cache
Constructor Detail

ComputeCompleterSupport

public ComputeCompleterSupport()
Method Detail

run

public void run()
Specified by:
run in interface Runnable

getService

protected org.jclouds.compute.ComputeService getService()

complete

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

updateCache

public abstract void updateCache()

getServices

public List<org.jclouds.compute.ComputeService> getServices()

setServices

public void setServices(List<org.jclouds.compute.ComputeService> services)


Copyright © 2009-2011 jclouds. All Rights Reserved.