public class KeySpaceConfig extends Object
Constructor and Description |
---|
KeySpaceConfig() |
KeySpaceConfig(String KeyspaceName)
Constructor that reads configuration from file
Cluster Name and replication factor are taken from file.
|
KeySpaceConfig(String ClusterName,
String KeyspaceName,
String Seeds) |
Modifier and Type | Method and Description |
---|---|
String |
getCluster()
Get the cluster Name
|
String |
getKeyspace()
Get the Keyspace name
|
Integer |
getReplicationFactor()
Gets the ReplicationFactor based on seeds in Cassandra Config
ReplicationFactor = (no.
|
String |
getSeeds()
Get Seeds
|
void |
setCluster(String ClusterName)
Set the Cluster Name
|
void |
setKeyspace(String KeyspaceName)
Set the Keyspace name
|
void |
setReplicationFactor(Integer replicationFactor)
Sets the ReplicationFactor
|
void |
setSeeds(String Seeds)
Method to set the seed list in the Cassandra Config
Seeds should be given as a list for eg: 192.168.56.101:9160, 192.168.56.102:9160, |
public KeySpaceConfig(String KeyspaceName)
KeyspaceName
- Name for keyspacepublic KeySpaceConfig()
public String getCluster()
public String getKeyspace()
public String getSeeds()
public void setCluster(String ClusterName)
ClusterName
- Name of the clusterpublic void setKeyspace(String KeyspaceName)
KeyspaceName
- Name of the keyspacepublic void setSeeds(String Seeds)
Seeds
- list of Node IP address sets.public Integer getReplicationFactor()
public void setReplicationFactor(Integer replicationFactor)
replicationFactor
- replication factor for this keyspaceCopyright © 2015. All Rights Reserved.