distrax.pools.abstract_pool class#

This holds the AbstractPool Class, which is expected to be used as a template for all created Pool classes.

class distrax.pools.abstract_pool.AbstractPool(*args, **kwargs)[source]#

An interface for Pool Classes.

A Pool is a partition within the cluster used to store objects.

static create_pool(name='distrax', percentage=1.0)[source]#

Create the Pool to store objects.

Parameters:
  • name (str) – The name of the pool

  • percentage (float) – The percentage of the cluster to allocate to the pool

  • 1. (value expected between 0 and) –

Return type:

None

static remove_pools()[source]#

Remove and purge pool.

Return type:

None