Package org.apache.drill.exec.rpc.data
Class DataConnectionCreator
java.lang.Object
org.apache.drill.exec.rpc.data.DataConnectionCreator
- All Implemented Interfaces:
AutoCloseable
Manages a connection for each endpoint.
-
Constructor Summary
ConstructorDescriptionDataConnectionCreator
(BootStrapContext context, BufferAllocator allocator, WorkEventBus workBus, WorkManager.WorkerBee bee) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getTunnel
(CoordinationProtos.DrillbitEndpoint endpoint) start
(CoordinationProtos.DrillbitEndpoint partialEndpoint, boolean allowPortHunting)
-
Constructor Details
-
DataConnectionCreator
public DataConnectionCreator(BootStrapContext context, BufferAllocator allocator, WorkEventBus workBus, WorkManager.WorkerBee bee) throws DrillbitStartupException - Throws:
DrillbitStartupException
-
-
Method Details
-
start
public CoordinationProtos.DrillbitEndpoint start(CoordinationProtos.DrillbitEndpoint partialEndpoint, boolean allowPortHunting) -
getTunnel
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-