Class IntegrationConnectorCacheMap
java.lang.Object
org.odpi.openmetadata.governanceservers.integrationdaemonservices.handlers.IntegrationConnectorCacheMap
IntegrationConnectorCacheMap maintains the map of connectorIds to integration connector handlers.
It is synchronized because the map is being rebuilt periodically.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the list of connectorIds registered with an integration daemon.getHandlerByConnectorId
(String connectorId) Retrieve the integration connector for the connectorId.getHandlerByConnectorName
(String connectorName) Retrieve the integration connector by its connector name.Return the list of connectors that should be processed by the integration daemon thread.void
putHandlerByConnectorId
(String connectorId, IntegrationConnectorHandler integrationConnectorHandler, boolean permanent) Add a new integration connector to the map/list.
-
Constructor Details
-
IntegrationConnectorCacheMap
public IntegrationConnectorCacheMap()
-
-
Method Details
-
putHandlerByConnectorId
public void putHandlerByConnectorId(String connectorId, IntegrationConnectorHandler integrationConnectorHandler, boolean permanent) Add a new integration connector to the map/list. New connectors are added to the front of the list, so they get processed first in the next iteration.- Parameters:
connectorId
- unique identifier of the connectorintegrationConnectorHandler
- mapped integration connectorpermanent
- is this connector part of the static configuration?
-
getHandlerByConnectorId
Retrieve the integration connector for the connectorId.- Parameters:
connectorId
- identifier of the connector.- Returns:
- connector handler
-
getHandlerByConnectorName
Retrieve the integration connector by its connector name.- Parameters:
connectorName
- identifier of the connector.- Returns:
- connector handler
-
getConnectorIds
Return the list of connectorIds registered with an integration daemon.- Returns:
- list of connector ids.
-
getIntegrationConnectorProcessingList
Return the list of connectors that should be processed by the integration daemon thread.- Returns:
- list of non-blocking connectors
-