org.jclouds.blobstore.strategy.internal
Class MarkersDeleteDirectoryStrategy

java.lang.Object
  extended by org.jclouds.blobstore.strategy.internal.MarkersDeleteDirectoryStrategy
All Implemented Interfaces:
DeleteDirectoryStrategy

@Singleton
public class MarkersDeleteDirectoryStrategy
extends Object
implements DeleteDirectoryStrategy

Key-value implementations of BlobStore, such as S3, do not have directories. In following the rackspace cloud files project, we use an empty object '#{dirpath}' with content type set to 'application/directory'.

To interoperate with other S3 tools, we accept the following ways to tell if the directory exists:

Author:
Adrian Cole
See Also:
MarkerFileMkdirStrategy

Field Summary
protected  Logger logger
           
protected  Long maxTime
          maximum duration of an blob Request
 
Method Summary
 void execute(String containerName, String directory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.blobstore")
protected Logger logger

maxTime

@Inject(optional=true)
@Named(value="jclouds.request-timeout")
protected Long maxTime
maximum duration of an blob Request

Method Detail

execute

public void execute(String containerName,
                    String directory)
Specified by:
execute in interface DeleteDirectoryStrategy


Copyright © 2009-2011 jclouds. All Rights Reserved.