Class IntegrationDaemonConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.adapters.connectors.egeriainfrastructure.servers.OMAGServerConnectorBase
org.odpi.openmetadata.adapters.connectors.egeriainfrastructure.servers.IntegrationDaemonConnector
- All Implemented Interfaces:
AuditLoggingComponent,SecureConnectorExtension,VirtualConnectorExtension
IntegrationDaemonConnector provides access to an Integration Daemon server.
-
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.adapters.connectors.egeriainfrastructure.servers.OMAGServerConnectorBase
extractorFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationProperties(String connectorName) Retrieve the configuration properties of the named connector.Retrieve a list of the integration services registered on the platformvoidpublishOpenLineageEvent(String event) Pass an open lineage event to the integration service.voidrefreshConnector(String connectorName) Issue a refresh() request on a specific connectorvoidIssue a refresh() request on a connector running in the integration daemon.voidrefreshIntegrationGroupConfig(String integrationGroupName) Request that the integration group refresh its configuration by calling the metadata server.voidrestartConnector(String connectorName) Issue a restart() request on a specific connectorvoidIssue a restart() request on a connector running in the integration daemon.voidupdateConfigurationProperties(String connectorName, boolean isMergeUpdate, Map<String, Object> configurationProperties) Update the configuration properties of the connectors, or specific connector if a connector name is supplied.voidupdateConnectorConnection(String connectorName, Connection connection) Update the configuration properties of the connectors, or specific connector if a connector name is supplied.voidupdateEndpointNetworkAddress(String connectorName, String networkAddress) Update the configuration properties of the connectors, or specific connector if a connector name is supplied.Methods inherited from class org.odpi.openmetadata.adapters.connectors.egeriainfrastructure.servers.OMAGServerConnectorBase
activateServer, connectToCohort, disconnectFromCohort, getActiveConfiguration, getActiveServerStatus, getActiveServices, getConnectorComponentDescription, getOMAGServerConfig, getServerReport, getServerStatus, setAuditLog, setClientUserId, shutdownAndUnregisterServer, shutdownServer, start, unregisterFromCohortMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnect, 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, setStatisticTimestampMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension
initializeEmbeddedConnectors
-
Constructor Details
-
IntegrationDaemonConnector
public IntegrationDaemonConnector()
-
-
Method Details
-
getIntegrationServices
public List<RegisteredOMAGService> getIntegrationServices() throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionRetrieve a list of the integration services registered on the platform- Returns:
- List of integration services
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getConfigurationProperties
public Map<String,Object> getConfigurationProperties(String connectorName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the configuration properties of the named connector.- Parameters:
connectorName- name of a specific connector or null for all connectors- Returns:
- property map
- Throws:
InvalidParameterException- the connector name is not recognizedUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- there was a problem detected by the integration daemon
-
updateConfigurationProperties
public void updateConfigurationProperties(String connectorName, boolean isMergeUpdate, Map<String, Object> configurationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionUpdate the configuration properties of the connectors, or specific connector if a connector name is supplied.- Parameters:
connectorName- name of a specific connector or null for all connectorsisMergeUpdate- should the properties be merged into the existing properties or replace themconfigurationProperties- new configuration properties- Throws:
InvalidParameterException- the connector name is not recognizedUserNotAuthorizedExceptionPropertyServerException
-
updateEndpointNetworkAddress
public void updateEndpointNetworkAddress(String connectorName, String networkAddress) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the configuration properties of the connectors, or specific connector if a connector name is supplied.- Parameters:
connectorName- name of a specific connector or null for all connectorsnetworkAddress- new address- Throws:
InvalidParameterException- the connector name is not recognizedUserNotAuthorizedExceptionPropertyServerException
-
updateConnectorConnection
public void updateConnectorConnection(String connectorName, Connection connection) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the configuration properties of the connectors, or specific connector if a connector name is supplied.- Parameters:
connectorName- name of a specific connector or null for all connectorsconnection- new address- Throws:
InvalidParameterException- the connector name is not recognizedUserNotAuthorizedExceptionPropertyServerException
-
refreshConnector
public void refreshConnector(String connectorName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Issue a refresh() request on a specific connector- Throws:
InvalidParameterException- one of the parameters is null or invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- there was a problem detected by the integration daemon
-
refreshConnectors
public void refreshConnectors() throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionIssue a refresh() request on a connector running in the integration daemon.- Throws:
InvalidParameterException- one of the parameters is null or invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- there was a problem detected by the integration daemon
-
restartConnector
public void restartConnector(String connectorName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Issue a restart() request on a specific connector- Parameters:
connectorName- connector- Throws:
InvalidParameterException- one of the parameters is null or invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- there was a problem detected by the integration daemon
-
restartConnectors
public void restartConnectors() throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionIssue a restart() request on a connector running in the integration daemon.- Throws:
InvalidParameterException- one of the parameters is null or invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- there was a problem detected by the integration daemon
-
refreshIntegrationGroupConfig
public void refreshIntegrationGroupConfig(String integrationGroupName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request that the integration group refresh its configuration by calling the metadata server. This request is useful if the metadata server has an outage, particularly while the integration daemon is initializing. This request just ensures that the latest configuration is in use.- Parameters:
integrationGroupName- qualifiedName of the integration group to target- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- there was a problem detected by the integration group.
-
publishOpenLineageEvent
public void publishOpenLineageEvent(String event) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Pass an open lineage event to the integration service. It will pass it on to the integration connectors that have registered a listener for open lineage events.- Parameters:
event- open lineage event to publish.- Throws:
InvalidParameterException- one of the parameters is null or invalidUserNotAuthorizedException- the caller is not authorized to call the servicePropertyServerException- there is a problem processing the request
-