Interface ClusterLifecycle
- All Known Implementing Classes:
ClusterAdminClient, RollingClusterController
public interface ClusterLifecycle
Versioned, idempotent lifecycle administration. Existing operation retries must retain all original
inputs. UNKNOWN never permits blind repetition of an unprotected external effect.
-
Method Summary
Modifier and TypeMethodDescriptionAdmits a rolling hosted-application upgrade; progress continues through its durable workflow.default List<AuditEvent> Reads retained hash-linked lifecycle events.Stops new requests and waits for admitted invocations on one safe hosting target.Inspects actual authenticated hosts and durable workflow state.operationStatus(String operationId, Instant deadline) Reads a durable operation including an earlier lost response.plan(String operationId, long expectedVersion, String releaseId, List<String> nodeIds, Instant deadline) Persists a checked deployment plan without replacing any application.rollback(String operationId, long expectedVersion, String releaseId, List<String> nodeIds, Instant deadline) Plans and applies only a schema-compatible rollback release.default OperationStatusupgrade(String operationId, long expectedVersion, String releaseId, List<String> nodeIds, Instant deadline) Alias for plan-and-apply using stable derived planning identity.
-
Method Details
-
inspect
Inspects actual authenticated hosts and durable workflow state.- Parameters:
deadline- absolute deadline- Returns:
- immutable fleet view
- Throws:
IOException- for unavailable authority
-
plan
DeploymentPlan plan(String operationId, long expectedVersion, String releaseId, List<String> nodeIds, Instant deadline) throws IOException Persists a checked deployment plan without replacing any application.- Parameters:
operationId- stable planning identityexpectedVersion- optimistic fleet generationreleaseId- trusted server catalog releasenodeIds- ordered hosting targetsdeadline- absolute deadline- Returns:
- immutable plan
- Throws:
IOException- conflict, incompatible release or unavailable authority
-
apply
OperationStatus apply(String operationId, long expectedVersion, String planId, Instant deadline) throws IOException Admits a rolling hosted-application upgrade; progress continues through its durable workflow.- Parameters:
operationId- stable deployment identityexpectedVersion- optimistic generation used by the planplanId- immutable plan identitydeadline- absolute deadline- Returns:
- persisted current operation status
- Throws:
IOException- conflict, incompatible plan or unavailable authority
-
upgrade
default OperationStatus upgrade(String operationId, long expectedVersion, String releaseId, List<String> nodeIds, Instant deadline) throws IOException Alias for plan-and-apply using stable derived planning identity.- Parameters:
operationId- stable upgrade identityexpectedVersion- inspected fleet generationreleaseId- trusted releasenodeIds- ordered target hostsdeadline- absolute deadline- Returns:
- persisted upgrade status
- Throws:
IOException- conflict, rejected compatibility or unavailable authority
-
drain
OperationStatus drain(String operationId, long expectedVersion, String nodeId, Instant deadline) throws IOException Stops new requests and waits for admitted invocations on one safe hosting target.- Parameters:
operationId- stable drain identityexpectedVersion- optimistic fleet generationnodeId- hosting targetdeadline- absolute deadline- Returns:
- durable drain status
- Throws:
IOException- conflict, insufficient capacity or unavailable authority
-
rollback
OperationStatus rollback(String operationId, long expectedVersion, String releaseId, List<String> nodeIds, Instant deadline) throws IOException Plans and applies only a schema-compatible rollback release.- Parameters:
operationId- stable rollback identityexpectedVersion- inspected fleet generationreleaseId- trusted retained releasenodeIds- ordered hosting targetsdeadline- absolute deadline- Returns:
- persisted rollback status
- Throws:
IOException- incompatible downgrade, conflict or unavailable authority
-
operationStatus
Reads a durable operation including an earlier lost response.- Parameters:
operationId- admitted identitydeadline- absolute deadline- Returns:
- persisted status
- Throws:
IOException- not found or unavailable authority
-
audit
Reads retained hash-linked lifecycle events.- Parameters:
operationId- workflow identitydeadline- absolute deadline- Returns:
- immutable audit sequence
- Throws:
IOException- unavailable authorityUnsupportedOperationException- if this adapter lacks audit access
-