Package dev.shamoo.runtime.core
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 Summary
ConstructorsConstructorDescriptionPluginIntrospectionSnapshot(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 aPluginIntrospectionSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockedReasonsrecord component.Returns the value of thecapturedAtrecord component.Returns the value of thedependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationsrecord component.metrics()Returns the value of themetricsrecord component.pluginId()Returns the value of thepluginIdrecord component.Returns the value of theresourcesrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransitionsrecord component.
-
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 aPluginIntrospectionSnapshotrecord class.- Parameters:
pluginId- the value for thepluginIdrecord componentstate- the value for thestaterecord componenttransitions- the value for thetransitionsrecord componentdependencies- the value for thedependenciesrecord componentblockedReasons- the value for theblockedReasonsrecord componentresources- the value for theresourcesrecord componentinvocations- the value for theinvocationsrecord componentmetrics- the value for themetricsrecord componentcapturedAt- the value for thecapturedAtrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
pluginId
Returns the value of thepluginIdrecord component.- Returns:
- the value of the
pluginIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
transitions
Returns the value of thetransitionsrecord component.- Returns:
- the value of the
transitionsrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
blockedReasons
Returns the value of theblockedReasonsrecord component.- Returns:
- the value of the
blockedReasonsrecord component
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-
invocations
Returns the value of theinvocationsrecord component.- Returns:
- the value of the
invocationsrecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
capturedAt
Returns the value of thecapturedAtrecord component.- Returns:
- the value of the
capturedAtrecord component
-