@NotThreadSafe public class NettyDataServer extends Object implements DataServer
Constructor and Description |
---|
NettyDataServer(InetSocketAddress nettyBindAddress,
InetSocketAddress s3BindAddress,
UfsManager ufsManager,
DoraWorker doraWorker)
Creates a new instance of
NettyDataServer . |
NettyDataServer(InetSocketAddress nettyBindAddress,
UfsManager ufsManager)
Creates a new instance of
NettyDataServer . |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination()
Waits for server to terminate.
|
void |
close() |
SocketAddress |
getBindAddress()
Gets the actual bind socket address.
|
SocketAddress |
getS3BindAddress()
Gets the actual bind socket address for S3.
|
boolean |
isClosed()
Checks if the
DataServer is closed. |
@Inject public NettyDataServer(@Named(value="NettyBindAddress") InetSocketAddress nettyBindAddress, @Named(value="S3BindAddress") InetSocketAddress s3BindAddress, UfsManager ufsManager, DoraWorker doraWorker)
NettyDataServer
.nettyBindAddress
- the server addresss3BindAddress
- the s3 server addressufsManager
- the UfsManager objectdoraWorker
- the DoraWorker objectpublic NettyDataServer(@Named(value="NettyBindAddress") InetSocketAddress nettyBindAddress, UfsManager ufsManager)
NettyDataServer
.
This is for the constructor of the NettyDataServer subclass.nettyBindAddress
- the server addressufsManager
- the UfsManager objectpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public SocketAddress getBindAddress()
DataServer
InetSocketAddress
or a
DomainSocketAddress
.getBindAddress
in interface DataServer
public SocketAddress getS3BindAddress()
DataServer
InetSocketAddress
or a
DomainSocketAddress
.getS3BindAddress
in interface DataServer
public boolean isClosed()
DataServer
DataServer
is closed.isClosed
in interface DataServer
DataServer
is closed, false otherwisepublic void awaitTermination()
DataServer
awaitTermination
in interface DataServer
Copyright © 2023. All Rights Reserved.