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.Logger
protected IParameterService
protected IDatabasePlatform
protected ISqlTemplate
protected ISqlTemplate
protected ISymmetricDialect
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractService
(IParameterService parameterService, ISymmetricDialect symmetricDialect) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertNotNull
(Object o, String message) protected String
buildBatchOrderBy
(String orderColumn, String orderDirection) buildBatchParams
(List<FilterCriterion> filter) protected String
buildBatchWhere
(List<String> nodeIds, List<String> channels, List<?> statuses, List<Long> loads, Date startAtLastUpdatedTime) protected String
buildBatchWhereFromFilter
(List<FilterCriterion> filter) protected void
close
(ISqlTransaction transaction) protected ISymmetricDialect
protected IDatabasePlatform
protected IDatabasePlatform
getTargetPlatform
(String tableName) protected boolean
protected boolean
protected boolean
protected boolean
isSymmetricTable
(String tableName) protected void
protected Date
readAcks
(List<OutgoingBatch> batches, IOutgoingWithResponseTransport transport, ITransportManager transportManager, IAcknowledgeService acknowledgeService, IDataExtractorService dataExtratorService) protected void
sendAck
(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 void
void
synchronize
(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:IService
Provide a mechanism where service clients may synchronize custom code with synchronized code in SymmetricDS services.- Specified by:
synchronize
in 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
-