Skip to content

Commit

Permalink
Add ClusterInstanceRegistry
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Dec 17, 2024
1 parent 08956c1 commit 8c612f8
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,20 @@ public final class ComputeNodeInstanceContext {

private final EventBusContext eventBusContext;

private final ClusterInstanceRegistry clusterInstanceRegistry;

@Getter(AccessLevel.NONE)
private final AtomicReference<WorkerIdGenerator> workerIdGenerator = new AtomicReference<>();
private final AtomicReference<WorkerIdGenerator> workerIdGenerator;

@Getter(AccessLevel.NONE)
private final AtomicReference<LockContext<?>> lockContext = new AtomicReference<>();
private final AtomicReference<LockContext<?>> lockContext;

private final ClusterInstanceRegistry clusterInstanceRegistry;

public ComputeNodeInstanceContext(final ComputeNodeInstance instance, final ModeConfiguration modeConfiguration, final EventBusContext eventBusContext) {
this.instance = instance;
this.modeConfiguration = modeConfiguration;
this.eventBusContext = eventBusContext;
workerIdGenerator = new AtomicReference<>();
lockContext = new AtomicReference<>();
clusterInstanceRegistry = new ClusterInstanceRegistry();
}

Expand Down

0 comments on commit 8c612f8

Please sign in to comment.