Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config refresh thread #7608

Merged
merged 2 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.fasterxml.jackson.annotation.*;
import org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionElement;

import java.io.Serial;
import java.util.Objects;

import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
Expand All @@ -19,6 +20,7 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class GovernanceActionEvent extends GovernanceEngineEvent
{
@Serial
private static final long serialVersionUID = 1L;

private String governanceActionGUID = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.fasterxml.jackson.annotation.*;
import org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent;

import java.io.Serial;
import java.util.Objects;

import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
Expand All @@ -19,6 +20,7 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class WatchdogGovernanceServiceEvent extends GovernanceEngineEvent
{
@Serial
private static final long serialVersionUID = 1L;

private WatchdogGovernanceEvent watchdogGovernanceEvent = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.odpi.openmetadata.frameworks.governanceaction.properties.GovernanceActionStatus;
import org.odpi.openmetadata.frameworks.governanceaction.properties.RequestSourceElement;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
Expand All @@ -29,7 +30,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class GovernanceActionElement extends ReferenceableProperties implements MetadataElement, Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private ElementHeader elementHeader = null;
private int domainIdentifier = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionProcessProperties;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

Expand All @@ -23,7 +24,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class GovernanceActionProcessElement implements MetadataElement, Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private ElementHeader elementHeader = null;
private GovernanceActionProcessProperties processProperties = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionTypeProperties;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

Expand All @@ -23,7 +24,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class GovernanceActionTypeElement implements MetadataElement, Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private ElementHeader elementHeader = null;
private GovernanceActionTypeProperties actionTypeProperties = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceEngineProperties;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

Expand All @@ -24,7 +25,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class GovernanceEngineElement implements MetadataElement, Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private ElementHeader elementHeader = null;
private GovernanceEngineProperties properties = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceServiceProperties;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

Expand All @@ -24,7 +25,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class GovernanceServiceElement implements MetadataElement, Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private ElementHeader elementHeader = null;
private GovernanceServiceProperties properties = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader;
import org.odpi.openmetadata.frameworks.integration.properties.CatalogTarget;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;
import java.util.Objects;
Expand All @@ -27,7 +28,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class IntegrationConnectorElement implements MetadataElement, Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private ElementHeader elementHeader = null;
private IntegrationConnectorProperties properties = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.odpi.openmetadata.accessservices.governanceengine.properties.IntegrationGroupProperties;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

Expand All @@ -24,7 +25,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class IntegrationGroupElement implements MetadataElement, Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private ElementHeader elementHeader = null;
private IntegrationGroupProperties properties = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

Expand All @@ -22,7 +23,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class NextGovernanceActionTypeElement implements Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private GovernanceActionTypeElement nextActionType = null;
private String nextActionLinkGUID = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.odpi.openmetadata.accessservices.governanceengine.properties.RegisteredGovernanceService;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

Expand All @@ -25,7 +26,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class RegisteredGovernanceServiceElement implements MetadataElement, Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private ElementHeader elementHeader = null;
private RegisteredGovernanceService properties = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import org.odpi.openmetadata.accessservices.governanceengine.properties.RegisteredIntegrationConnectorProperties;

import java.io.Serial;
import java.util.Objects;
import java.util.UUID;

Expand All @@ -23,7 +24,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class RegisteredIntegrationConnectorElement extends IntegrationConnectorElement
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private String connectorId = null;
private RegisteredIntegrationConnectorProperties registrationProperties = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

Expand All @@ -22,7 +23,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class RelatedGovernanceActionElement implements Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private ElementStub relatedAction = null;
private String relatedActionLinkGUID = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import com.fasterxml.jackson.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -20,7 +21,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class CatalogTargetProperties implements Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private String catalogTargetName = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serial;
import java.util.*;

import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
Expand All @@ -21,7 +22,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class GovernanceActionProcessProperties extends ReferenceableProperties
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private String displayName = null;
private String summary = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.fasterxml.jackson.annotation.*;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection;

import java.io.Serial;
import java.util.*;

import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
Expand All @@ -21,7 +22,8 @@

public class IntegrationConnectorProperties extends ReferenceableProperties
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private String displayName = null;
private String versionIdentifier = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import org.odpi.openmetadata.frameworks.integration.contextmanager.PermittedSynchronization;

import java.io.Serial;
import java.io.Serializable;
import java.util.*;

Expand All @@ -22,7 +23,8 @@
@JsonIgnoreProperties(ignoreUnknown=true)
public class RegisteredIntegrationConnectorProperties implements Serializable
{
private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 1L;

private String connectorName = null;
private String connectorUserId = null;
Expand Down Expand Up @@ -63,7 +65,6 @@ public RegisteredIntegrationConnectorProperties(RegisteredIntegrationConnectorPr
}



/**
* Return the name of the connector. This name is used for routing refresh calls to the connector as well
* as being used for diagnostics. Ideally it should be unique amongst the connectors for the integration service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@

import java.util.List;

/**
* GovernanceEngineAdmin is called during server start up to set up the Governance Engine OMAS.
*/
public class GovernanceEngineAdmin extends AccessServiceAdmin
{
private AuditLog auditLog = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class CatalogTargetConverter<B> extends OCFConverter<B>
*
* @param repositoryHelper helper object to parse entity/relationship objects
* @param serviceName name of this component
* @param serverName local server name
*/
public CatalogTargetConverter(OMRSRepositoryHelper repositoryHelper,
String serviceName,
Expand Down
Loading