public class DeploymentOptions extends Object
A container for deployment options and Cassandra configuration settings. A DeploymentOptions object represents the merger of properties defined in cassandra.properties or defined as system properties. System properties take precedence over corresponding properties in cassandra.properties.
Properties are "sticky". Like Ant properties, once set a property's value cannot be
changed. This means that if you set a property by calling its setter method prior to
invoking load()
, that value will be retained even if that property is also
defined as a system property and in cassandra.properties.
public void load() throws IOException
IOException
- If an error occurs loading cassandra.propertiespublic void merge(DeploymentOptions other)
public org.rhq.core.util.TokenReplacingProperties toMap()
public String getClusterDir()
public void setClusterDir(String dir)
dir
- The directory in which nodes will be installed. This only applies to
embedded clusters.public String getBasedir()
public void setBasedir(String dir)
dir
- The directory in which the node will be installed.public int getNumNodes()
public void setNumNodes(int numNodes)
numNodes
- The number of nodes in the cluster. This only applies to embedded
clusters.public boolean isEmbedded()
public void setEmbedded(boolean embedded)
embedded
- A flag that indicates whether or not this is an embedded deployment.
Note than embedded cluster is one in which all nodes run on a single host and can
only accept requests from that same host.public String getLoggingLevel()
public void setLoggingLevel(String loggingLevel)
loggingLevel
- The log4j logging level that Cassandra usespublic Integer getNumTokens()
public void setNumTokens(int numTokens)
numTokens
- The number of tokens assigned to this node on the ring. Defaults to
256.public Integer getNativeTransportPort()
public void setNativeTransportPort(Integer port)
port
- The port on which Cassandra listens for client requests.public Boolean getStartRpc()
public void setStartRpc(Boolean startRpc)
startRpc
- whether the Thrift-based RPC should be startedpublic Integer getRpcPort()
public void setRpcPort(Integer port)
public Integer getNativeTransportMaxThreads()
public void setNativeTransportMaxThreads(Integer numThreads)
numThreads
- The max number of threads to handle CQL requestspublic String getUsername()
public void setUsername(String username)
username
- The username RHQ will use to make client connections to Cassandra.
This is not a Cassandra configuration property. This deployment
property is written to rhq-server.properties at build time by the
rhq-container.build.xml script.public String getPassword()
public void setPassword(String password)
password
- The password RHQ will use to make client connections to Cassandra.
This is not a Cassandra configuration property. This deployment
property is written to rhq-server.properties at build time by the
rhq-container.build.xml script.public String getAuthenticator()
public void setAuthenticator(String authenticator)
authenticator
- The FQCN of the class that handles Cassandra authenticationpublic String getAuthorizer()
public void setAuthorizer(String authorizer)
authorizer
- The FQCN of the class that handles Cassandra authorizationpublic String getDataDir()
public void setDataDir(String dir)
dir
- The directory where Cassandra stores data on diskpublic String getCommitLogDir()
public void setCommitLogDir(String dir)
dir
- The directory where Cassandra stores commit log filespublic String getSavedCachesDir()
public void setSavedCachesDir(String dir)
dir
- The direcotry where Cassandra stores saved caches on diskpublic String getLogFileName()
public void setLogFileName(String name)
name
- The full path of the Log4J log file to which Cassandra writes.public String getListenAddress()
public void setListenAddress(String address)
address
- The address to which Cassandra binds and tells other nodes to connect topublic String getRpcAddress()
public void setRpcAddress(String address)
public Integer getJmxPort()
public void setJmxPort(Integer port)
port
- The port on which Cassandra listens for JMX connectionspublic Integer getStoragePort()
public void setStoragePort(Integer port)
port
- The port on which Cassandra listens for gossip requestspublic Integer getSslStoragePort()
public void setSslStoragePort(Integer port)
port
- The port on which Cassandra listens for encrypted gossip requests. Note
that this is only used if encryption is enabled.public String getSeeds()
public void setSeeds(String seeds)
seeds
- A comma-delimited list of IP addresses/host names that are deemed
contact points during node start up to learn about the ring topology.public String getHeapSize()
public void setHeapSize(String heapSize)
heapSize
- The value to use for both the max and min heap sizes. This needs to
be a value value recognized by the -Xmx and -Xms options such as 512M.public String getHeapNewSize()
public void setHeapNewSize(String heapNewSize)
heapNewSize
- The value to use for the size of the new generation. This needs
to be a valid value recognized by the -Xmn option such as 256M.
is passed directly to the -Xmn option so itpublic String getStackSize()
public void setStackSize(String size)
size
- The value to use for the JVM stack size which is passed directly to the
-Xss JVM start up option.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.