Class VersionCheck
java.lang.Object
java.lang.Thread
org.snpeff.logStatsServer.VersionCheck
- All Implemented Interfaces:
Runnable
Check is a new version is available
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic final intstatic final intFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetData()Get page as stringbooleanprotected voidParse versions page Format: One entry per line Line format: "softwareName \t version \t date \t URL \n"voidrun()Run thread in backgroundstatic VersionCheckGet version dataMethods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
LOG_THREAD_WAIT_TIME
public static final int LOG_THREAD_WAIT_TIME- See Also:
-
LOG_THREAD_WAIT_TIME_REPEAT
public static final int LOG_THREAD_WAIT_TIME_REPEAT- See Also:
-
debug
public static boolean debug
-
-
Constructor Details
-
VersionCheck
-
-
Method Details
-
version
public static VersionCheck version(String software, String latestVersion, String url, boolean verbose) Get version data -
getData
-
getLatestReleaseDate
-
getLatestUrl
-
getLatestVersion
-
isNewVersion
public boolean isNewVersion() -
parse
Parse versions page Format: One entry per line Line format: "softwareName \t version \t date \t URL \n" -
run
-