public class BlobCache extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
dropAndClose() |
static void |
dropAndCloseAll() |
org.jclouds.scriptbuilder.domain.Statement |
getAsSaveToStatement(String target,
String name) |
org.jclouds.scriptbuilder.domain.Statement |
getAsSaveToStatement(String target,
URI uri) |
String |
getContainer() |
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(URI uri) |
public static BlobCache getInstance(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute, ClusterSpec spec) throws IOException
IOExceptionpublic static void dropAndCloseAll()
public org.jclouds.domain.Location getLocation()
public void putIfAbsent(String localUri) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic void putIfAbsent(URI uri) throws IOException
IOExceptionpublic void putIfAbsent(File file) throws FileNotFoundException
FileNotFoundExceptionpublic org.jclouds.scriptbuilder.domain.Statement getAsSaveToStatement(String target, String name) throws IOException
IOExceptionpublic org.jclouds.scriptbuilder.domain.Statement getAsSaveToStatement(String target, URI uri) throws IOException
IOExceptionpublic org.jclouds.http.HttpRequest getSignedRequest(String blobName) throws IOException
IOExceptionpublic String getContainer()
public void dropAndClose()
Copyright © 2010–2016 Cloudera. All rights reserved.