public class CohortConfig extends Object
| Constructor and Description |
|---|
CohortConfig()
Default constructor does nothing.
|
CohortConfig(String cohortName,
Connection cohortRegistryConnection,
Connection cohortOMRSTopicConnection,
OpenMetadataExchangeRule eventsToProcessRule,
List<TypeDefSummary> selectedTypesToProcess)
Constructor to populate all config values.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCohortName()
Return the name of the cohort.
|
Connection |
getCohortOMRSTopicConnection()
Return the connection to the cohort's OMRS Topic.
|
OpenMetadataEventProtocolVersion |
getCohortOMRSTopicProtocolVersion()
Return the protocol version to use when exchanging events amongst the cohort members.
|
Connection |
getCohortRegistryConnection()
Set up the connection to the cohort registry store.
|
OpenMetadataExchangeRule |
getEventsToProcessRule()
Return the rule indicating whether incoming metadata events from a cohort should be processed.
|
List<TypeDefSummary> |
getSelectedTypesToProcess()
Return the list of TypeDefs used if the eventsToProcess rule (above) says "SELECTED_TYPES" - otherwise
it is set to null.
|
void |
setCohortName(String cohortName)
Set up the name of the cohort.
|
void |
setCohortOMRSTopicConnection(Connection cohortOMRSTopicConnection)
Set up the connection to the cohort's OMRS Topic.
|
void |
setCohortOMRSTopicProtocolVersion(OpenMetadataEventProtocolVersion cohortOMRSTopicProtocolVersion)
Set up the protocol version to use when exchanging events amongst the cohort members.
|
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.
|
public CohortConfig()
public CohortConfig(String cohortName, Connection cohortRegistryConnection, Connection cohortOMRSTopicConnection, OpenMetadataExchangeRule eventsToProcessRule, List<TypeDefSummary> selectedTypesToProcess)
cohortName - name of the cohortcohortRegistryConnection - connection to the cohort registry storecohortOMRSTopicConnection - connection to the OMRS TopiceventsToProcessRule - rule indicating whether metadata events should be sent to the federated OMRS Topic.selectedTypesToProcess - if the rule says "SELECTED_TYPES" then this is the list of types otherwise
it is set to null.public String getCohortName()
public void setCohortName(String cohortName)
cohortName - Stringpublic Connection getCohortRegistryConnection()
public void setCohortRegistryConnection(Connection cohortRegistryConnection)
cohortRegistryConnection - Connection objectpublic Connection getCohortOMRSTopicConnection()
public void setCohortOMRSTopicConnection(Connection cohortOMRSTopicConnection)
cohortOMRSTopicConnection - Connection objectpublic OpenMetadataEventProtocolVersion getCohortOMRSTopicProtocolVersion()
public void setCohortOMRSTopicProtocolVersion(OpenMetadataEventProtocolVersion cohortOMRSTopicProtocolVersion)
cohortOMRSTopicProtocolVersion - protocol version enumpublic OpenMetadataExchangeRule getEventsToProcessRule()
public void setEventsToProcessRule(OpenMetadataExchangeRule eventsToProcessRule)
eventsToProcessRule - OpenMetadataExchangeRule - NONE, JUST_TYPEDEFS, SELECTED_TYPES and ALL.public List<TypeDefSummary> getSelectedTypesToProcess()
public void setSelectedTypesToProcess(List<TypeDefSummary> selectedTypesToProcess)
selectedTypesToProcess - list of TypeDefs that determine which metadata instances to processCopyright © 2018 ODPi. All rights reserved.