Record Class PluginIntrospectionSnapshot

java.lang.Object
java.lang.Record
dev.shamoo.runtime.core.PluginIntrospectionSnapshot

public record PluginIntrospectionSnapshot(PluginId pluginId, PluginLifecycleState state, List<LifecycleTransition> transitions, Set<PluginId> dependencies, List<DependencyBlock> blockedReasons, List<ResourceRegistration> resources, InvocationSnapshot invocations, LifecycleMetricsSnapshot metrics, Instant capturedAt) extends Record
One immutable administrative view assembled under coordinator serialization.
  • Constructor Details

    • PluginIntrospectionSnapshot

      public PluginIntrospectionSnapshot(PluginId pluginId, PluginLifecycleState state, List<LifecycleTransition> transitions, Set<PluginId> dependencies, List<DependencyBlock> blockedReasons, List<ResourceRegistration> resources, InvocationSnapshot invocations, LifecycleMetricsSnapshot metrics, Instant capturedAt)
      Creates an instance of a PluginIntrospectionSnapshot record class.
      Parameters:
      pluginId - the value for the pluginId record component
      state - the value for the state record component
      transitions - the value for the transitions record component
      dependencies - the value for the dependencies record component
      blockedReasons - the value for the blockedReasons record component
      resources - the value for the resources record component
      invocations - the value for the invocations record component
      metrics - the value for the metrics record component
      capturedAt - the value for the capturedAt record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pluginId

      public PluginId pluginId()
      Returns the value of the pluginId record component.
      Returns:
      the value of the pluginId record component
    • state

      public PluginLifecycleState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • transitions

      public List<LifecycleTransition> transitions()
      Returns the value of the transitions record component.
      Returns:
      the value of the transitions record component
    • dependencies

      public Set<PluginId> dependencies()
      Returns the value of the dependencies record component.
      Returns:
      the value of the dependencies record component
    • blockedReasons

      public List<DependencyBlock> blockedReasons()
      Returns the value of the blockedReasons record component.
      Returns:
      the value of the blockedReasons record component
    • resources

      public List<ResourceRegistration> resources()
      Returns the value of the resources record component.
      Returns:
      the value of the resources record component
    • invocations

      public InvocationSnapshot invocations()
      Returns the value of the invocations record component.
      Returns:
      the value of the invocations record component
    • metrics

      public LifecycleMetricsSnapshot metrics()
      Returns the value of the metrics record component.
      Returns:
      the value of the metrics record component
    • capturedAt

      public Instant capturedAt()
      Returns the value of the capturedAt record component.
      Returns:
      the value of the capturedAt record component