Class Monitors


  • public class Monitors
    extends java.lang.Object
    Utility class used to manage a collection of Monitors. Creates and manages individual Monitor instances and takes care of combining Trigger results.
    Author:
    Phillip Webb
    • Constructor Summary

      Constructors 
      Constructor Description
      Monitors​(com.intellij.openapi.project.Project project, java.util.function.Consumer<Trigger.State> stateChangeConsumer, Monitor.Factory... monitorFactories)
      Create a new Monitors instnace.
      Monitors​(com.intellij.openapi.project.Project project, java.util.function.Consumer<Trigger.State> stateChangeConsumer, java.util.List<Monitor.Factory> monitorFactories)
      Create a new Monitors instnace.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Monitors

        public Monitors​(com.intellij.openapi.project.Project project,
                        java.util.function.Consumer<Trigger.State> stateChangeConsumer,
                        Monitor.Factory... monitorFactories)
        Create a new Monitors instnace.
        Parameters:
        project - the source project
        stateChangeConsumer - consumer called whenever the ultimate state changes
        monitorFactories - factories used to create the monitors
      • Monitors

        public Monitors​(com.intellij.openapi.project.Project project,
                        java.util.function.Consumer<Trigger.State> stateChangeConsumer,
                        java.util.List<Monitor.Factory> monitorFactories)
        Create a new Monitors instnace.
        Parameters:
        project - the source project
        stateChangeConsumer - consumer called whenever the ultimate state changes
        monitorFactories - factories used to create the monitors
    • Method Detail

      • stop

        public void stop()