Class PoolMonitor

java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jdrupes.vmoperator.manager.AbstractMonitor<K8sDynamicModel,K8sDynamicModels,org.jgrapes.core.Channel>
org.jdrupes.vmoperator.manager.PoolMonitor
All Implemented Interfaces:
Iterable<org.jgrapes.core.ComponentType>, org.jgrapes.core.Channel, org.jgrapes.core.ComponentType, org.jgrapes.core.Eligible, org.jgrapes.core.Manager

public class PoolMonitor extends AbstractMonitor<K8sDynamicModel,K8sDynamicModels,org.jgrapes.core.Channel>
Watches for changes of VM pools.

Reports the changes using VmPoolChanged events fired on a special pipeline to avoid concurrent change informations.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.jgrapes.core.Channel

    org.jgrapes.core.Channel.Default
  • Field Summary

    Fields inherited from class org.jgrapes.core.Component

    logger

    Fields inherited from interface org.jgrapes.core.Channel

    BROADCAST, SELF
  • Constructor Summary

    Constructors
    Constructor
    Description
    PoolMonitor(org.jgrapes.core.Channel componentChannel)
    Instantiates a new VM pool manager.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    handleChange(K8sClient client, io.kubernetes.client.util.Watch.Response<K8sDynamicModel> response)
    Handle an observed change.
    void
    onAttached(org.jgrapes.core.events.Attached event)
    On attached.
    void
    Return the requested pools.
    void
    Track VM definition changes.
    protected void
    Invoked by AbstractMonitor.onStart(Start) after the namespace has been configured and before starting the observer.

    Methods inherited from class org.jdrupes.vmoperator.manager.AbstractMonitor

    client, client, context, context, namespace, namespace, onConfigurationUpdate, onStart, options, options

    Methods inherited from class org.jgrapes.core.Component

    channel, component, defaultCriterion, isEligibleFor, setName

    Methods inherited from class org.jgrapes.core.internal.ComponentVertex

    activeEventPipeline, addHandler, attach, channelReplacements, children, componentPath, componentVertex, detach, fire, initComponentsHandlers, iterator, name, newEventPipeline, newEventPipeline, parent, registerAsGenerator, root, toString, unregisterAsGenerator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface org.jgrapes.core.Manager

    stream