Package com.cloudloop.storage.adapter

Examples of com.cloudloop.storage.adapter.CloudStoreAdapterBase$PathComparator


  String baseDir = "/foo/bar/";
 
  setupDirectoryForListTest( numSubDirs, numFiles, numSubSubObjects,
           baseDir );
 
  CloudStoreAdapterBase store = getCloudStoreAdapter( );
  CloudStoreDirectory dir = store.getDirectory( baseDir );
 
  dir.remove( false );
  assertFalse( dir.existsInStore( ) );
    }
View Full Code Here


  String baseDir = "/foo/bar/";
 
  setupDirectoryForListTest( numSubDirs, numFiles, numSubSubObjects,
           baseDir );
 
  CloudStoreAdapterBase store = getCloudStoreAdapter( );
  CloudStoreDirectory dir = store.getDirectory( baseDir );
 
  boolean exThrown = false;
  try
  {
      dir.remove( false );
View Full Code Here

  String baseDir = "/foo/bar/";
 
  setupDirectoryForListTest( numSubDirs, numFiles, numSubSubObjects,
           baseDir );
 
  CloudStoreAdapterBase store = getCloudStoreAdapter( );
  CloudStoreDirectory dir = store.getDirectory( baseDir );
 
  dir.remove( true );
  assertFalse( dir.existsInStore( ) );
    }
View Full Code Here

    // /////////////////////////
   
    @Test
    public void testSendWriteMetadataRequest( )
    {
  CloudStoreAdapterBase store = getCloudStoreAdapter( );
  store.createDirectory( store.getDirectory( "/foo/bar/" ) );
  CloudStoreFile fileToUpload = store.getFile( "/foo/bar/some_file.txt" );
  fileToUpload.setStreamToStore( new MockFileStream( 50 ) );
  fileToUpload.setCustomMetaTag( "foo", "bar" );
  fileToUpload.write( null );
 
  CloudStoreFile uploaded = store.getFile( fileToUpload.getPath( )
    .getAbsolutePath( ) );
  uploaded.refreshMetadata( );
  String tag = uploaded.getMetadata( ).getCustomTags( ).get( "foo" );
  if ( tag == null ) // Rackspace capitalizes the first letter of keys for
      // some reason...
View Full Code Here

TOP

Related Classes of com.cloudloop.storage.adapter.CloudStoreAdapterBase$PathComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.