Class UpdateService
java.lang.Object
org.jumpmind.symmetric.service.impl.AbstractService
org.jumpmind.symmetric.service.impl.UpdateService
- All Implemented Interfaces:
IService
,IUpdateService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected String
protected ISymmetricEngine
protected String
protected final long
protected final long
protected boolean
protected Thread
protected boolean
Fields inherited from class org.jumpmind.symmetric.service.impl.AbstractService
log, parameterService, platform, sqlTemplate, sqlTemplateDirty, symmetricDialect, tablePrefix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addUsageProperties
(Map<String, Object> prop) void
protected byte[]
getPostData
(Map<String, Object> prop) protected URL
void
init()
boolean
protected void
protected void
protected void
postDataForVersion
(URL url, byte[] postData) void
stop()
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
-
Field Details
-
MILLIS_BETWEEN_CHECKS
protected final long MILLIS_BETWEEN_CHECKS- See Also:
-
MILLIS_AFTER_NODE_OFFLINE
protected final long MILLIS_AFTER_NODE_OFFLINE- See Also:
-
engine
-
sendUsage
protected boolean sendUsage -
checkUpdates
protected boolean checkUpdates -
latestVersion
-
downloadUrl
-
sleepThread
-
stopped
protected boolean stopped
-
-
Constructor Details
-
UpdateService
-
-
Method Details
-
init
public void init()- Specified by:
init
in interfaceIUpdateService
-
checkForUpdates
public void checkForUpdates()- Specified by:
checkForUpdates
in interfaceIUpdateService
-
getPostData
- Throws:
UnsupportedEncodingException
-
postDataForVersion
- Throws:
IOException
-
parseHeaders
-
parseResponse
- Throws:
IOException
-
getProperties
-
addUsageProperties
-
getUpdateUrl
- Throws:
MalformedURLException
-
isNewVersionAvailable
public boolean isNewVersionAvailable()- Specified by:
isNewVersionAvailable
in interfaceIUpdateService
-
getLatestVersion
- Specified by:
getLatestVersion
in interfaceIUpdateService
-
getDownloadUrl
- Specified by:
getDownloadUrl
in interfaceIUpdateService
-
stop
public void stop()- Specified by:
stop
in interfaceIUpdateService
-