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 TypeMethodDescriptionvoid
boolean
protected final void
void
void
void
deleteChannel
(Channel channel) void
deleteNodeChannelControl
(String nodeId, String channelId) void
deleteNodeGroup
(String nodeGroupId) void
boolean
doesNodeGroupExist
(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.void
boolean
boolean
isChannelInUse
(String channelId) Check to see if the channel is currently being used in the system.boolean
Indicates that this node participates in a master to master linkboolean
boolean
isUseSourceStagingEnabled
(String nodeId) boolean
void
renameChannel
(String oldId, Channel channel) void
renameNodeGroupLink
(String oldSourceId, String oldTargetId, NodeGroupLink link) void
saveChannel
(Channel channel, boolean reloadChannels) void
saveChannel
(NodeChannel nodeChannel, boolean reloadChannels) void
saveChannelAsCopy
(Channel channel, boolean reloadChannels) void
saveNodeChannel
(NodeChannel nodeChannel, boolean reloadChannels) void
saveNodeChannelControl
(NodeChannel nodeChannel, boolean reloadChannels) void
saveNodeGroup
(NodeGroup group) void
void
updateLastExtractTime
(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:
isBulkLoaderEnabled
in interfaceIConfigurationService
-
isMasterToMaster
public boolean isMasterToMaster()Description copied from interface:IConfigurationService
Indicates that this node participates in a master to master link- Specified by:
isMasterToMaster
in interfaceIConfigurationService
- Returns:
-
containsMasterToMaster
public boolean containsMasterToMaster()- Specified by:
containsMasterToMaster
in interfaceIConfigurationService
-
isMasterToMasterOnly
public boolean isMasterToMasterOnly()- Specified by:
isMasterToMasterOnly
in interfaceIConfigurationService
-
isUseSourceStagingEnabled
- Specified by:
isUseSourceStagingEnabled
in interfaceIConfigurationService
-
refreshFromDatabase
public boolean refreshFromDatabase()- Specified by:
refreshFromDatabase
in interfaceIConfigurationService
-
saveNodeGroupLink
- Specified by:
saveNodeGroupLink
in interfaceIConfigurationService
-
renameNodeGroupLink
- Specified by:
renameNodeGroupLink
in interfaceIConfigurationService
-
doesNodeGroupExist
-
saveNodeGroup
- Specified by:
saveNodeGroup
in interfaceIConfigurationService
-
deleteNodeGroup
- Specified by:
deleteNodeGroup
in interfaceIConfigurationService
-
deleteNodeGroupLink
- Specified by:
deleteNodeGroupLink
in interfaceIConfigurationService
-
deleteAllNodeGroupLinks
public void deleteAllNodeGroupLinks()- Specified by:
deleteAllNodeGroupLinks
in interfaceIConfigurationService
-
getNodeGroups
- Specified by:
getNodeGroups
in interfaceIConfigurationService
-
getNodeGroupLinks
- Specified by:
getNodeGroupLinks
in interfaceIConfigurationService
-
getNodeGroupLinksFromDb
- Specified by:
getNodeGroupLinksFromDb
in interfaceIConfigurationService
-
getNodeGroupLinksFor
- Specified by:
getNodeGroupLinksFor
in interfaceIConfigurationService
-
getNodeGroupLinkFor
public NodeGroupLink getNodeGroupLinkFor(String sourceNodeGroupId, String targetNodeGroupId, boolean refreshCache) - Specified by:
getNodeGroupLinkFor
in interfaceIConfigurationService
-
isChannelInUse
Description copied from interface:IConfigurationService
Check to see if the channel is currently being used in the system.- Specified by:
isChannelInUse
in interfaceIConfigurationService
-
saveChannel
- Specified by:
saveChannel
in interfaceIConfigurationService
-
saveChannel
- Specified by:
saveChannel
in interfaceIConfigurationService
-
saveChannelAsCopy
- Specified by:
saveChannelAsCopy
in interfaceIConfigurationService
-
renameChannel
- Specified by:
renameChannel
in interfaceIConfigurationService
-
saveNodeChannel
- Specified by:
saveNodeChannel
in interfaceIConfigurationService
-
saveNodeChannelControl
- Specified by:
saveNodeChannelControl
in interfaceIConfigurationService
-
deleteChannel
- Specified by:
deleteChannel
in interfaceIConfigurationService
-
deleteNodeChannelControl
- Specified by:
deleteNodeChannelControl
in interfaceIConfigurationService
-
deleteAllChannels
public void deleteAllChannels()- Specified by:
deleteAllChannels
in interfaceIConfigurationService
-
getNodeChannel
- Specified by:
getNodeChannel
in interfaceIConfigurationService
-
getNodeChannel
- Specified by:
getNodeChannel
in interfaceIConfigurationService
-
getNodeChannels
- Specified by:
getNodeChannels
in interfaceIConfigurationService
-
getNodeChannels
- Specified by:
getNodeChannels
in interfaceIConfigurationService
-
getNodeChannelsFromDb
- Specified by:
getNodeChannelsFromDb
in interfaceIConfigurationService
-
clearCache
public void clearCache()- Specified by:
clearCache
in interfaceIConfigurationService
-
getDataEventActionByGroupLinkId
public NodeGroupLinkAction getDataEventActionByGroupLinkId(String sourceGroupId, String targetGroupId) - Specified by:
getDataEventActionByGroupLinkId
in interfaceIConfigurationService
-
initDefaultChannels
public void initDefaultChannels()- Specified by:
initDefaultChannels
in interfaceIConfigurationService
-
getNodeGroupChannelWindows
- Specified by:
getNodeGroupChannelWindows
in interfaceIConfigurationService
-
getNodeGroupChannelWindowsFromDb
- Specified by:
getNodeGroupChannelWindowsFromDb
in interfaceIConfigurationService
-
getSuspendIgnoreChannelLists
Description copied from interface:IConfigurationService
Returns two sets of channel names, one for suspended channels and one for ignored.- Specified by:
getSuspendIgnoreChannelLists
in interfaceIConfigurationService
- Returns:
- A Map with two entries, the sets of which will always be defined but may be empty.
-
getFileSyncChannels
- Specified by:
getFileSyncChannels
in interfaceIConfigurationService
-
getChannels
- Specified by:
getChannels
in interfaceIConfigurationService
-
getQueues
- Specified by:
getQueues
in interfaceIConfigurationService
-
getChannelsFromDb
- Specified by:
getChannelsFromDb
in interfaceIConfigurationService
-
getChannel
- Specified by:
getChannel
in interfaceIConfigurationService
-
getSuspendIgnoreChannelLists
- Specified by:
getSuspendIgnoreChannelLists
in interfaceIConfigurationService
-
getRegistrationRedirectMap
- Specified by:
getRegistrationRedirectMap
in 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:
updateLastExtractTime
in interfaceIConfigurationService
-