public class ClusterSettings extends PropertiesSettings
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_ELEMENT |
static String |
DEFAULT_ELEMENT |
static String |
IMPLEMENTATION_CLASS |
static String |
JGROUPS_CLUSTER |
static String |
REF_ATTR |
static String |
SHARED_BACKEND_ATTR |
static String |
URL_LOAD_BALANCING |
properties| Constructor and Description |
|---|
ClusterSettings()
Creates a new
ClusterSettings with default settings. |
| Modifier and Type | Method and Description |
|---|---|
String |
getClusterName()
Returns the name of the cluster.
|
String |
getImplementationClass()
Get the name of the cluster implementation class.
|
String |
getPropsFileName()
Returns the properties file of the cluster.
|
boolean |
getURLLoadBalancing()
Returns whether url load balancing is enabled or not.
|
boolean |
isDefault()
Returns whether the cluster is default or not.
|
void |
setClusterName(String clusterName)
Sets the name of the cluster.
|
void |
setDefault(boolean def)
Sets whether the cluster is default or not.
|
void |
setImplementationClass(String className)
Sets the name of the cluster implementation class.
|
void |
setPropsFileName(String propsFileName)
Sets the properties file of the cluster.
|
void |
setURLLoadBalancing(boolean ulb)
Sets whether url load balancing is enabled or not.
|
addProperties, addProperty, addProperty, getProperties, getProperty, getPropertyAsBoolean, getPropertyAsInt, getPropertyAsList, getPropertyAsLong, getPropertyAsMap, getPropertyAsStringpublic static final String CLUSTER_ELEMENT
public static final String REF_ATTR
public static final String SHARED_BACKEND_ATTR
public static final String DEFAULT_ELEMENT
public static final String URL_LOAD_BALANCING
public static final String IMPLEMENTATION_CLASS
public static final String JGROUPS_CLUSTER
public ClusterSettings()
ClusterSettings with default settings.public String getClusterName()
public void setClusterName(String clusterName)
clusterName - The name of the cluster.public boolean isDefault()
true is the cluster is default; otherwise false.public void setDefault(boolean def)
def - true is the cluster is default; otherwise false.public String getPropsFileName()
public void setPropsFileName(String propsFileName)
propsFileName - The properties file of the cluster.public boolean getURLLoadBalancing()
true if the url load balancing is enabled; otherwise false.public void setURLLoadBalancing(boolean ulb)
ulb - true if the url load balancing is enabled; otherwise false.public void setImplementationClass(String className)
className - public String getImplementationClass()
Copyright © 2015 The Apache Software Foundation. All rights reserved.