public class TransportInfo extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
TransportInfo(BoundTransportAddress address,
Map<String,BoundTransportAddress> profileAddresses) |
Modifier and Type | Method and Description |
---|---|
BoundTransportAddress |
address() |
BoundTransportAddress |
getAddress() |
Map<String,BoundTransportAddress> |
getProfileAddresses() |
Map<String,BoundTransportAddress> |
profileAddresses() |
void |
readFrom(StreamInput in) |
static TransportInfo |
readTransportInfo(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public TransportInfo(BoundTransportAddress address, @Nullable Map<String,BoundTransportAddress> profileAddresses)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public static TransportInfo readTransportInfo(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public BoundTransportAddress address()
public BoundTransportAddress getAddress()
public Map<String,BoundTransportAddress> getProfileAddresses()
public Map<String,BoundTransportAddress> profileAddresses()
Copyright © 2009–2017. All rights reserved.