Search in sources :

Example 6 with HerderConnectorContext

use of org.apache.kafka.connect.runtime.HerderConnectorContext in project kafka by apache.

the class StandaloneHerder method startConnector.

private void startConnector(String connName, Callback<TargetState> onStart) {
    Map<String, String> connConfigs = configState.connectorConfig(connName);
    TargetState targetState = configState.targetState(connName);
    worker.startConnector(connName, connConfigs, new HerderConnectorContext(this, connName), this, targetState, onStart);
}
Also used : TargetState(org.apache.kafka.connect.runtime.TargetState) HerderConnectorContext(org.apache.kafka.connect.runtime.HerderConnectorContext)

Aggregations

HerderConnectorContext (org.apache.kafka.connect.runtime.HerderConnectorContext)6 TargetState (org.apache.kafka.connect.runtime.TargetState)6 ConnectorContext (org.apache.kafka.connect.connector.ConnectorContext)2 ArrayList (java.util.ArrayList)1 Arrays (java.util.Arrays)1 Collection (java.util.Collection)1 Collections (java.util.Collections)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Map (java.util.Map)1 NavigableSet (java.util.NavigableSet)1 NoSuchElementException (java.util.NoSuchElementException)1 Objects (java.util.Objects)1 Optional (java.util.Optional)1 Set (java.util.Set)1 Callable (java.util.concurrent.Callable)1 ConcurrentSkipListSet (java.util.concurrent.ConcurrentSkipListSet)1 ExecutorService (java.util.concurrent.ExecutorService)1 Executors (java.util.concurrent.Executors)1