| Constructor and Description |
|---|
AtomixConfig() |
| Modifier and Type | Method and Description |
|---|---|
AtomixConfig |
addPartitionGroup(PartitionGroupConfig partitionGroup)
Adds a partition group configuration.
|
AtomixConfig |
addPrimitive(String name,
PrimitiveConfig config)
Adds a primitive configuration.
|
AtomixConfig |
addProfile(ProfileConfig profile)
Adds an Atomix profile.
|
ClusterConfig |
getClusterConfig()
Returns the cluster configuration.
|
PartitionGroupConfig<?> |
getManagementGroup()
Returns the system management partition group.
|
Map<String,PartitionGroupConfig<?>> |
getPartitionGroups()
Returns the partition group configurations.
|
<C extends PrimitiveConfig<C>> |
getPrimitive(String name)
Returns a primitive configuration.
|
Map<String,PrimitiveConfig> |
getPrimitives()
Returns the primitive configurations.
|
List<ProfileConfig> |
getProfiles()
Returns the Atomix profile.
|
boolean |
isEnableShutdownHook()
Returns whether to enable the shutdown hook.
|
AtomixConfig |
setClusterConfig(ClusterConfig cluster)
Sets the cluster configuration.
|
AtomixConfig |
setEnableShutdownHook(boolean enableShutdownHook)
Sets whether to enable the shutdown hook.
|
AtomixConfig |
setManagementGroup(PartitionGroupConfig<?> managementGroup)
Sets the system management partition group.
|
AtomixConfig |
setPartitionGroups(Map<String,PartitionGroupConfig<?>> partitionGroups)
Sets the partition group configurations.
|
AtomixConfig |
setPrimitives(Map<String,PrimitiveConfig> primitives)
Sets the primitive configurations.
|
AtomixConfig |
setProfiles(List<ProfileConfig> profiles)
Sets the Atomix profile.
|
public ClusterConfig getClusterConfig()
public AtomixConfig setClusterConfig(ClusterConfig cluster)
cluster - the cluster configurationpublic boolean isEnableShutdownHook()
public AtomixConfig setEnableShutdownHook(boolean enableShutdownHook)
enableShutdownHook - whether to enable the shutdown hookpublic PartitionGroupConfig<?> getManagementGroup()
public AtomixConfig setManagementGroup(PartitionGroupConfig<?> managementGroup)
managementGroup - the system management partition grouppublic Map<String,PartitionGroupConfig<?>> getPartitionGroups()
public AtomixConfig setPartitionGroups(Map<String,PartitionGroupConfig<?>> partitionGroups)
partitionGroups - the partition group configurationspublic AtomixConfig addPartitionGroup(PartitionGroupConfig partitionGroup)
partitionGroup - the partition group configuration to addpublic Map<String,PrimitiveConfig> getPrimitives()
public AtomixConfig setPrimitives(Map<String,PrimitiveConfig> primitives)
primitives - the primitive configurationspublic AtomixConfig addPrimitive(String name, PrimitiveConfig config)
name - the primitive nameconfig - the primitive configurationpublic <C extends PrimitiveConfig<C>> C getPrimitive(String name)
C - the configuration typename - the primitive namepublic List<ProfileConfig> getProfiles()
public AtomixConfig setProfiles(List<ProfileConfig> profiles)
profiles - the profilespublic AtomixConfig addProfile(ProfileConfig profile)
profile - the profile to addCopyright © 2013–2018. All rights reserved.