Package org.snpeff.logStatsServer
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 java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
static final int
static final int
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getData()
Get page as stringboolean
protected void
Parse versions page Format: One entry per line Line format: "softwareName \t version \t date \t URL \n"void
run()
Run thread in backgroundstatic VersionCheck
Get version dataMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, 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
Get page as string- Throws:
Exception
-
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
public void run()Run thread in background
-