Record Class EngineManifest.SinkRegistration
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.storeforward.engine.EngineManifest.SinkRegistration
- Record Components:
storageKey- the storage key identifying the sinkengineBound- true if this sink is bound to the engine's lifecycle
- Enclosing class:
- EngineManifest
public static record EngineManifest.SinkRegistration(StorageKey storageKey, boolean engineBound)
extends Record
Represents a sink registration within the manifest, combining the storage key with the
engine-bound status.
Engine-bound sinks (like DatasourceQuerySink) are inherently tied to their engine. When the engine is renamed, both the engineId and sinkId will be updated, and the sink's data directory will be renamed accordingly.
Independent sinks (like SQL Historian profiles) have their own identity separate from the engine. When the engine is renamed, only the engineId is updated; the sinkId and data directory remain unchanged.
-
Constructor Summary
ConstructorsConstructorDescriptionSinkRegistration(StorageKey storageKey, boolean engineBound) Creates an instance of aSinkRegistrationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theengineBoundrecord component.final booleanIndicates whether some other object is "equal to" this one.from(StorageKey storageKey) Creates a SinkRegistration with automatic engine-bound detection based on the storage key pattern.final inthashCode()Returns a hash code value for this object.Returns the value of thestorageKeyrecord component.final StringtoString()Returns a string representation of this record class.withRenamedEngine(String newEngineId) Creates a new SinkRegistration with the storage key updated for engine rename.withRenamedSink(String oldSinkId, String newSinkId) Creates a new SinkRegistration with the sink ID updated.
-
Constructor Details
-
SinkRegistration
Creates an instance of aSinkRegistrationrecord class.- Parameters:
storageKey- the value for thestorageKeyrecord componentengineBound- the value for theengineBoundrecord component
-
-
Method Details
-
from
Creates a SinkRegistration with automatic engine-bound detection based on the storage key pattern.- Parameters:
storageKey- the storage key- Returns:
- a new SinkRegistration with engineBound inferred from storageKey
-
withRenamedEngine
Creates a new SinkRegistration with the storage key updated for engine rename.- Parameters:
newEngineId- the new engine ID- Returns:
- a new SinkRegistration with updated storage key
-
withRenamedSink
Creates a new SinkRegistration with the sink ID updated.- Parameters:
oldSinkId- the old sink ID to matchnewSinkId- the new sink ID- Returns:
- a new SinkRegistration with updated sink ID if it matched, otherwise this
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
storageKey
Returns the value of thestorageKeyrecord component.- Returns:
- the value of the
storageKeyrecord component
-
engineBound
public boolean engineBound()Returns the value of theengineBoundrecord component.- Returns:
- the value of the
engineBoundrecord component
-