Class KeyspaceActionSpecificationFactoryBean
java.lang.Object
org.springframework.data.cassandra.config.KeyspaceActionSpecificationFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<KeyspaceActions>
,org.springframework.beans.factory.InitializingBean
public class KeyspaceActionSpecificationFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<KeyspaceActions>, org.springframework.beans.factory.InitializingBean
A single keyspace XML Element can result in multiple actions. Example: CREATE_DROP. This FactoryBean
inspects the action required to satisfy the keyspace element, and then returns a Set of atomic
KeyspaceActionSpecification
required to satisfy the configuration action.- Author:
- David Webb, Mark Paluch
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getName()
Class<?>
long
boolean
boolean
boolean
void
setAction
(KeyspaceAction action) void
setDurableWrites
(boolean durableWrites) void
setIfNotExists
(boolean ifNotExists) void
void
setNetworkTopologyDataCenters
(List<String> networkTopologyDataCenters) void
setNetworkTopologyReplicationFactors
(List<String> networkTopologyReplicationFactors) void
setReplicationFactor
(int replicationFactor) void
setReplicationStrategy
(KeyspaceOption.ReplicationStrategy replicationStrategy)
-
Constructor Details
-
KeyspaceActionSpecificationFactoryBean
public KeyspaceActionSpecificationFactoryBean()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<KeyspaceActions>
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<KeyspaceActions>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<KeyspaceActions>
-
getName
- Returns:
- Returns the name.
-
setName
- Parameters:
name
- The name to set.
-
isIfNotExists
public boolean isIfNotExists()- Returns:
- Returns the ifNotExists.
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists) - Parameters:
ifNotExists
- The ifNotExists to set.
-
getAction
- Returns:
- Returns the action.
-
setAction
- Parameters:
action
- The action to set.
-
isDurableWrites
public boolean isDurableWrites()- Returns:
- Returns the durableWrites.
-
setDurableWrites
public void setDurableWrites(boolean durableWrites) - Parameters:
durableWrites
- The durableWrites to set.
-
getReplicationStrategy
- Returns:
- Returns the replicationStrategy.
-
setReplicationStrategy
- Parameters:
replicationStrategy
- The replicationStrategy to set.
-
getNetworkTopologyDataCenters
- Returns:
- Returns the networkTopologyDataCenters.
-
setNetworkTopologyDataCenters
- Parameters:
networkTopologyDataCenters
- The networkTopologyDataCenters to set.
-
getNetworkTopologyReplicationFactors
- Returns:
- Returns the networkTopologyReplicationFactors.
-
setNetworkTopologyReplicationFactors
- Parameters:
networkTopologyReplicationFactors
- The networkTopologyReplicationFactors to set.
-
getReplicationFactor
public long getReplicationFactor()- Returns:
- Returns the replicationFactor.
-
setReplicationFactor
public void setReplicationFactor(int replicationFactor) - Parameters:
replicationFactor
- The replicationFactor to set.
-