public class ConfigEditor extends Object
| Constructor and Description |
|---|
ConfigEditor() |
ConfigEditor(File cassandraYamlFile) |
ConfigEditor(InputStream inputStream,
File destFile) |
public ConfigEditor()
public ConfigEditor(File cassandraYamlFile) throws IOException
IOExceptionpublic ConfigEditor(InputStream inputStream, File destFile) throws IOException
IOExceptionpublic void initEmbeddedConfiguration()
throws Exception
Exceptionpublic void save()
throws IOException
IOExceptionpublic String getClusterName()
public void setClusterName(String clusterName)
public String getListenAddress()
public void setListenAddress(String address)
public String getRpcAddress()
public void setRpcAddress(String address)
public void setRpcServerType(String rpcServerType)
public String getRpcServerType()
public String getAuthenticator()
public String getCommitLogDirectory()
public void setCommitLogDirectory(String dir)
public String getSavedCachesDirectory()
public void setSavedCachesDirectory(String dir)
public void setSeeds(String... seeds)
public Integer getNativeTransportPort()
public void setNativeTransportPort(Integer port)
public void setCompactionThroughputMbPerSec(Integer compactionThroughput)
public Integer getCompactionThroughputMbPerSec()
public void setKeyCacheSizeMb(Integer keyCacheSizeMb)
public Integer getKeyCacheSizeMb()
public void setHintedHandoffEnabled(Boolean hintedHandoffEnabled)
public Boolean isHintedHandoffEnabled()
public void setNativeTransportMaxThreads(Integer nativeTransportMaxThreads)
public Integer getNativeTransportMaxThreads()
public void setStartRpc(Boolean startRpc)
public boolean getStartRpc()
public void setNumTokens(Integer numTokens)
public Integer getNumTokens()
Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.