public void removeBucket(String name) throws FileNotFoundException {
        Bucket bucket;
        synchronized (buckets) {
            if (!buckets.containsKey(name)) {
                throw new FileNotFoundException("No such bucket: "+ name);
            }
            bucket = buckets.remove(name);
        }
        CAPIServer capi = bucket.getCAPIServer();
        if (capi != null) {
            capi.shutdown();
        }
        BucketAdminServer adminServer = bucket.getAdminServer();
        if (adminServer != null) {
            adminServer.shutdown();
        }
        bucket.stop();
    }
public void removeBucket ( String name ) throws FileNotFoundException { Bucket bucket ; synchronized ( buckets ) { if ( ! buckets . containsKey ( name ) ) { throw new FileNotFoundException ( "No such bucket: " + name ) ; } bucket = buckets . remove ( name ) ; } CAPIServer capi = bucket . getCAPIServer ( ) ; if ( capi != null ) { capi . shutdown ( ) ; } BucketAdminServer adminServer = bucket . getAdminServer ( ) ; if ( adminServer != null ) { adminServer . shutdown ( ) ; } bucket . stop ( ) ; }
Destroy a bucket
@param name The name of the bucket to remove
@throws FileNotFoundException If the bucket does not exist