Package com.adaptris.jclouds.blobstore
Class Upload
- java.lang.Object
-
- com.adaptris.jclouds.blobstore.ContainerOperation
-
- com.adaptris.jclouds.blobstore.OperationImpl
-
- com.adaptris.jclouds.blobstore.Upload
-
- All Implemented Interfaces:
Operation
@ComponentProfile(summary="Upload a blob", tag="jclouds") public class Upload extends OperationImpl
Upload an object.In the adapter configuration file this class is aliased as jclouds-blobstore-upload which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Field Summary
-
Fields inherited from class com.adaptris.jclouds.blobstore.ContainerOperation
log
-
-
Constructor Summary
Constructors Constructor Description Upload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
atLeastTwoParts(org.jclouds.blobstore.BlobStore store, long msgSize)
protected org.jclouds.blobstore.options.PutOptions
buildPutOptions(org.jclouds.blobstore.BlobStore store, AdaptrisMessage msg)
void
execute(BlobStoreConnection conn, AdaptrisMessage msg)
java.lang.Boolean
getUseMultipart()
Whether or not to use multiparts when uploading.void
setUseMultipart(java.lang.Boolean useMultipart)
Whether or not to use multiparts when uploading.-
Methods inherited from class com.adaptris.jclouds.blobstore.OperationImpl
getName, setName, withName
-
Methods inherited from class com.adaptris.jclouds.blobstore.ContainerOperation
getContainerName, setContainerName, withContainerName
-
-
-
-
Method Detail
-
execute
public void execute(BlobStoreConnection conn, AdaptrisMessage msg) throws java.lang.Exception
- Throws:
java.lang.Exception
-
buildPutOptions
protected org.jclouds.blobstore.options.PutOptions buildPutOptions(org.jclouds.blobstore.BlobStore store, AdaptrisMessage msg)
-
atLeastTwoParts
protected boolean atLeastTwoParts(org.jclouds.blobstore.BlobStore store, long msgSize)
-
getUseMultipart
public java.lang.Boolean getUseMultipart()
Whether or not to use multiparts when uploading.If not specified, then defaults to
true
; however, ifMultipartUploadSlicingAlgorithm
indicates that the object will not be at least two parts then this option has no effect.
-
setUseMultipart
public void setUseMultipart(java.lang.Boolean useMultipart)
Whether or not to use multiparts when uploading.If not specified, then defaults to
true
; however, ifMultipartUploadSlicingAlgorithm
indicates that the object will not be at least two parts then this option has no effect.
-
-