Class AbstractService
java.lang.Object
org.jumpmind.symmetric.service.impl.AbstractService
- All Implemented Interfaces:
IService
- Direct Known Subclasses:
AbstractOfflineDetectorService,AcknowledgeService,ClusterService,ConfigurationService,ContextService,DataExtractorService,DataLoaderService,DataService,ExtensionService,GroupletService,IncomingBatchService,InitialLoadService,JobManager,LoadFilterService,NodeCommunicationService,NodeService,OfflinePullService,OfflinePushService,OutgoingBatchService,PurgeService,RegistrationService,RouterService,SequenceService,StatisticService,TestTablesService,TransformService,TriggerRouterService,UpdateService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.Loggerprotected IParameterServiceprotected IDatabasePlatformprotected ISqlTemplateprotected ISqlTemplateprotected ISymmetricDialectprotected String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractService(IParameterService parameterService, ISymmetricDialect symmetricDialect) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertNotNull(Object o, String message) protected StringbuildBatchOrderBy(String orderColumn, String orderDirection) buildBatchParams(List<FilterCriterion> filter) protected StringbuildBatchWhere(List<String> nodeIds, List<String> channels, List<?> statuses, List<Long> loads, Date startAtLastUpdatedTime) protected StringbuildBatchWhereFromFilter(List<FilterCriterion> filter) protected voidclose(ISqlTransaction transaction) protected ISymmetricDialectprotected IDatabasePlatformprotected IDatabasePlatformgetTargetPlatform(String tableName) protected booleanprotected booleanprotected booleanprotected booleanisSymmetricTable(String tableName) protected voidprotected DatereadAcks(List<OutgoingBatch> batches, IOutgoingWithResponseTransport transport, ITransportManager transportManager, IAcknowledgeService acknowledgeService, IDataExtractorService dataExtratorService) protected voidsendAck(Node remote, Node local, NodeSecurity localSecurity, List<IncomingBatch> list, ITransportManager transportManager, String queue) Try a configured number of times to get the ACK through.protected voidvoidsynchronize(Runnable runnable) Provide a mechanism where service clients may synchronize custom code with synchronized code in SymmetricDS services.
-
Field Details
-
log
protected final org.slf4j.Logger log -
parameterService
-
symmetricDialect
-
sqlTemplate
-
sqlTemplateDirty
-
platform
-
tablePrefix
-
-
Constructor Details
-
AbstractService
public AbstractService() -
AbstractService
-
-
Method Details
-
maxDate
-
setSqlMap
-
getJdbcTemplate
-
synchronize
Description copied from interface:IServiceProvide a mechanism where service clients may synchronize custom code with synchronized code in SymmetricDS services.- Specified by:
synchronizein interfaceIService- Parameters:
runnable- The code to run
-
isSet
-
createSqlReplacementTokens
-
getSql
-
getParameterService
-
getSymmetricDialect
-
getTablePrefix
-
close
-
toNodeIds
-
toNodeIds
-
isCalledFromSymmetricAdminTool
protected boolean isCalledFromSymmetricAdminTool() -
buildBatchWhere
-
buildBatchWhereFromFilter
-
buildBatchParams
-
buildBatchOrderBy
-
sendAck
protected void sendAck(Node remote, Node local, NodeSecurity localSecurity, List<IncomingBatch> list, ITransportManager transportManager, String queue) throws IOException Try a configured number of times to get the ACK through.- Throws:
IOException
-
readAcks
protected List<BatchAck> readAcks(List<OutgoingBatch> batches, IOutgoingWithResponseTransport transport, ITransportManager transportManager, IAcknowledgeService acknowledgeService, IDataExtractorService dataExtratorService) throws IOException - Throws:
IOException
-
logOnce
-
isStreamClosedByClient
-
assertNotNull
-
getTargetDialect
-
isSymmetricTable
-
getTargetPlatform
-
getTargetPlatform
-