public abstract class AbstractSymmetricEngine extends java.lang.Object implements ISymmetricEngine
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSymmetricEngine(boolean registerEngine) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
autoConfigRegistrationServer() |
protected IFileSyncService |
buildFileSyncService() |
protected INodeCommunicationService |
buildNodeCommunicationService(IClusterService clusterService,
INodeService nodeService,
IParameterService parameterService,
IConfigurationService configurationService,
ISymmetricDialect symmetricDialect) |
protected IRouterService |
buildRouterService() |
protected boolean |
buildTablesFromDdlUtilXmlIfProvided() |
protected void |
checkSystemIntegrity(Node node) |
void |
clearCaches() |
protected IClusterService |
createClusterService() |
protected abstract org.jumpmind.db.platform.IDatabasePlatform |
createDatabasePlatform(org.jumpmind.properties.TypedProperties properties) |
protected abstract IExtensionService |
createExtensionService() |
protected abstract IJobManager |
createJobManager() |
protected abstract org.jumpmind.symmetric.io.stage.IStagingManager |
createStagingManager() |
protected abstract IStatisticManager |
createStatisticManager() |
protected abstract ISymmetricDialect |
createSymmetricDialect() |
protected ISymmetricDialect |
createTargetDialect() |
protected abstract ITypedPropertiesFactory |
createTypedPropertiesFactory() |
void |
destroy() |
static ISymmetricEngine |
findEngineByName(java.lang.String name)
Locate a
StandaloneSymmetricEngine in the same JVM |
static ISymmetricEngine |
findEngineByUrl(java.lang.String url)
Locate a
StandaloneSymmetricEngine in the same JVM |
static java.util.List<ISymmetricEngine> |
findEngines() |
void |
forceTriggerRebuild()
Call this to force all triggers to be rebuilt
|
IAcknowledgeService |
getAcknowledgeService() |
IBandwidthService |
getBandwidthService() |
IClusterService |
getClusterService() |
IConcurrentConnectionManager |
getConcurrentConnectionManager() |
IConfigurationService |
getConfigurationService() |
IContextService |
getContextService() |
org.jumpmind.db.platform.IDatabasePlatform |
getDatabasePlatform() |
IDataExtractorService |
getDataExtractorService() |
IDataLoaderService |
getDataLoaderService() |
IDataService |
getDataService() |
<T> T |
getDataSource() |
java.lang.String |
getDeploymentSubType() |
java.lang.String |
getDeploymentType() |
java.lang.String |
getEngineDescription(java.lang.String msg) |
java.lang.String |
getEngineName() |
IExtensionService |
getExtensionService() |
IDataExtractorService |
getFileSyncExtractorService() |
IFileSyncService |
getFileSyncService() |
IGroupletService |
getGroupletService() |
IIncomingBatchService |
getIncomingBatchService() |
IInitialLoadService |
getInitialLoadService() |
IJobManager |
getJobManager() |
java.lang.String |
getLastException() |
java.util.Date |
getLastRestartTime() |
ILoadFilterService |
getLoadFilterService() |
org.slf4j.Logger |
getLog() |
IMailService |
getMailService() |
INodeCommunicationService |
getNodeCommunicationService() |
java.lang.String |
getNodeId() |
INodeService |
getNodeService() |
NodeStatus |
getNodeStatus()
Get the current status of this node.
|
IOfflinePullService |
getOfflinePullService() |
IOfflinePushService |
getOfflinePushService() |
ITransportManager |
getOfflineTransportManager() |
IOutgoingBatchService |
getOutgoingBatchService() |
IParameterService |
getParameterService() |
java.util.Properties |
getProperties()
Get a list of configured properties for Symmetric.
|
IPullService |
getPullService() |
IPurgeService |
getPurgeService() |
IPushService |
getPushService() |
IRegistrationService |
getRegistrationService() |
IRouterService |
getRouterService() |
org.jumpmind.security.ISecurityService |
getSecurityService() |
protected abstract org.jumpmind.security.SecurityServiceFactory.SecurityServiceType |
getSecurityServiceType() |
ISequenceService |
getSequenceService() |
org.jumpmind.db.sql.ISqlTemplate |
getSqlTemplate() |
org.jumpmind.symmetric.io.stage.IStagingManager |
getStagingManager() |
IStatisticManager |
getStatisticManager() |
IStatisticService |
getStatisticService() |
ISymmetricDialect |
getSymmetricDialect() |
java.lang.String |
getSyncUrl() |
java.lang.String |
getTablePrefix() |
ISymmetricDialect |
getTargetDialect() |
ITransformService |
getTransformService() |
ITransportManager |
getTransportManager() |
ITriggerRouterService |
getTriggerRouterService() |
IUpdateService |
getUpdateService() |
void |
heartbeat(boolean force)
Push a copy of the node onto the push queue so the SymmetricDS node
'checks' in with it's root node.
|
protected void |
init() |
boolean |
isConfigured()
Will check to see if this instance of SymmetricDS is configured with the
required properties for a node to operate.
|
boolean |
isInitialized() |
boolean |
isRegistered()
Check to see if this node has been registered.
|
boolean |
isStarted()
Check to see if this node has been started.
|
boolean |
isStarting()
Check to see if this node is starting.
|
protected boolean |
loadFromScriptIfProvided()
Give the end user the option to provide a script that will load a
registration server with an initial SymmetricDS setup.
|
void |
openRegistration(java.lang.String nodeGroupId,
java.lang.String externalId)
Open up registration for node to attach.
|
RemoteNodeStatuses |
pull()
Will perform a pull the same way the
PullJob would have. |
void |
purge()
This can be called to do a purge.
|
RemoteNodeStatuses |
push()
Will perform a push the same way the
PushJob would have. |
protected void |
registerSymDSDriver(org.jumpmind.properties.TypedProperties engineProperties) |
java.lang.String |
reloadNode(java.lang.String nodeId,
java.lang.String createBy)
Queue up an initial load or a reload to a node.
|
void |
removeAndCleanupNode(java.lang.String nodeId) |
void |
reOpenRegistration(java.lang.String nodeId) |
void |
route()
Route captured data the same way the
RouterJob would have. |
java.lang.String |
sendSQL(java.lang.String nodeId,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String sql) |
void |
setDeploymentSubType(java.lang.String deploymentSubType) |
void |
setDeploymentType(java.lang.String deploymentType) |
void |
setup()
Will setup the SymmetricDS tables, if not already setup and if the engine
is configured to do so.
|
void |
setupDatabase(boolean force)
Attempt to configure the database objects that support SymmetricDS.
|
boolean |
start()
Must be called to start SymmetricDS.
|
boolean |
start(boolean startJobs) |
void |
stop() |
void |
syncTriggers()
Call this to resync triggers
|
java.lang.String |
toString() |
void |
uninstall() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMonitorService, listSnapshots, snapshotprotected static final org.slf4j.Logger log
protected java.lang.String deploymentType
protected java.lang.String deploymentSubType
protected ITypedPropertiesFactory propertiesFactory
protected org.jumpmind.db.platform.IDatabasePlatform platform
protected org.jumpmind.security.ISecurityService securityService
protected ParameterService parameterService
protected ISymmetricDialect symmetricDialect
protected INodeService nodeService
protected IConfigurationService configurationService
protected IBandwidthService bandwidthService
protected IStatisticService statisticService
protected IStatisticManager statisticManager
protected IConcurrentConnectionManager concurrentConnectionManager
protected ITransportManager transportManager
protected ITransportManager offlineTransportManager
protected IClusterService clusterService
protected IPurgeService purgeService
protected ITransformService transformService
protected IInitialLoadService initialLoadService
protected ILoadFilterService loadFilterService
protected ITriggerRouterService triggerRouterService
protected IOutgoingBatchService outgoingBatchService
protected IDataService dataService
protected IRouterService routerService
protected IDataExtractorService dataExtractorService
protected IDataExtractorService fileSyncExtractorService
protected IRegistrationService registrationService
protected IDataLoaderService dataLoaderService
protected IIncomingBatchService incomingBatchService
protected IAcknowledgeService acknowledgeService
protected IPushService pushService
protected IPullService pullService
protected IOfflinePushService offlinePushService
protected IOfflinePullService offlinePullService
protected IJobManager jobManager
protected ISequenceService sequenceService
protected IExtensionService extensionService
protected IGroupletService groupletService
protected org.jumpmind.symmetric.io.stage.IStagingManager stagingManager
protected INodeCommunicationService nodeCommunicationService
protected IFileSyncService fileSyncService
protected IMailService mailService
protected IContextService contextService
protected IUpdateService updateService
protected java.util.Date lastRestartTime
protected boolean registerEngine
protected AbstractSymmetricEngine(boolean registerEngine)
protected abstract ITypedPropertiesFactory createTypedPropertiesFactory()
protected abstract org.jumpmind.db.platform.IDatabasePlatform createDatabasePlatform(org.jumpmind.properties.TypedProperties properties)
public static java.util.List<ISymmetricEngine> findEngines()
public static ISymmetricEngine findEngineByUrl(java.lang.String url)
StandaloneSymmetricEngine in the same JVMpublic static ISymmetricEngine findEngineByName(java.lang.String name)
StandaloneSymmetricEngine in the same JVMpublic void setDeploymentType(java.lang.String deploymentType)
public void setDeploymentSubType(java.lang.String deploymentSubType)
protected abstract org.jumpmind.security.SecurityServiceFactory.SecurityServiceType getSecurityServiceType()
protected void init()
protected void registerSymDSDriver(org.jumpmind.properties.TypedProperties engineProperties)
protected IClusterService createClusterService()
protected IRouterService buildRouterService()
protected IFileSyncService buildFileSyncService()
protected INodeCommunicationService buildNodeCommunicationService(IClusterService clusterService, INodeService nodeService, IParameterService parameterService, IConfigurationService configurationService, ISymmetricDialect symmetricDialect)
protected abstract org.jumpmind.symmetric.io.stage.IStagingManager createStagingManager()
protected abstract IStatisticManager createStatisticManager()
protected abstract ISymmetricDialect createSymmetricDialect()
protected ISymmetricDialect createTargetDialect()
protected abstract IExtensionService createExtensionService()
protected abstract IJobManager createJobManager()
public java.lang.String getSyncUrl()
getSyncUrl in interface ISymmetricEnginepublic java.util.Properties getProperties()
ISymmetricEnginegetProperties in interface ISymmetricEnginepublic java.lang.String getEngineName()
getEngineName in interface ISymmetricEnginepublic void setup()
ISymmetricEnginesetup in interface ISymmetricEnginepublic void setupDatabase(boolean force)
ISymmetricEnginesetupDatabase in interface ISymmetricEngineforce - forces this action to be run regardless of the parameter settingsprotected void autoConfigRegistrationServer()
protected boolean buildTablesFromDdlUtilXmlIfProvided()
protected boolean loadFromScriptIfProvided()
public boolean start()
ISymmetricEnginestart in interface ISymmetricEnginepublic boolean start(boolean startJobs)
start in interface ISymmetricEngineprotected void checkSystemIntegrity(Node node)
public java.lang.String getEngineDescription(java.lang.String msg)
getEngineDescription in interface ISymmetricEnginepublic void uninstall()
uninstall in interface ISymmetricEnginepublic void stop()
stop in interface ISymmetricEnginepublic void destroy()
destroy in interface ISymmetricEnginepublic java.lang.String reloadNode(java.lang.String nodeId,
java.lang.String createBy)
ISymmetricEnginereloadNode in interface ISymmetricEnginecreateBy - TODOpublic java.lang.String sendSQL(java.lang.String nodeId,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String sql)
sendSQL in interface ISymmetricEnginepublic RemoteNodeStatuses push()
ISymmetricEnginePushJob would have.push in interface ISymmetricEngineRemoteNodeStatusesIPushService.pushData(boolean)public void syncTriggers()
ISymmetricEnginesyncTriggers in interface ISymmetricEngineITriggerRouterService.syncTriggers()public void forceTriggerRebuild()
ISymmetricEngineforceTriggerRebuild in interface ISymmetricEngineITriggerRouterService#forceTriggerRebuild()public NodeStatus getNodeStatus()
ISymmetricEnginegetNodeStatus in interface ISymmetricEngineNodeStatuspublic void removeAndCleanupNode(java.lang.String nodeId)
removeAndCleanupNode in interface ISymmetricEnginepublic RemoteNodeStatuses pull()
ISymmetricEnginePullJob would have.pull in interface ISymmetricEngineRemoteNodeStatusesIPullService.pullData(boolean)public void route()
ISymmetricEngineRouterJob would have.route in interface ISymmetricEnginepublic void purge()
ISymmetricEngineOutgoingPurgeJob has not been enabled.purge in interface ISymmetricEngineIPurgeService.purgeOutgoing(boolean)public boolean isConfigured()
ISymmetricEngineisConfigured in interface ISymmetricEnginepublic void heartbeat(boolean force)
ISymmetricEngineheartbeat in interface ISymmetricEngineforce - When force is true the heart beat will always be inserted. If it is false,
the heart beat will only be inserted if the period between heart beats has expired.public void openRegistration(java.lang.String nodeGroupId,
java.lang.String externalId)
ISymmetricEngineopenRegistration in interface ISymmetricEngineIRegistrationService.openRegistration(String, String)public void clearCaches()
clearCaches in interface ISymmetricEnginepublic void reOpenRegistration(java.lang.String nodeId)
reOpenRegistration in interface ISymmetricEnginepublic boolean isRegistered()
ISymmetricEngineisRegistered in interface ISymmetricEnginepublic boolean isStarted()
ISymmetricEngineisStarted in interface ISymmetricEnginepublic boolean isStarting()
ISymmetricEngineisStarting in interface ISymmetricEnginepublic boolean isInitialized()
isInitialized in interface ISymmetricEnginepublic IConfigurationService getConfigurationService()
getConfigurationService in interface ISymmetricEnginepublic IParameterService getParameterService()
getParameterService in interface ISymmetricEnginepublic INodeService getNodeService()
getNodeService in interface ISymmetricEnginepublic IRegistrationService getRegistrationService()
getRegistrationService in interface ISymmetricEnginepublic IClusterService getClusterService()
getClusterService in interface ISymmetricEnginepublic IPurgeService getPurgeService()
getPurgeService in interface ISymmetricEnginepublic IDataService getDataService()
getDataService in interface ISymmetricEnginepublic IJobManager getJobManager()
getJobManager in interface ISymmetricEnginepublic IOutgoingBatchService getOutgoingBatchService()
getOutgoingBatchService in interface ISymmetricEnginepublic IAcknowledgeService getAcknowledgeService()
getAcknowledgeService in interface ISymmetricEnginepublic IBandwidthService getBandwidthService()
getBandwidthService in interface ISymmetricEnginepublic IDataExtractorService getDataExtractorService()
getDataExtractorService in interface ISymmetricEnginepublic IDataExtractorService getFileSyncExtractorService()
getFileSyncExtractorService in interface ISymmetricEnginepublic IDataLoaderService getDataLoaderService()
getDataLoaderService in interface ISymmetricEnginepublic IIncomingBatchService getIncomingBatchService()
getIncomingBatchService in interface ISymmetricEnginepublic IPullService getPullService()
getPullService in interface ISymmetricEnginepublic IPushService getPushService()
getPushService in interface ISymmetricEnginepublic IOfflinePullService getOfflinePullService()
getOfflinePullService in interface ISymmetricEnginepublic IOfflinePushService getOfflinePushService()
getOfflinePushService in interface ISymmetricEnginepublic IRouterService getRouterService()
getRouterService in interface ISymmetricEnginepublic org.jumpmind.security.ISecurityService getSecurityService()
getSecurityService in interface ISymmetricEnginepublic IStatisticService getStatisticService()
getStatisticService in interface ISymmetricEnginepublic IStatisticManager getStatisticManager()
getStatisticManager in interface ISymmetricEnginepublic ITriggerRouterService getTriggerRouterService()
getTriggerRouterService in interface ISymmetricEnginepublic java.lang.String getDeploymentType()
getDeploymentType in interface ISymmetricEnginepublic java.lang.String getDeploymentSubType()
getDeploymentSubType in interface ISymmetricEnginepublic ITransformService getTransformService()
getTransformService in interface ISymmetricEnginepublic ILoadFilterService getLoadFilterService()
getLoadFilterService in interface ISymmetricEnginepublic IInitialLoadService getInitialLoadService()
getInitialLoadService in interface ISymmetricEnginepublic IConcurrentConnectionManager getConcurrentConnectionManager()
getConcurrentConnectionManager in interface ISymmetricEnginepublic java.lang.String getTablePrefix()
getTablePrefix in interface ISymmetricEnginepublic ITransportManager getTransportManager()
getTransportManager in interface ISymmetricEnginepublic ITransportManager getOfflineTransportManager()
public IExtensionService getExtensionService()
getExtensionService in interface ISymmetricEnginepublic IMailService getMailService()
getMailService in interface ISymmetricEnginepublic IContextService getContextService()
getContextService in interface ISymmetricEnginepublic org.jumpmind.symmetric.io.stage.IStagingManager getStagingManager()
getStagingManager in interface ISymmetricEnginepublic ISequenceService getSequenceService()
getSequenceService in interface ISymmetricEnginepublic INodeCommunicationService getNodeCommunicationService()
getNodeCommunicationService in interface ISymmetricEnginepublic IGroupletService getGroupletService()
getGroupletService in interface ISymmetricEnginepublic java.lang.String getLastException()
getLastException in interface ISymmetricEnginepublic java.util.Date getLastRestartTime()
getLastRestartTime in interface ISymmetricEnginepublic org.jumpmind.db.sql.ISqlTemplate getSqlTemplate()
getSqlTemplate in interface ISymmetricEnginepublic org.slf4j.Logger getLog()
getLog in interface ISymmetricEnginepublic <T> T getDataSource()
getDataSource in interface ISymmetricEnginepublic org.jumpmind.db.platform.IDatabasePlatform getDatabasePlatform()
getDatabasePlatform in interface ISymmetricEnginepublic IFileSyncService getFileSyncService()
getFileSyncService in interface ISymmetricEnginepublic IUpdateService getUpdateService()
getUpdateService in interface ISymmetricEnginepublic java.lang.String getNodeId()
getNodeId in interface ISymmetricEnginepublic ISymmetricDialect getSymmetricDialect()
getSymmetricDialect in interface ISymmetricEnginepublic ISymmetricDialect getTargetDialect()
getTargetDialect in interface ISymmetricEnginepublic java.lang.String toString()
toString in class java.lang.Object