forked from odpi/egeria
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request odpi#6620 from MihaiIliescu/Data_Engine_Proxy_sync…
…_state_stored_in_Egeria_repository Added ProcessingState classification and endpoints to upsert it
- Loading branch information
Showing
10 changed files
with
451 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
.../src/main/java/org/odpi/openmetadata/accessservices/dataengine/model/ProcessingState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
/* Copyright Contributors to the ODPi Egeria project. */ | ||
package org.odpi.openmetadata.accessservices.dataengine.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAutoDetect; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AccessLevel; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
import java.util.Map; | ||
|
||
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE; | ||
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY; | ||
|
||
/** | ||
* The ProcessingState classification | ||
*/ | ||
@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@EqualsAndHashCode(callSuper = true) | ||
@ToString(callSuper = true) | ||
@Getter | ||
@Setter | ||
public class ProcessingState extends Referenceable { | ||
|
||
@Getter(AccessLevel.NONE) | ||
@Setter(AccessLevel.NONE) | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* The Sync Dates map of critical elements and sync status | ||
* -- GETTER -- | ||
* Gets sync states map. | ||
* | ||
* @return sync states map | ||
* -- SETTER -- | ||
* Sets sync states map. | ||
* @param syncDatesByKey the sync states map | ||
*/ | ||
@JsonProperty("syncDatesByKey") | ||
private Map<String, Long> syncDatesByKey; | ||
} |
47 changes: 47 additions & 0 deletions
47
...java/org/odpi/openmetadata/accessservices/dataengine/rest/ProcessingStateRequestBody.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
/* Copyright Contributors to the ODPi Egeria project. */ | ||
package org.odpi.openmetadata.accessservices.dataengine.rest; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAutoDetect; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
import org.odpi.openmetadata.accessservices.dataengine.model.ProcessingState; | ||
|
||
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE; | ||
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY; | ||
|
||
@JsonAutoDetect(getterVisibility = PUBLIC_ONLY, setterVisibility = PUBLIC_ONLY, fieldVisibility = NONE) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = true) | ||
@ToString | ||
public class ProcessingStateRequestBody extends DataEngineOMASAPIRequestBody | ||
{ | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* The sync state to be created | ||
* -- GETTER -- | ||
* Return the sync state bean | ||
* | ||
* @return the sync state | ||
* -- SETTER -- | ||
* Set up the sync state bean | ||
* @param processingState the sync state | ||
*/ | ||
@JsonProperty("processingState") | ||
private ProcessingState processingState; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.