Class ConfigurationService
java.lang.Object
org.jumpmind.symmetric.service.impl.AbstractService
org.jumpmind.symmetric.service.impl.ConfigurationService
- All Implemented Interfaces:
IConfigurationService,IService
- See Also:
-
Field Summary
Fields inherited from class org.jumpmind.symmetric.service.impl.AbstractService
log, parameterService, platform, sqlTemplate, sqlTemplateDirty, symmetricDialect, tablePrefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanprotected final voidvoidvoidvoiddeleteChannel(Channel channel) voiddeleteNodeChannelControl(String nodeId, String channelId) voiddeleteNodeGroup(String nodeGroupId) voidbooleandoesNodeGroupExist(String nodeGroupId) getChannel(String channelId) getChannels(boolean refreshCache) getDataEventActionByGroupLinkId(String sourceGroupId, String targetGroupId) getNodeChannel(String channelId, boolean refreshExtractMillis) getNodeChannel(String channelId, String nodeId, boolean refreshExtractMillis) getNodeChannels(boolean refreshExtractMillis) getNodeChannels(String nodeId, boolean refreshExtractMillis) getNodeChannelsFromDb(String nodeId) getNodeGroupChannelWindows(String notUsed, String channelId) getNodeGroupLinkFor(String sourceNodeGroupId, String targetNodeGroupId, boolean refreshCache) getNodeGroupLinks(boolean refreshCache) getNodeGroupLinksFor(String sourceNodeGroupId, boolean refreshCache) getQueues(boolean refreshCache) getSuspendIgnoreChannelLists(String nodeId) Returns two sets of channel names, one for suspended channels and one for ignored.voidbooleanbooleanisChannelInUse(String channelId) Check to see if the channel is currently being used in the system.booleanIndicates that this node participates in a master to master linkbooleanbooleanisUseSourceStagingEnabled(String nodeId) booleanvoidrenameChannel(String oldId, Channel channel) voidrenameNodeGroupLink(String oldSourceId, String oldTargetId, NodeGroupLink link) voidsaveChannel(Channel channel, boolean reloadChannels) voidsaveChannel(NodeChannel nodeChannel, boolean reloadChannels) voidsaveChannelAsCopy(Channel channel, boolean reloadChannels) voidsaveNodeChannel(NodeChannel nodeChannel, boolean reloadChannels) voidsaveNodeChannelControl(NodeChannel nodeChannel, boolean reloadChannels) voidsaveNodeGroup(NodeGroup group) voidvoidupdateLastExtractTime(NodeChannel channel) Methods inherited from class org.jumpmind.symmetric.service.impl.AbstractService
assertNotNull, buildBatchOrderBy, buildBatchParams, buildBatchWhere, buildBatchWhereFromFilter, close, createSqlReplacementTokens, getJdbcTemplate, getParameterService, getSql, getSymmetricDialect, getTablePrefix, getTargetDialect, getTargetPlatform, getTargetPlatform, isCalledFromSymmetricAdminTool, isSet, isStreamClosedByClient, isSymmetricTable, logOnce, maxDate, readAcks, sendAck, setSqlMap, synchronize, toNodeIds, toNodeIds
-
Constructor Details
-
ConfigurationService
-
-
Method Details
-
createDefaultChannels
protected final void createDefaultChannels() -
isBulkLoaderEnabled
public boolean isBulkLoaderEnabled()- Specified by:
isBulkLoaderEnabledin interfaceIConfigurationService
-
isMasterToMaster
public boolean isMasterToMaster()Description copied from interface:IConfigurationServiceIndicates that this node participates in a master to master link- Specified by:
isMasterToMasterin interfaceIConfigurationService- Returns:
-
containsMasterToMaster
public boolean containsMasterToMaster()- Specified by:
containsMasterToMasterin interfaceIConfigurationService
-
isMasterToMasterOnly
public boolean isMasterToMasterOnly()- Specified by:
isMasterToMasterOnlyin interfaceIConfigurationService
-
isUseSourceStagingEnabled
- Specified by:
isUseSourceStagingEnabledin interfaceIConfigurationService
-
refreshFromDatabase
public boolean refreshFromDatabase()- Specified by:
refreshFromDatabasein interfaceIConfigurationService
-
saveNodeGroupLink
- Specified by:
saveNodeGroupLinkin interfaceIConfigurationService
-
renameNodeGroupLink
- Specified by:
renameNodeGroupLinkin interfaceIConfigurationService
-
doesNodeGroupExist
-
saveNodeGroup
- Specified by:
saveNodeGroupin interfaceIConfigurationService
-
deleteNodeGroup
- Specified by:
deleteNodeGroupin interfaceIConfigurationService
-
deleteNodeGroupLink
- Specified by:
deleteNodeGroupLinkin interfaceIConfigurationService
-
deleteAllNodeGroupLinks
public void deleteAllNodeGroupLinks()- Specified by:
deleteAllNodeGroupLinksin interfaceIConfigurationService
-
getNodeGroups
- Specified by:
getNodeGroupsin interfaceIConfigurationService
-
getNodeGroupLinks
- Specified by:
getNodeGroupLinksin interfaceIConfigurationService
-
getNodeGroupLinksFromDb
- Specified by:
getNodeGroupLinksFromDbin interfaceIConfigurationService
-
getNodeGroupLinksFor
- Specified by:
getNodeGroupLinksForin interfaceIConfigurationService
-
getNodeGroupLinkFor
public NodeGroupLink getNodeGroupLinkFor(String sourceNodeGroupId, String targetNodeGroupId, boolean refreshCache) - Specified by:
getNodeGroupLinkForin interfaceIConfigurationService
-
isChannelInUse
Description copied from interface:IConfigurationServiceCheck to see if the channel is currently being used in the system.- Specified by:
isChannelInUsein interfaceIConfigurationService
-
saveChannel
- Specified by:
saveChannelin interfaceIConfigurationService
-
saveChannel
- Specified by:
saveChannelin interfaceIConfigurationService
-
saveChannelAsCopy
- Specified by:
saveChannelAsCopyin interfaceIConfigurationService
-
renameChannel
- Specified by:
renameChannelin interfaceIConfigurationService
-
saveNodeChannel
- Specified by:
saveNodeChannelin interfaceIConfigurationService
-
saveNodeChannelControl
- Specified by:
saveNodeChannelControlin interfaceIConfigurationService
-
deleteChannel
- Specified by:
deleteChannelin interfaceIConfigurationService
-
deleteNodeChannelControl
- Specified by:
deleteNodeChannelControlin interfaceIConfigurationService
-
deleteAllChannels
public void deleteAllChannels()- Specified by:
deleteAllChannelsin interfaceIConfigurationService
-
getNodeChannel
- Specified by:
getNodeChannelin interfaceIConfigurationService
-
getNodeChannel
- Specified by:
getNodeChannelin interfaceIConfigurationService
-
getNodeChannels
- Specified by:
getNodeChannelsin interfaceIConfigurationService
-
getNodeChannels
- Specified by:
getNodeChannelsin interfaceIConfigurationService
-
getNodeChannelsFromDb
- Specified by:
getNodeChannelsFromDbin interfaceIConfigurationService
-
clearCache
public void clearCache()- Specified by:
clearCachein interfaceIConfigurationService
-
getDataEventActionByGroupLinkId
public NodeGroupLinkAction getDataEventActionByGroupLinkId(String sourceGroupId, String targetGroupId) - Specified by:
getDataEventActionByGroupLinkIdin interfaceIConfigurationService
-
initDefaultChannels
public void initDefaultChannels()- Specified by:
initDefaultChannelsin interfaceIConfigurationService
-
getNodeGroupChannelWindows
- Specified by:
getNodeGroupChannelWindowsin interfaceIConfigurationService
-
getNodeGroupChannelWindowsFromDb
- Specified by:
getNodeGroupChannelWindowsFromDbin interfaceIConfigurationService
-
getSuspendIgnoreChannelLists
Description copied from interface:IConfigurationServiceReturns two sets of channel names, one for suspended channels and one for ignored.- Specified by:
getSuspendIgnoreChannelListsin interfaceIConfigurationService- Returns:
- A Map with two entries, the sets of which will always be defined but may be empty.
-
getFileSyncChannels
- Specified by:
getFileSyncChannelsin interfaceIConfigurationService
-
getChannels
- Specified by:
getChannelsin interfaceIConfigurationService
-
getQueues
- Specified by:
getQueuesin interfaceIConfigurationService
-
getChannelsFromDb
- Specified by:
getChannelsFromDbin interfaceIConfigurationService
-
getChannel
- Specified by:
getChannelin interfaceIConfigurationService
-
getSuspendIgnoreChannelLists
- Specified by:
getSuspendIgnoreChannelListsin interfaceIConfigurationService
-
getRegistrationRedirectMap
- Specified by:
getRegistrationRedirectMapin interfaceIConfigurationService- Returns:
- a map of nodes to redirect to that is keyed by a list of external_ids that should be redirected.
-
updateLastExtractTime
- Specified by:
updateLastExtractTimein interfaceIConfigurationService
-