Class: Ceph::Crush::Location::Bucket

Inherits:
Object
  • Object
show all
Defined in:
lib/ceph/crush/location/bucket.rb

Overview

Derives a Bucket line for Crush

Instance Method Summary collapse

Constructor Details

#initializeBucket

Returns a new instance of Bucket.



6
7
8
9
# File 'lib/ceph/crush/location/bucket.rb', line 6

def initialize
  Ceph::Crush::Location::Logger.send('Bucket.initialize')
  @osd = OSD.new
end

Instance Method Details

#to_sObject



11
12
13
14
15
16
# File 'lib/ceph/crush/location/bucket.rb', line 11

def to_s
  Ceph::Crush::Location::Logger.send('Bucket.to_s')
  [root_bucket, datacenter_bucket,
   row_bucket, rack_bucket, chassis_bucket,
   host_bucket, disk_chassis_bucket, enclosure_bucket].join('')
end