Class InMemoryOpenMetadataTopicConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicConnector
org.odpi.openmetadata.adapters.eventbus.topic.inmemory.InMemoryOpenMetadataTopicConnector
- All Implemented Interfaces:
Runnable,AuditLoggingComponent,SecureConnectorExtension,VirtualConnectorExtension,OpenMetadataTopic
InMemoryOpenMetadataTopicConnector provides a concrete implementation of the OpenMetadataTopicConnector that
uses an in-memory list as the event/messaging infrastructure. This connector is used internally
in the OMRS to pass events received on the OMRS Topic to the OMAS Topic Listeners.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection -
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicConnector
auditLogFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLook to see if there is one of more new events to process.voidFree up any resources held since the connector is no longer needed.voidSends the supplied event to the topic.voidstart()Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicConnector
checkForIncomingEvents, getConnectorComponentDescription, registerListener, run, setAuditLogMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnectConnectors, equals, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestamp
-
Constructor Details
-
InMemoryOpenMetadataTopicConnector
public InMemoryOpenMetadataTopicConnector()Constructor
-
-
Method Details
-
sendEvent
Sends the supplied event to the topic.- Parameters:
event- OMRSEvent object containing the event properties.
-
checkForEvents
Look to see if there is one of more new events to process.- Overrides:
checkForEventsin classOpenMetadataTopicConnector- Returns:
- a list of received events or null
-
start
Indicates that the connector is completely configured and can begin processing.- Overrides:
startin classOpenMetadataTopicConnector- Throws:
ConnectorCheckedException- there is a problem within the connector.UserNotAuthorizedException- the connector was disconnected before/during start
-
disconnect
Free up any resources held since the connector is no longer needed.- Overrides:
disconnectin classOpenMetadataTopicConnector- Throws:
ConnectorCheckedException- there is a problem within the connector.
-