public static Bucket create ( CouchbaseMock mock , BucketConfiguration config ) throws IOException { switch ( config . type ) { case MEMCACHED : return new MemcachedBucket ( mock , config ) ; case COUCHBASE : return new CouchbaseBucket ( mock , config ) ; default : throw new FileNotFoundException ( "I don't know about this type..." ) ; } }
Create a bucket .