public class DataServerFactory extends Object
Modifier | Constructor and Description |
---|---|
protected |
DataServerFactory(UfsManager ufsManager,
InetSocketAddress connectAddress,
InetSocketAddress gRpcBindAddress) |
Modifier and Type | Method and Description |
---|---|
DataServer |
createDomainSocketDataServer(DataWorker worker) |
DataServer |
createRemoteGrpcDataServer(DataWorker dataWorker) |
InetSocketAddress |
getConnectAddress()
Get gRPC connect address.
|
InetSocketAddress |
getGRpcBindAddress()
Get gRPC bind address.
|
@Inject protected DataServerFactory(UfsManager ufsManager, @Named(value="GrpcConnectAddress") InetSocketAddress connectAddress, @Named(value="GrpcBindAddress") InetSocketAddress gRpcBindAddress)
public DataServer createRemoteGrpcDataServer(DataWorker dataWorker)
dataWorker
- the dora workerpublic DataServer createDomainSocketDataServer(DataWorker worker)
worker
- the dora workerpublic InetSocketAddress getGRpcBindAddress()
public InetSocketAddress getConnectAddress()
Copyright © 2023. All Rights Reserved.