Rename pool manager to monitor.

This commit is contained in:
Michael Lipp 2024-12-01 14:22:18 +01:00
parent 2dc93f1370
commit c3428ea4a5
2 changed files with 3 additions and 3 deletions

View file

@ -106,7 +106,7 @@ public class Controller extends Component {
// to access the VM's console. Might change in the future. // to access the VM's console. Might change in the future.
// attach(new ServiceMonitor(channel()).channelManager(chanMgr)); // attach(new ServiceMonitor(channel()).channelManager(chanMgr));
attach(new Reconciler(channel())); attach(new Reconciler(channel()));
attach(new PoolManager(channel())); attach(new PoolMonitor(channel()));
} }
/** /**

View file

@ -53,7 +53,7 @@ import org.jgrapes.core.events.Attached;
* avoid concurrent change informations. * avoid concurrent change informations.
*/ */
@SuppressWarnings({ "PMD.DataflowAnomalyAnalysis", "PMD.ExcessiveImports" }) @SuppressWarnings({ "PMD.DataflowAnomalyAnalysis", "PMD.ExcessiveImports" })
public class PoolManager extends public class PoolMonitor extends
AbstractMonitor<K8sDynamicModel, K8sDynamicModels, Channel> { AbstractMonitor<K8sDynamicModel, K8sDynamicModels, Channel> {
private final ReentrantLock pendingLock = new ReentrantLock(); private final ReentrantLock pendingLock = new ReentrantLock();
@ -67,7 +67,7 @@ public class PoolManager extends
* @param componentChannel the component channel * @param componentChannel the component channel
* @param channelManager the channel manager * @param channelManager the channel manager
*/ */
public PoolManager(Channel componentChannel) { public PoolMonitor(Channel componentChannel) {
super(componentChannel, K8sDynamicModel.class, super(componentChannel, K8sDynamicModel.class,
K8sDynamicModels.class); K8sDynamicModels.class);
} }