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, HardwareCompleter, ImageCompleter, LocationCompleter, NodesCompleter

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


Field Summary
protected  com.google.common.collect.Multimap<String,String> cache
           
protected  CacheProvider cacheProvider
           
protected  org.apache.karaf.shell.console.completer.StringsCompleter delegate
           
 
Constructor Summary
ComputeCompleterSupport()
           
 
Method Summary
 int complete(String buffer, int cursor, List<String> candidates)
           
 CacheProvider getCacheProvider()
           
 void setCacheProvider(CacheProvider cacheProvider)
           
 void updateOnRemoved(org.jclouds.compute.ComputeService computeService)
           
 
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.cache.Cacheable
updateOnAdded
 

Field Detail

delegate

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

cacheProvider

protected CacheProvider cacheProvider

cache

protected com.google.common.collect.Multimap<String,String> cache
Constructor Detail

ComputeCompleterSupport

public ComputeCompleterSupport()
Method Detail

complete

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

updateOnRemoved

public void updateOnRemoved(org.jclouds.compute.ComputeService computeService)
Specified by:
updateOnRemoved in interface Cacheable<org.jclouds.compute.ComputeService>

getCacheProvider

public CacheProvider getCacheProvider()

setCacheProvider

public void setCacheProvider(CacheProvider cacheProvider)


Copyright © 2012. All Rights Reserved.