Package org.jumpmind.symmetric
Interface ISymmetricEngine
- All Known Implementing Classes:
AbstractSymmetricEngine,ClientSymmetricEngine,ServerSymmetricEngine
public interface ISymmetricEngine
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()booleanCall this to force all triggers to be rebuilt<T> TgetEngineDescription(String mesage) org.slf4j.LoggergetLog()Get the current status of this node.Get a list of configured properties for Symmetric.voidheartbeat(boolean force) Push a copy of the node onto the push queue so the SymmetricDS node 'checks' in with it's root node.booleanWill check to see if this instance of SymmetricDS is configured with the required properties for a node to operate.booleanbooleanCheck to see if this node has been registered.booleanCheck to see if this node has been started.booleanCheck to see if this node is starting.voidopenRegistration(String groupId, String externalId) Open up registration for node to attach.pull()Will perform a pull the same way thePullJobwould have.voidpurge()This can be called to do a purge.push()Will perform a push the same way thePushJobwould have.reloadNode(String nodeId, String createBy) Queue up an initial load or a reload to a node.voidremoveAndCleanupNode(String nodeId) voidreOpenRegistration(String nodeId) voidroute()Route captured data the same way theRouterJobwould have.voidsetup()Will setup the SymmetricDS tables, if not already setup and if the engine is configured to do so.voidsetupDatabase(boolean force) Attempt to configure the database objects that support SymmetricDS.snapshot(IProgressListener listener) booleanstart()Must be called to start SymmetricDS.booleanstart(boolean startJobs) voidstop()booleanCall this to resync triggersvoid
-
Method Details
-
stop
void stop() -
destroy
void destroy() -
uninstall
void uninstall() -
getSyncUrl
String getSyncUrl()- Returns:
- the URL that represents this engine
-
getProperties
Properties getProperties()Get a list of configured properties for Symmetric. Read-only. -
getEngineName
String getEngineName()- Returns:
- The lower case representation of the engine name as setup in the symmetric.properties file. We always use a lower case representation because there are times the engine name is used in triggers at which point you can lose the original case representation.
-
setup
void setup()Will setup the SymmetricDS tables, if not already setup and if the engine is configured to do so. -
start
boolean start()Must be called to start SymmetricDS.- Returns:
- true if successfully started
-
start
boolean start(boolean startJobs) -
reloadNode
Queue up an initial load or a reload to a node.- Parameters:
createBy- TODO
-
sendSQL
-
push
RemoteNodeStatuses push()Will perform a push the same way thePushJobwould have.- Returns:
RemoteNodeStatuses- See Also:
-
syncTriggers
boolean syncTriggers()Call this to resync triggers- See Also:
-
forceTriggerRebuild
boolean forceTriggerRebuild()Call this to force all triggers to be rebuilt- See Also:
-
ITriggerRouterService#forceTriggerRebuild()
-
getNodeStatus
NodeStatus getNodeStatus()Get the current status of this node.- Returns:
NodeStatus
-
pull
RemoteNodeStatuses pull()Will perform a pull the same way thePullJobwould have.- Returns:
RemoteNodeStatuses- See Also:
-
route
void route()Route captured data the same way theRouterJobwould have. -
purge
void purge()This can be called to do a purge. It may be called only if theOutgoingPurgeJobhas not been enabled.- See Also:
-
isConfigured
boolean isConfigured()Will check to see if this instance of SymmetricDS is configured with the required properties for a node to operate. -
heartbeat
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.- Parameters:
force- 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.
-
openRegistration
Open up registration for node to attach. -
reOpenRegistration
-
isRegistered
boolean isRegistered()Check to see if this node has been registered.- Returns:
- true if the node is registered
-
isStarted
boolean isStarted()Check to see if this node has been started.- Returns:
- true if the node is started
-
isInitialized
boolean isInitialized() -
isStarting
boolean isStarting()Check to see if this node is starting.- Returns:
- true if the node is starting
-
clearCaches
void clearCaches() -
setupDatabase
void setupDatabase(boolean force) Attempt to configure the database objects that support SymmetricDS. If they are out of date this method will attempt to alter the tables to bring them up to date.- Parameters:
force- forces this action to be run regardless of the parameter settings
-
removeAndCleanupNode
-
getConfigurationService
IConfigurationService getConfigurationService() -
getParameterService
IParameterService getParameterService() -
getNodeService
INodeService getNodeService() -
getRegistrationService
IRegistrationService getRegistrationService() -
getClusterService
IClusterService getClusterService() -
getPurgeService
IPurgeService getPurgeService() -
getDataService
IDataService getDataService() -
getSymmetricDialect
ISymmetricDialect getSymmetricDialect() -
getTargetDialect
ISymmetricDialect getTargetDialect() -
getJobManager
IJobManager getJobManager() -
getOutgoingBatchService
IOutgoingBatchService getOutgoingBatchService() -
getAcknowledgeService
IAcknowledgeService getAcknowledgeService() -
getBandwidthService
IBandwidthService getBandwidthService() -
getDataExtractorService
IDataExtractorService getDataExtractorService() -
getFileSyncExtractorService
IDataExtractorService getFileSyncExtractorService() -
getDataLoaderService
IDataLoaderService getDataLoaderService() -
getIncomingBatchService
IIncomingBatchService getIncomingBatchService() -
getPullService
IPullService getPullService() -
getPushService
IPushService getPushService() -
getOfflinePullService
IOfflinePullService getOfflinePullService() -
getOfflinePushService
IOfflinePushService getOfflinePushService() -
getRouterService
IRouterService getRouterService() -
getSecurityService
ISecurityService getSecurityService() -
getStatisticService
IStatisticService getStatisticService() -
getTriggerRouterService
ITriggerRouterService getTriggerRouterService() -
getGroupletService
IGroupletService getGroupletService() -
getStatisticManager
IStatisticManager getStatisticManager() -
getDeploymentType
String getDeploymentType() -
getDeploymentSubType
String getDeploymentSubType() -
getConcurrentConnectionManager
IConcurrentConnectionManager getConcurrentConnectionManager() -
getTransformService
ITransformService getTransformService() -
getLoadFilterService
ILoadFilterService getLoadFilterService() -
getInitialLoadService
IInitialLoadService getInitialLoadService() -
getTransportManager
ITransportManager getTransportManager() -
getNodeCommunicationService
INodeCommunicationService getNodeCommunicationService() -
getSequenceService
ISequenceService getSequenceService() -
getTablePrefix
String getTablePrefix() -
getLog
org.slf4j.Logger getLog() -
getExtensionService
IExtensionService getExtensionService() -
getStagingManager
IStagingManager getStagingManager() -
getSqlTemplate
ISqlTemplate getSqlTemplate() -
getFileSyncService
IFileSyncService getFileSyncService() -
getContextService
IContextService getContextService() -
getUpdateService
IUpdateService getUpdateService() -
getLastRestartTime
Date getLastRestartTime() -
getDataSource
<T> T getDataSource() -
getDatabasePlatform
IDatabasePlatform getDatabasePlatform() -
snapshot
-
listSnapshots
-
getNodeId
String getNodeId() -
getLastException
Throwable getLastException() -
getLastExceptionMessage
String getLastExceptionMessage() -
getEngineDescription
-
getCacheManager
ICacheManager getCacheManager()
-