public class PublishedAddressPolicy extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PublishedAddressPolicy.PublishedHostStrategy
Defines the value of the published host value.
|
| Constructor and Description |
|---|
PublishedAddressPolicy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClusterClientUriQuery()
Gets the URI query that's configured on the published URI that's sent to client's
when the cluster info is updated.
|
Map<String,String> |
getHostMapping() |
Map<Integer,Integer> |
getPortMapping() |
String |
getPublishableConnectString(TransportConnector connector) |
URI |
getPublishableConnectURI(TransportConnector connector)
Using the supplied TransportConnector this method returns the String that will
be used to update clients with this connector's connect address.
|
protected String |
getPublishedFragmentValue(String uriFragmentEntry)
Subclasses can override what host value is published by implementing alternate
logic for this method.
|
PublishedAddressPolicy.PublishedHostStrategy |
getPublishedHostStrategy() |
protected String |
getPublishedHostValue(String uriHostEntry)
Subclasses can override what host value is published by implementing alternate
logic for this method.
|
protected String |
getPublishedPathValue(String uriPathEntry)
Subclasses can override what path value is published by implementing alternate
logic for this method.
|
protected String |
getPublishedUserInfoValue(String uriUserInfoEntry)
Subclasses can override what user info value is published by implementing alternate
logic for this method.
|
void |
setClusterClientUriQuery(String clusterClientUriQuery)
Sets the URI query that's configured on the published URI that's sent to client's
when the cluster info is updated.
|
void |
setHostMapping(Map<String,String> hostMapping) |
void |
setPortMapping(Map<Integer,Integer> portMapping) |
void |
setPublishedHostStrategy(PublishedAddressPolicy.PublishedHostStrategy strategy) |
void |
setPublishedHostStrategy(String strategy) |
public PublishedAddressPolicy()
public URI getPublishableConnectURI(TransportConnector connector) throws Exception
connector - The TransportConnector whose address is to be published.Exceptionpublic String getPublishableConnectString(TransportConnector connector) throws Exception
Exceptionprotected String getPublishedHostValue(String uriHostEntry) throws UnknownHostException
uriHostEntry - UnknownHostExceptionprotected String getPublishedPathValue(String uriPathEntry)
uriPathEntry - The original value of the URI path.protected String getPublishedFragmentValue(String uriFragmentEntry)
uriFragmentEntry - The original value of the URI Fragment.protected String getPublishedUserInfoValue(String uriUserInfoEntry)
uriUserInfoEntry - The original value of the URI user info.public String getClusterClientUriQuery()
public void setClusterClientUriQuery(String clusterClientUriQuery)
clusterClientUriQuery - the clusterClientUriQuery to setpublic PublishedAddressPolicy.PublishedHostStrategy getPublishedHostStrategy()
public void setPublishedHostStrategy(PublishedAddressPolicy.PublishedHostStrategy strategy)
publishedHostStrategy - the publishedHostStrategy to setpublic void setPublishedHostStrategy(String strategy)
publishedHostStrategy - the publishedHostStrategy to setpublic void setPortMapping(Map<Integer,Integer> portMapping)
portMapping - map the ports in restrictive environmentspublic Map<Integer,Integer> getPortMapping()
public void setHostMapping(Map<String,String> hostMapping)
hostMapping - map the resolved hostspublic Map<String,String> getHostMapping()
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.