org.apache.whirr.util
Class BlobCache

java.lang.Object
  extended by org.apache.whirr.util.BlobCache

public class BlobCache
extends Object


Method Summary
static void dropAndCloseAll()
           
 org.jclouds.scriptbuilder.domain.Statement getAsSaveToStatement(String target, String name)
           
 org.jclouds.scriptbuilder.domain.Statement getAsSaveToStatement(String target, URI uri)
           
static BlobCache getInstance(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute, ClusterSpec spec)
           
 org.jclouds.domain.Location getLocation()
           
 org.jclouds.http.HttpRequest getSignedRequest(String blobName)
           
 void putIfAbsent(File file)
           
 void putIfAbsent(String localUri)
           
 void putIfAbsent(String name, InputStream in, long contentLength)
           
 void putIfAbsent(URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BlobCache getInstance(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute,
                                    ClusterSpec spec)
                             throws IOException
Throws:
IOException

dropAndCloseAll

public static void dropAndCloseAll()

getLocation

public org.jclouds.domain.Location getLocation()

putIfAbsent

public void putIfAbsent(String localUri)
                 throws URISyntaxException,
                        IOException
Throws:
URISyntaxException
IOException

putIfAbsent

public void putIfAbsent(URI uri)
                 throws IOException
Throws:
IOException

putIfAbsent

public void putIfAbsent(File file)
                 throws FileNotFoundException
Throws:
FileNotFoundException

putIfAbsent

public void putIfAbsent(String name,
                        InputStream in,
                        long contentLength)

getAsSaveToStatement

public org.jclouds.scriptbuilder.domain.Statement getAsSaveToStatement(String target,
                                                                       String name)
                                                                throws IOException
Throws:
IOException

getAsSaveToStatement

public org.jclouds.scriptbuilder.domain.Statement getAsSaveToStatement(String target,
                                                                       URI uri)
                                                                throws IOException
Throws:
IOException

getSignedRequest

public org.jclouds.http.HttpRequest getSignedRequest(String blobName)
                                              throws IOException
Throws:
IOException


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.