public class PublishedAddressPolicy
extends java.lang.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 |
---|---|
java.lang.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.
|
java.lang.String |
getPublishableConnectString(TransportConnector connector) |
java.net.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 java.lang.String |
getPublishedFragmentValue(java.lang.String uriFragmentEntry)
Subclasses can override what host value is published by implementing alternate
logic for this method.
|
PublishedAddressPolicy.PublishedHostStrategy |
getPublishedHostStrategy() |
protected java.lang.String |
getPublishedHostValue(java.lang.String uriHostEntry)
Subclasses can override what host value is published by implementing alternate
logic for this method.
|
protected java.lang.String |
getPublishedPathValue(java.lang.String uriPathEntry)
Subclasses can override what path value is published by implementing alternate
logic for this method.
|
protected java.lang.String |
getPublishedUserInfoValue(java.lang.String uriUserInfoEntry)
Subclasses can override what user info value is published by implementing alternate
logic for this method.
|
void |
setClusterClientUriQuery(java.lang.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 |
setPortMapping(java.util.HashMap<java.lang.Integer,java.lang.Integer> portMapping) |
void |
setPublishedHostStrategy(PublishedAddressPolicy.PublishedHostStrategy strategy) |
void |
setPublishedHostStrategy(java.lang.String strategy) |
public java.net.URI getPublishableConnectURI(TransportConnector connector) throws java.lang.Exception
connector
- The TransportConnector whose address is to be published.java.lang.Exception
public java.lang.String getPublishableConnectString(TransportConnector connector) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getPublishedHostValue(java.lang.String uriHostEntry) throws java.net.UnknownHostException
uriHostEntry
- java.net.UnknownHostException
protected java.lang.String getPublishedPathValue(java.lang.String uriPathEntry)
uriPathEntry
- The original value of the URI path.protected java.lang.String getPublishedFragmentValue(java.lang.String uriFragmentEntry)
uriFragmentEntry
- The original value of the URI Fragment.protected java.lang.String getPublishedUserInfoValue(java.lang.String uriUserInfoEntry)
uriUserInfoEntry
- The original value of the URI user info.public java.lang.String getClusterClientUriQuery()
public void setClusterClientUriQuery(java.lang.String clusterClientUriQuery)
clusterClientUriQuery
- the clusterClientUriQuery to setpublic PublishedAddressPolicy.PublishedHostStrategy getPublishedHostStrategy()
public void setPublishedHostStrategy(PublishedAddressPolicy.PublishedHostStrategy strategy)
publishedHostStrategy
- the publishedHostStrategy to setpublic void setPublishedHostStrategy(java.lang.String strategy)
publishedHostStrategy
- the publishedHostStrategy to setpublic void setPortMapping(java.util.HashMap<java.lang.Integer,java.lang.Integer> portMapping)
portMapping
- map the ports in restrictive environmentsCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.