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