You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hive/app/domain/Hive.py
+32-19Lines changed: 32 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -23,14 +23,18 @@ class Hive:
23
23
:ivar List[float, float] corruption_chances: used to simulate file corruption on behalf of the workers, to avoid keeping independant distributions for each part and each replica
24
24
:ivar str id: unique identifier in str format
25
25
:ivar Hivemind hivemind: reference to the master server, which in this case is just a simulator program
26
-
:ivar FileData Union[None, FileData]: instance of class FileData which contains information regarding the file persisted by this hive
27
26
:ivar Dict[str, Worker] members: Workers that belong to this P2P Hive, key is worker.id, value is the respective Worker instance
27
+
:ivar FileData file: instance of class FileData which contains information regarding the file persisted by this hive
28
+
:ivar DataFrame desired_distribution: distribution hive members are seeking to achieve for each the files they persist together.
28
29
:ivar int critical_size: minimum number of replicas required for data recovery plus the number of peer faults the system must support during replication.
29
30
:ivar int sufficient_size: depends on churn-rate and equals critical_size plus the number of peers expected to fail between two successive recovery phases
30
-
:ivar int redudant_size: application-specific system parameter, but basically represents that the hive is to big
31
-
:ivar DataFrame desired_distribution: distribution hive members are seeking to achieve for each the files they persist together.
32
-
:ivar Dict[str, SharedFilePart] recoverable_parts: just an hammer
31
+
:ivar int original_size: stores the initial hive size
32
+
:ivar int redundant_size: application-specific system parameter, but basically represents that the hive is to big
33
+
:ivar int set_recovery_epoch_sum: stores the sum of the values returned by all SharedFilePart.set_recovery_epoch calls - used for simulation output purposes
34
+
:ivar int set_recovery_epoch_calls: stores how many times SharedFilePart.set_recovery_epoch calls was called during the current epoch
35
+
:ivar bool running: indicates if the hive has terminated - used for simulation purposes
33
36
"""
37
+
34
38
# region Class Variables, Instance Variables and Constructors
0 commit comments