Class: CephStorage::PoolFactory
- Defined in:
- lib/ceph_storage/pool_factory.rb
Overview
Creates a Pool Object Returns only a single pool object out of the cartridges available
Instance Attribute Summary
Attributes inherited from Pool
#cartridges, #close_lock, #cluster, #name, #pop_lock
Class Method Summary collapse
Methods inherited from Pool
#close, #initialize, #log, #num_free, #num_locked, #path, #rados_pool, #rados_pool=, #size, #storage_object, #storage_object_enumerator
Methods included from PoolWrapper
Constructor Details
This class inherits a constructor from CephStorage::Pool
Class Method Details
.build(cluster, name) {|p| ... } ⇒ Object
6 7 8 9 10 |
# File 'lib/ceph_storage/pool_factory.rb', line 6 def build(cluster, name) p = CephStorage::Pool.new(cluster, name) yield(p) if block_given? p end |