Jordan Halterman | 00e92da | 2018-05-22 23:05:52 -0700 | [diff] [blame] | 1 | # Base package names for core Atomix primitives |
| 2 | _primitive_package_names = ( |
| 3 | 'barrier', |
| 4 | 'collection', |
| 5 | 'counter', |
| 6 | 'election', |
| 7 | 'idgenerator', |
| 8 | 'iterator', |
| 9 | 'list', |
| 10 | 'lock', |
| 11 | 'map', |
| 12 | 'multimap', |
| 13 | 'multiset', |
| 14 | 'queue', |
| 15 | 'semaphore', |
| 16 | 'set', |
| 17 | 'transaction', |
| 18 | 'tree', |
| 19 | 'value', |
| 20 | 'workqueue', |
| 21 | ) |
| 22 | |
| 23 | # A list of all core primitive packages for dynamic class loading |
| 24 | PRIMITIVE_PACKAGES = ','.join(['io.atomix.primitive.session.impl'] + ['io.atomix.core.{primitive},io.atomix.core.{primitive}.impl'.format(primitive=primitive) for primitive in _primitive_package_names]) |
| 25 | |
| 26 | # Base package names for core Atomix protocols |
| 27 | _protocol_package_names = ( |
| 28 | 'raft', |
| 29 | 'backup' |
| 30 | ) |
| 31 | |
| 32 | # A list of all core protocol packages for dynamic class loading |
| 33 | PROTOCOL_PACKAGES = ','.join(['io.atomix.primitive.partition.impl'] + ['io.atomix.protocols.{protocol},io.atomix.protocols.{protocol}.partition'.format(protocol=protocol) for protocol in _protocol_package_names] + ['io.atomix.protocols.gossip']) |
| 34 | |
| 35 | # A list of all additional core packages used in dynamic class loading |
| 36 | CORE_PACKAGES = ','.join(['io.atomix.core.profile', 'io.atomix.core.profile.impl']) |
| 37 | |
| 38 | # A list of all dynamically loadable Atomix packages |
| 39 | INCLUDE_PACKAGES = ','.join([PRIMITIVE_PACKAGES, PROTOCOL_PACKAGES, CORE_PACKAGES]) |
| 40 | |
| 41 | ALL_PACKAGES = '*' |