How roccodelgado10/tp-concurrencia works
Tp-Concurrencia is a Java simulation of concurrent cluster job processing. Main starts scheduler, validator, worker, auditor, and logging threads around a shared ClusterManager. Schedulers create jobs and reserve nodes; validators route jobs to execution or failure; workers route completed jobs onward; auditors make the final validation decision. The manager holds the synchronized queues, node pool, and counters, while the logger periodically writes statistics. The README gives no further product description; links below reflect the shown source and its reference index.
Main entry points: ClusterManager.java Cluster manager · Main.java Application entry · SchedulerThread.java Scheduler threads · ValidatorThread.java Validator threads
Components 12
Runtime orchestration
- Application entry
src/com/cluster/Main.java
Cluster coordination
- Cluster manager
src/com/cluster/manager/ClusterManager.java
Domain state
- Compute node
src/com/cluster/model/ComputeNode.java - Job state
src/com/cluster/model/Job.java - Job statuses
src/com/cluster/model/JobStatus.java - Node states
src/com/cluster/model/NodeState.java
Job processing
- Scheduler threads
src/com/cluster/threads/SchedulerThread.java - Validator threads
src/com/cluster/threads/ValidatorThread.java - Worker threads
src/com/cluster/threads/WorkerThread.java - Auditor threads
src/com/cluster/threads/AuditorThread.java
Observability
- Statistics logger
src/com/cluster/threads/Logger.java
Other components
- Statistics log
Connections 18
- Application entry → Cluster manager: creates shared manager
src/com/cluster/Main.java - Application entry → Scheduler threads: starts threads
src/com/cluster/Main.java - Application entry → Validator threads: starts threads
src/com/cluster/Main.java - Application entry → Worker threads: starts threads
src/com/cluster/Main.java - Application entry → Auditor threads: starts threads
src/com/cluster/Main.java - Application entry → Statistics logger: starts thread
src/com/cluster/Main.java - Scheduler threads → Cluster manager: reserves node, enqueues job
src/com/cluster/threads/SchedulerThread.java - Scheduler threads → Job state: creates job
src/com/cluster/threads/SchedulerThread.java - Cluster manager → Compute node: creates, assigns nodes
src/com/cluster/manager/ClusterManager.java - Cluster manager → Job state: tracks and updates jobs
src/com/cluster/manager/ClusterManager.java - Validator threads → Cluster manager: polls, routes jobs
src/com/cluster/threads/ValidatorThread.java - Validator threads → Compute node: updates node state
src/com/cluster/threads/ValidatorThread.java - Worker threads → Cluster manager: polls, routes jobs
src/com/cluster/threads/WorkerThread.java - Auditor threads → Cluster manager: polls, finalizes jobs
src/com/cluster/threads/AuditorThread.java - Job state → Job statuses: uses status enum
src/com/cluster/model/Job.java - Compute node → Node states: uses state enum
src/com/cluster/model/ComputeNode.java - Statistics logger → Cluster manager: reads statistics
src/com/cluster/threads/Logger.java - Statistics logger → Statistics log: writes statistics
src/com/cluster/threads/Logger.java