Module com.aoapps.appcluster.csync2
Package com.aoapps.appcluster.csync2
Class Csync2ResourcePropertiesConfiguration
java.lang.Object
com.aoapps.appcluster.ResourcePropertiesConfiguration<Csync2Resource,Csync2ResourceNode>
com.aoapps.appcluster.CronResourcePropertiesConfiguration<Csync2Resource,Csync2ResourceNode>
com.aoapps.appcluster.csync2.Csync2ResourcePropertiesConfiguration
- All Implemented Interfaces:
CronResourceConfiguration<Csync2Resource,
,Csync2ResourceNode> Csync2ResourceConfiguration
,ResourceConfiguration<Csync2Resource,
Csync2ResourceNode>
public class Csync2ResourcePropertiesConfiguration
extends CronResourcePropertiesConfiguration<Csync2Resource,Csync2ResourceNode>
implements Csync2ResourceConfiguration
The configuration for a csync2 resource.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoapps.appcluster.ResourcePropertiesConfiguration
display, enabled, id, masterRecords, masterRecordsTtl, properties, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets all the groups that will be synchronized by csync2 for this resource.Set
<? extends Csync2ResourceNodePropertiesConfiguration> newResource
(AppCluster cluster, Collection<? extends ResourceNode<?, ?>> resourceNodes) Methods inherited from class com.aoapps.appcluster.CronResourcePropertiesConfiguration
getSynchronizeSchedule, getSynchronizeTimeout, getTestSchedule, getTestTimeout
Methods inherited from class com.aoapps.appcluster.ResourcePropertiesConfiguration
equals, getDisplay, getId, getMasterRecords, getMasterRecordsTtl, getType, hashCode, isEnabled, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aoapps.appcluster.CronResourceConfiguration
getSynchronizeSchedule, getSynchronizeTimeout, getTestSchedule, getTestTimeout
Methods inherited from interface com.aoapps.appcluster.ResourceConfiguration
equals, getDisplay, getId, getMasterRecords, getMasterRecordsTtl, getType, hashCode, isEnabled, toString
-
Constructor Details
-
Csync2ResourcePropertiesConfiguration
protected Csync2ResourcePropertiesConfiguration(AppClusterPropertiesConfiguration properties, String id) throws AppClusterConfigurationException Creates a newCsync2ResourcePropertiesConfiguration
.- Throws:
AppClusterConfigurationException
-
-
Method Details
-
getAllowMultiMaster
public boolean getAllowMultiMaster()Description copied from interface:Csync2ResourceConfiguration
- Specified by:
getAllowMultiMaster
in interfaceCsync2ResourceConfiguration
-
getGroups
Description copied from interface:Csync2ResourceConfiguration
Gets all the groups that will be synchronized by csync2 for this resource.- Specified by:
getGroups
in interfaceCsync2ResourceConfiguration
-
getResourceNodeConfigurations
public Set<? extends Csync2ResourceNodePropertiesConfiguration> getResourceNodeConfigurations() throws AppClusterConfigurationException- Specified by:
getResourceNodeConfigurations
in interfaceCsync2ResourceConfiguration
- Specified by:
getResourceNodeConfigurations
in interfaceResourceConfiguration<Csync2Resource,
Csync2ResourceNode> - Specified by:
getResourceNodeConfigurations
in classResourcePropertiesConfiguration<Csync2Resource,
Csync2ResourceNode> - Throws:
AppClusterConfigurationException
-
newResource
public Csync2Resource newResource(AppCluster cluster, Collection<? extends ResourceNode<?, ?>> resourceNodes) throws AppClusterConfigurationException- Specified by:
newResource
in interfaceCsync2ResourceConfiguration
- Specified by:
newResource
in interfaceResourceConfiguration<Csync2Resource,
Csync2ResourceNode> - Specified by:
newResource
in classResourcePropertiesConfiguration<Csync2Resource,
Csync2ResourceNode> - Throws:
AppClusterConfigurationException
-