mirror of https://github.com/apache/jclouds.git
Revert "Merge pull request #617 from andrewgaul/filesystem-transient-remove-copy"
This reverts commit0fe120d659
, reversing changes made to5033b98252
.
This commit is contained in:
parent
0fe120d659
commit
29e7e7e85e
|
@ -246,7 +246,7 @@ public class FilesystemAsyncBlobStore extends BaseAsyncBlobStore {
|
|||
storageStrategy.getAllContainerNames()));
|
||||
}
|
||||
|
||||
private static MutableBlobMetadata copy(MutableBlobMetadata in) {
|
||||
public static MutableBlobMetadata copy(MutableBlobMetadata in) {
|
||||
ByteArrayOutputStream bout = new ByteArrayOutputStream();
|
||||
ObjectOutput os;
|
||||
try {
|
||||
|
@ -271,6 +271,12 @@ public class FilesystemAsyncBlobStore extends BaseAsyncBlobStore {
|
|||
metadata.setUserMetadata(lowerCaseUserMetadata);
|
||||
}
|
||||
|
||||
public static MutableBlobMetadata copy(MutableBlobMetadata in, String newKey) {
|
||||
MutableBlobMetadata newMd = copy(in);
|
||||
newMd.setName(newKey);
|
||||
return newMd;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
|
@ -247,7 +247,7 @@ public class TransientAsyncBlobStore extends BaseAsyncBlobStore {
|
|||
storageStrategy.getAllContainerNames()));
|
||||
}
|
||||
|
||||
private static MutableBlobMetadata copy(MutableBlobMetadata in) {
|
||||
public static MutableBlobMetadata copy(MutableBlobMetadata in) {
|
||||
ByteArrayOutputStream bout = new ByteArrayOutputStream();
|
||||
ObjectOutput os;
|
||||
try {
|
||||
|
@ -271,6 +271,12 @@ public class TransientAsyncBlobStore extends BaseAsyncBlobStore {
|
|||
metadata.setUserMetadata(lowerCaseUserMetadata);
|
||||
}
|
||||
|
||||
public static MutableBlobMetadata copy(MutableBlobMetadata in, String newKey) {
|
||||
MutableBlobMetadata newMd = copy(in);
|
||||
newMd.setName(newKey);
|
||||
return newMd;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue