mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 16:39:11 +00:00
parent
2bec59ec3e
commit
6fc5acd760
@ -281,7 +281,11 @@ public class NettyHttpServerTransport extends AbstractLifecycleComponent<HttpSer
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HttpInfo info() {
|
public HttpInfo info() {
|
||||||
return new HttpInfo(boundAddress(), maxContentLength.bytes());
|
BoundTransportAddress boundTransportAddress = boundAddress();
|
||||||
|
if (boundTransportAddress == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return new HttpInfo(boundTransportAddress, maxContentLength.bytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -127,7 +127,11 @@ public class TransportService extends AbstractLifecycleComponent<TransportServic
|
|||||||
}
|
}
|
||||||
|
|
||||||
public TransportInfo info() {
|
public TransportInfo info() {
|
||||||
return new TransportInfo(boundAddress());
|
BoundTransportAddress boundTransportAddress = boundAddress();
|
||||||
|
if (boundTransportAddress == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return new TransportInfo(boundTransportAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
public TransportStats stats() {
|
public TransportStats stats() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user