Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_REJOIN_VALUE
Default value of rejoin attribute
|
Constructor and Description |
---|
TerracottaClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
TerracottaClientConfiguration |
clone()
Clones this object, following the usual contract.
|
void |
extractTcconfig(String text)
Tell the BeanHandler to extract the entire subtree xml as text at element
|
void |
freezeConfig()
Freezes the config
|
String |
getEmbeddedConfig()
Get the embedded config read as
|
String |
getOriginalEmbeddedConfig()
Get the original embedded config
|
String |
getUrl()
Get url string
|
boolean |
isRejoin()
Returns true if rejoin is enabled
|
boolean |
isUrlConfig()
Helper to check whether this is url config or embedded config
|
TerracottaClientConfiguration |
rejoin(boolean rejoin)
Builder method to set rejoin
|
void |
setRejoin(boolean rejoin)
Set rejoin value
|
void |
setUrl(String url)
Set url
|
TerracottaClientConfiguration |
url(String url)
Builder method to set the URL.
|
TerracottaClientConfiguration |
url(String host,
String port)
Builder method to set the URL for a host and a port.
|
public static final boolean DEFAULT_REJOIN_VALUE
public TerracottaClientConfiguration clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public final TerracottaClientConfiguration url(String url)
url
- the URL to setpublic final TerracottaClientConfiguration url(String host, String port)
host
- the host where to get the Terracotta configuration fromport
- the port on that hostpublic final void setUrl(String url)
public final String getUrl()
public final void extractTcconfig(String text)
public final String getEmbeddedConfig()
public final String getOriginalEmbeddedConfig()
public final boolean isUrlConfig()
public boolean isRejoin()
public void setRejoin(boolean rejoin)
rejoin
- the rejoin to setpublic TerracottaClientConfiguration rejoin(boolean rejoin)
rejoin
- public void freezeConfig()
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.