org.jclouds.karaf.commands.blobstore.completer
Class BlobStoreCompleterSupport

java.lang.Object
  extended by org.jclouds.karaf.commands.blobstore.completer.BlobStoreCompleterSupport
All Implemented Interfaces:
org.apache.karaf.shell.console.Completer, Cacheable<org.jclouds.blobstore.BlobStore>
Direct Known Subclasses:
BlobCompleter, ContainerCompleter

public abstract class BlobStoreCompleterSupport
extends Object
implements org.apache.karaf.shell.console.Completer, Cacheable<org.jclouds.blobstore.BlobStore>


Field Summary
protected  Set<String> cache
           
protected  org.apache.karaf.shell.console.completer.StringsCompleter delegate
           
 
Constructor Summary
BlobStoreCompleterSupport()
           
 
Method Summary
 int complete(String buffer, int cursor, List<String> candidates)
           
protected  org.jclouds.blobstore.BlobStore getBlobStore()
           
 List<org.jclouds.blobstore.BlobStore> getBlobStoreServices()
           
 Set<String> getCache()
           
protected  Set<String> listBlobs(org.jclouds.blobstore.BlobStore blobStore, String container)
           
protected  Set<String> listBlobs(String container)
           
protected  Set<String> listContainers()
           
protected  Set<String> listContainers(org.jclouds.blobstore.BlobStore blobStore)
           
 void setBlobStoreServices(List<org.jclouds.blobstore.BlobStore> blobStoreServices)
           
 void setCache(Set<String> cache)
           
 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

BlobStoreCompleterSupport

public BlobStoreCompleterSupport()
Method Detail

getBlobStore

protected org.jclouds.blobstore.BlobStore getBlobStore()

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.blobstore.BlobStore>

listContainers

protected Set<String> listContainers()

listContainers

protected Set<String> listContainers(org.jclouds.blobstore.BlobStore blobStore)

listBlobs

protected Set<String> listBlobs(String container)

listBlobs

protected Set<String> listBlobs(org.jclouds.blobstore.BlobStore blobStore,
                                String container)

getBlobStoreServices

public List<org.jclouds.blobstore.BlobStore> getBlobStoreServices()

setBlobStoreServices

public void setBlobStoreServices(List<org.jclouds.blobstore.BlobStore> blobStoreServices)

getCache

public Set<String> getCache()

setCache

public void setCache(Set<String> cache)


Copyright © 2009-2012 jclouds. All Rights Reserved.