__init__.py 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. # -*- coding: utf-8 -*-
  2. """
  3. Trixy Satellite-Verwaltung.
  4. Bietet:
  5. - Core: Satellite, SatelliteManager, RegistrationManager
  6. - API: High-Level Plugin-API für Satellite-Interaktion
  7. - Groups: Gruppierung und Zone-Management
  8. - LoadBalancing: Lastverteilung über Satellites
  9. - Health: Gesundheits-Monitoring und Scoring
  10. - Failover: Automatisches Failover zu Backup-Satellites
  11. - Capability: Dynamische Fähigkeitserkennung
  12. - Metrics: Metriken-Sammlung und Aggregation
  13. """
  14. from trixy_core.satellite.satellite import Satellite, ConnectionState
  15. from trixy_core.satellite.satellite_manager import SatelliteManager
  16. from trixy_core.satellite.registration_manager import RegistrationManager
  17. from trixy_core.satellite.api import (
  18. SatelliteAPI,
  19. SatelliteProxy,
  20. SatelliteCollection,
  21. StreamSession,
  22. StreamState,
  23. TTSRequest,
  24. get_satellite_api,
  25. )
  26. # Groups
  27. from trixy_core.satellite.groups import (
  28. SatelliteGroup,
  29. GroupManager,
  30. GroupType,
  31. Zone,
  32. ZoneManager,
  33. ZoneConfig,
  34. )
  35. # Load Balancing
  36. from trixy_core.satellite.loadbalancing import (
  37. LoadBalancingStrategy,
  38. LoadBalancer,
  39. SelectionResult,
  40. RoundRobinStrategy,
  41. LeastConnectionsStrategy,
  42. WeightedStrategy,
  43. WeightConfig,
  44. )
  45. # Health
  46. from trixy_core.satellite.health import (
  47. HealthScorer,
  48. HealthMetrics,
  49. HealthScore,
  50. HealthState,
  51. HealthThresholds,
  52. ThresholdConfig,
  53. ThresholdViolation,
  54. )
  55. # Failover
  56. from trixy_core.satellite.failover import (
  57. FailoverManager,
  58. FailoverConfig,
  59. FailoverEvent,
  60. FailoverState,
  61. BackupAssignment,
  62. BackupRegistry,
  63. BackupStrategy,
  64. )
  65. # Capability
  66. from trixy_core.satellite.capability import (
  67. CapabilityDiscovery,
  68. DiscoveryConfig,
  69. CapabilityProbe,
  70. CapabilityRegistry,
  71. Capability,
  72. CapabilityInfo,
  73. CapabilityState,
  74. )
  75. # Metrics
  76. from trixy_core.satellite.metrics import (
  77. SatelliteMetricsCollector,
  78. MetricType,
  79. MetricValue,
  80. SatelliteMetrics,
  81. MetricsAggregator,
  82. AggregationType,
  83. AggregatedMetric,
  84. TimeWindow,
  85. )
  86. # Connection Notification
  87. from trixy_core.satellite.connection_notification import (
  88. ConnectionNotificationHandler,
  89. setup_connection_notification,
  90. )
  91. __all__ = [
  92. # Core
  93. "Satellite",
  94. "ConnectionState",
  95. "SatelliteManager",
  96. "RegistrationManager",
  97. # High-Level API
  98. "SatelliteAPI",
  99. "SatelliteProxy",
  100. "SatelliteCollection",
  101. "StreamSession",
  102. "StreamState",
  103. "TTSRequest",
  104. "get_satellite_api",
  105. # Groups
  106. "SatelliteGroup",
  107. "GroupManager",
  108. "GroupType",
  109. "Zone",
  110. "ZoneManager",
  111. "ZoneConfig",
  112. # Load Balancing
  113. "LoadBalancingStrategy",
  114. "LoadBalancer",
  115. "SelectionResult",
  116. "RoundRobinStrategy",
  117. "LeastConnectionsStrategy",
  118. "WeightedStrategy",
  119. "WeightConfig",
  120. # Health
  121. "HealthScorer",
  122. "HealthMetrics",
  123. "HealthScore",
  124. "HealthState",
  125. "HealthThresholds",
  126. "ThresholdConfig",
  127. "ThresholdViolation",
  128. # Failover
  129. "FailoverManager",
  130. "FailoverConfig",
  131. "FailoverEvent",
  132. "FailoverState",
  133. "BackupAssignment",
  134. "BackupRegistry",
  135. "BackupStrategy",
  136. # Capability
  137. "CapabilityDiscovery",
  138. "DiscoveryConfig",
  139. "CapabilityProbe",
  140. "CapabilityRegistry",
  141. "Capability",
  142. "CapabilityInfo",
  143. "CapabilityState",
  144. # Metrics
  145. "SatelliteMetricsCollector",
  146. "MetricType",
  147. "MetricValue",
  148. "SatelliteMetrics",
  149. "MetricsAggregator",
  150. "AggregationType",
  151. "AggregatedMetric",
  152. "TimeWindow",
  153. # Connection Notification
  154. "ConnectionNotificationHandler",
  155. "setup_connection_notification",
  156. ]