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

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

public abstract class ComputeCompleterSupport
extends Object
implements org.apache.karaf.shell.console.Completer, Cacheable<org.jclouds.compute.ComputeService>


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)
           
 Set<String> getCache()
           
 List<org.jclouds.compute.ComputeService> getComputeServices()
           
protected  org.jclouds.compute.ComputeService getService()
           
 void setCache(Set<String> cache)
           
 void setComputeServices(List<org.jclouds.compute.ComputeService> computeServices)
           
 void updateCache()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jclouds.karaf.commands.cache.Cacheable
updateCache
 

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

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 void updateCache()
Specified by:
updateCache in interface Cacheable<org.jclouds.compute.ComputeService>

getComputeServices

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

setComputeServices

public void setComputeServices(List<org.jclouds.compute.ComputeService> computeServices)

getCache

public Set<String> getCache()

setCache

public void setCache(Set<String> cache)


Copyright © 2009-2012 jclouds. All Rights Reserved.