java.lang.Object
com.aoapps.appcluster.Resource<JdbcResource,JdbcResourceNode>
com.aoapps.appcluster.CronResource<JdbcResource,JdbcResourceNode>
com.aoapps.appcluster.jdbc.JdbcResource
Resources are synchronized through JDBC.
- Author:
- AO Industries, Inc.
-
Constructor Summary
ModifierConstructorDescriptionprotected
JdbcResource
(AppCluster cluster, JdbcResourceConfiguration resourceConfiguration, Collection<? extends ResourceNode<?, ?>> resourceNodes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Multi master synchronization is not supported for JDBC.Gets the set of tables that will be excluded from synchronization, in schema.name format.Gets the set of tables that will not cause warnings when the data is not an exact match, in schema.name format.Gets the set of SQL statements that should be executed on the slave in preparation for a synchronization pass.Gets the set of schemas that will be synchronized.Gets the set of table types that will be synchronized.protected JdbcResourceSynchronizer
newResourceSynchronizer
(JdbcResourceNode localResourceNode, JdbcResourceNode remoteResourceNode, ResourceConfiguration<JdbcResource, JdbcResourceNode> resourceConfiguration) Methods inherited from class com.aoapps.appcluster.CronResource
getSynchronizeTimeout, getTestTimeout
Methods inherited from class com.aoapps.appcluster.Resource
equals, getCluster, getDisplay, getDnsMonitor, getEnabledNameservers, getId, getMasterRecords, getMasterRecordsTtl, getResourceNodes, getStatus, getSynchronizerMap, getSynchronizers, getType, hashCode, isEnabled, toString
-
Constructor Details
-
JdbcResource
protected JdbcResource(AppCluster cluster, JdbcResourceConfiguration resourceConfiguration, Collection<? extends ResourceNode<?, ?>> resourceNodes) throws AppClusterConfigurationException- Throws:
AppClusterConfigurationException
-
-
Method Details
-
getAllowMultiMaster
public boolean getAllowMultiMaster()Multi master synchronization is not supported for JDBC.- Specified by:
getAllowMultiMaster
in classResource<JdbcResource,
JdbcResourceNode>
-
getSchemas
Gets the set of schemas that will be synchronized. -
getTableTypes
Gets the set of table types that will be synchronized. -
getExcludeTables
Gets the set of tables that will be excluded from synchronization, in schema.name format. -
getNoWarnTables
Gets the set of tables that will not cause warnings when the data is not an exact match, in schema.name format. -
getPrepareSlaves
Gets the set of SQL statements that should be executed on the slave in preparation for a synchronization pass. This should be executed in iteration order. The key is a unique name of the statement for reference and debugging, while the SQL statement is the value. -
newResourceSynchronizer
protected JdbcResourceSynchronizer newResourceSynchronizer(JdbcResourceNode localResourceNode, JdbcResourceNode remoteResourceNode, ResourceConfiguration<JdbcResource, JdbcResourceNode> resourceConfiguration) throws AppClusterConfigurationException- Specified by:
newResourceSynchronizer
in classCronResource<JdbcResource,
JdbcResourceNode> - Throws:
AppClusterConfigurationException
-