Record Class SiteReconcilerOptions
java.lang.Object
java.lang.Record
network.ike.plugin.reconcile.SiteReconcilerOptions
- Record Components:
rawFlags- map of flag-name → string value (already extracted from Maven system properties by the calling Mojo)
Flag bag passed through
SiteContext to site reconcilers.
Backs the convergence-pattern flag scheme defined in
IKE-Network/ike-issues#398 (mirroring the #393 ws-side scheme):
- Default (no flag): deploy current version + register on the landing page.
- Opt out:
-D<optOutFlag>=false— skip a single reconciler entirely (e.g.-DupdateSite=false,-DupdateRegistration=false). - Uninstall:
-Dsite=removed— invert the apply pass and tear down the deployed site + registration (subsumes the retiredclean-site+deregister-siteworkflows).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSiteReconcilerOptions(Map<String, String> rawFlags) Creates an instance of aSiteReconcilerOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SiteReconcilerOptionsempty()Convenience factory for callers that have no flags to pass.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisOptedOut(String flag) Tests whether a reconciler has been opted out via-D<flag>=false.booleanTests whether the user requested the uninstall pass via-Dsite=removed.Returns the user-supplied pin value for a reconciler that supports pinning to a specific version or target.rawFlags()Returns the value of therawFlagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SITE_FLAG
-
SITE_REMOVED
-
-
Constructor Details
-
SiteReconcilerOptions
-
-
Method Details
-
isOptedOut
Tests whether a reconciler has been opted out via-D<flag>=false.- Parameters:
flag- flag name (without-Dprefix)- Returns:
- true if the flag is present with value
"false"
-
pin
-
isUninstall
public boolean isUninstall()Tests whether the user requested the uninstall pass via-Dsite=removed.- Returns:
- true if
-Dsite=removedwas supplied — the publish pass should run as an uninstall instead of a forward deploy
-
empty
Convenience factory for callers that have no flags to pass.- Returns:
- an options bag with no flags set
-
toString
-
hashCode
-
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). -
rawFlags
-