Map<String, String> getMetadata() { if (metadataBuildStage == STAGE_INITIALIZING) throw new IllegalStateException(formatInitCycleMessage()); if (metadataBuildStage == STAGE_UNINITIALIZED) { metadataBuildStage = STAGE_INITIALIZING; this.metadata = createUnmodifiableMap(true, false, getMetadataInitialize()); metadataBuildStage = STAGE_INITIALIZED; } return this.metadata; }
/** * @return The value of the {@code connections} attribute */ @JsonProperty("connections") @Override public List<Connection> getConnections() { InitShim shim = this.initShim; return shim != null ? shim.getConnections() : this.connections; }
/** * @return The value of the {@code metadata} attribute */ @JsonProperty("metadata") @Override public Map<String, String> getMetadata() { InitShim shim = this.initShim; return shim != null ? shim.getMetadata() : this.metadata; }
this.steps = createUnmodifiableList(false, createSafeList(steps, true, false)); this.metadata = createUnmodifiableMap(true, false, metadata); initShim.connections(this.connections); initShim.steps(this.steps); initShim.metadata(this.metadata); this.initShim = null;
private ImmutableFlow(ImmutableFlow.Builder builder) { this.scheduler = builder.scheduler; this.description = builder.description; this.name = builder.name; this.id = builder.id; this.kind = builder.kind; this.tags = createUnmodifiableSortedSet(false, createSafeList(builder.tags, false, false)); if (builder.connectionsIsSet()) { initShim.connections(createUnmodifiableList(true, builder.connections)); } if (builder.stepsIsSet()) { initShim.steps(createUnmodifiableList(true, builder.steps)); } if (builder.metadataIsSet()) { initShim.metadata(createUnmodifiableMap(false, false, builder.metadata)); } this.connections = initShim.getConnections(); this.steps = initShim.getSteps(); this.metadata = initShim.getMetadata(); this.initShim = null; }
List<Step> getSteps() { if (stepsBuildStage == STAGE_INITIALIZING) throw new IllegalStateException(formatInitCycleMessage()); if (stepsBuildStage == STAGE_UNINITIALIZED) { stepsBuildStage = STAGE_INITIALIZING; this.steps = createUnmodifiableList(false, createSafeList(getStepsInitialize(), true, false)); stepsBuildStage = STAGE_INITIALIZED; } return this.steps; }
List<Connection> getConnections() { if (connectionsBuildStage == STAGE_INITIALIZING) throw new IllegalStateException(formatInitCycleMessage()); if (connectionsBuildStage == STAGE_UNINITIALIZED) { connectionsBuildStage = STAGE_INITIALIZING; this.connections = createUnmodifiableList(false, createSafeList(getConnectionsInitialize(), true, false)); connectionsBuildStage = STAGE_INITIALIZED; } return this.connections; }
/** * @return The value of the {@code steps} attribute */ @JsonProperty("steps") @Override public List<Step> getSteps() { InitShim shim = this.initShim; return shim != null ? shim.getSteps() : this.steps; }