Class CohortConfig
java.lang.Object
org.odpi.openmetadata.adminservices.configuration.properties.AdminServicesConfigHeader
org.odpi.openmetadata.adminservices.configuration.properties.CohortConfig
CohortConfig provides the configuration properties used to connect to an open metadata repository cohort.
- cohortName is a descriptive name for the cohort that is used primarily for messages and diagnostics. It is also used to create a default name for the cohort's OMRS Topic and the cohortRegistry's store if these names are not explicitly defined.
- cohortRegistryConnection is the connection properties necessary to create the connector to the cohort registry store. This is the store where the cohort registry keeps information about its local metadata collection identifier and details of other repositories in the cohort. The default value is to use a local file called "cohort.registry" that is stored in the server's home directory.
- cohortOMRSTopicConnection is the connection properties necessary to create the connector to the OMRS Topic. This is used to send/receive events between members of the open metadata repository cohort.
- cohortOMRSTopicProtocolVersion defines the version of the event payload to use when communicating with other members of the cohort through the OMRS Topic.
- eventsToProcessRule defines how incoming events on the OMRS Topic should be processed.
- selectedTypesToProcess - list of TypeDefs used if the eventsToProcess rule (above) says "SELECTED_TYPES" - otherwise it is set to null.
-
Constructor Summary
ConstructorDescriptionDefault constructor does nothing.CohortConfig
(CohortConfig template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.Return the name of the cohort.Return the connection to the topic that is dedicated to exchanging details of the metadata instances stored by the members of the cohort.Return the connection to the topic that is dedicated to the registration requests that manage the membership of the cohort.Return the connection to the cohort's single OMRS Topic.Return the protocol version to use when exchanging events amongst the cohort members.Return the connection to the topic that is dedicated to the type validation requests that manage the consistency of types within the cohort.Set up the connection to the cohort registry store.Return the rule indicating whether incoming metadata events from a cohort should be processed.Return the list of TypeDefs used if the eventsToProcess rule (above) says "SELECTED_TYPES" - otherwise it is set to null.int
hashCode()
Return a hash code based on the values of this object.void
setCohortName
(String cohortName) Set up the name of the cohort.void
setCohortOMRSInstancesTopicConnection
(Connection cohortOMRSInstancesTopicConnection) Set up the connection to the topic that is dedicated to exchanging details of the metadata instances stored by the members of the cohort.void
setCohortOMRSRegistrationTopicConnection
(Connection cohortOMRSRegistrationTopicConnection) Set up the connection to the topic that is dedicated to the registration requests that manage the membership of the cohort.void
setCohortOMRSTopicConnection
(Connection cohortOMRSTopicConnection) Set up the connection to the cohort's single OMRS Topic.void
setCohortOMRSTopicProtocolVersion
(OpenMetadataEventProtocolVersion cohortOMRSTopicProtocolVersion) Set up the protocol version to use when exchanging events amongst the cohort members.void
setCohortOMRSTypesTopicConnection
(Connection cohortOMRSTypesTopicConnection) Set up the connection to the topic that is dedicated to the type validation requests that manage the consistency of types within the cohort.void
setCohortRegistryConnection
(Connection cohortRegistryConnection) Set up the connection for the cohort registry store.void
setEventsToProcessRule
(OpenMetadataExchangeRule eventsToProcessRule) Set up the rule indicating whether incoming metadata events from a cohort should be processed.void
setSelectedTypesToProcess
(List<TypeDefSummary> selectedTypesToProcess) Set up the list of TypeDefs used if the EventsToProcess rule (above) says "SELECTED_TYPES" - otherwise it is set to null.toString()
Standard toString method.
-
Constructor Details
-
CohortConfig
public CohortConfig()Default constructor does nothing. -
CohortConfig
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getCohortName
Return the name of the cohort.- Returns:
- String name
-
setCohortName
Set up the name of the cohort.- Parameters:
cohortName
- String
-
getCohortRegistryConnection
Set up the connection to the cohort registry store.- Returns:
- Connection object
-
setCohortRegistryConnection
Set up the connection for the cohort registry store.- Parameters:
cohortRegistryConnection
- Connection object
-
getCohortOMRSTopicConnection
Return the connection to the cohort's single OMRS Topic. This topic is used for exchanging metadata with back-level servers. It should be removed if all members of the cohort are able to use the three split cohort topics since it is much more efficient.- Returns:
- Connection object
-
setCohortOMRSTopicConnection
Set up the connection to the cohort's single OMRS Topic. This topic is used for exchanging metadata with back-level servers. It should be removed if all members of the cohort are able to use the three split cohort topics since it is much more efficient.- Parameters:
cohortOMRSTopicConnection
- Connection object
-
getCohortOMRSRegistrationTopicConnection
Return the connection to the topic that is dedicated to the registration requests that manage the membership of the cohort.- Returns:
- Connection object
-
setCohortOMRSRegistrationTopicConnection
public void setCohortOMRSRegistrationTopicConnection(Connection cohortOMRSRegistrationTopicConnection) Set up the connection to the topic that is dedicated to the registration requests that manage the membership of the cohort.- Parameters:
cohortOMRSRegistrationTopicConnection
- Connection object
-
getCohortOMRSTypesTopicConnection
Return the connection to the topic that is dedicated to the type validation requests that manage the consistency of types within the cohort.- Returns:
- Connection object
-
setCohortOMRSTypesTopicConnection
Set up the connection to the topic that is dedicated to the type validation requests that manage the consistency of types within the cohort.- Parameters:
cohortOMRSTypesTopicConnection
- Connection object
-
getCohortOMRSInstancesTopicConnection
Return the connection to the topic that is dedicated to exchanging details of the metadata instances stored by the members of the cohort.- Returns:
- Connection object
-
setCohortOMRSInstancesTopicConnection
Set up the connection to the topic that is dedicated to exchanging details of the metadata instances stored by the members of the cohort.- Parameters:
cohortOMRSInstancesTopicConnection
- Connection object
-
getCohortOMRSTopicProtocolVersion
Return the protocol version to use when exchanging events amongst the cohort members.- Returns:
- protocol version enum
-
setCohortOMRSTopicProtocolVersion
public void setCohortOMRSTopicProtocolVersion(OpenMetadataEventProtocolVersion cohortOMRSTopicProtocolVersion) Set up the protocol version to use when exchanging events amongst the cohort members.- Parameters:
cohortOMRSTopicProtocolVersion
- protocol version enum
-
getEventsToProcessRule
Return the rule indicating whether incoming metadata events from a cohort should be processed.- Returns:
- OpenMetadataExchangeRule - NONE, JUST_TYPEDEFS, SELECTED_TYPES and ALL.
-
setEventsToProcessRule
Set up the rule indicating whether incoming metadata events from a cohort should be processed.- Parameters:
eventsToProcessRule
- OpenMetadataExchangeRule - NONE, JUST_TYPEDEFS, SELECTED_TYPES and ALL.
-
getSelectedTypesToProcess
Return the list of TypeDefs used if the eventsToProcess rule (above) says "SELECTED_TYPES" - otherwise it is set to null.- Returns:
- list of TypeDefs that determine which metadata instances to process
-
setSelectedTypesToProcess
Set up the list of TypeDefs used if the EventsToProcess rule (above) says "SELECTED_TYPES" - otherwise it is set to null.- Parameters:
selectedTypesToProcess
- list of TypeDefs that determine which metadata instances to process
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the values of this object.
-