Class LogStats
java.lang.Object
java.lang.Thread
org.snpeff.logStatsServer.LogStats
- All Implemented Interfaces:
Runnable
Log basic usage information to a server (for feedback and stats)
This information an always be suppressed (no info sent at all)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanprotected booleanstatic final intstatic final intprotected booleanFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a 'name=value' pairvoidconnect()Connect to servergetRes()static LogStatsreport(String software, String versionShort, String versionFull, boolean ok, boolean verbose, String[] args, String errorMessage, HashMap<String, String> reportValues) Report stats to servervoidrun()Run thread in backgroundMethods 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 -
msg
-
log
protected boolean log -
verbose
protected boolean verbose
-
-
Constructor Details
-
LogStats
-
-
Method Details
-
report
public static LogStats report(String software, String versionShort, String versionFull, boolean ok, boolean verbose, String[] args, String errorMessage, HashMap<String, String> reportValues) Report stats to server- Parameters:
versionFull- : Program name and versionok- : Did the program finished OK?verbose- : Be verbose while reportingargs- : Program's command line argumentserrorMessage- : Error messages (if any)reportValues- : A hash containing invalid input: '<'name, value> pairs to report
-
add
-
connect
public void connect()Connect to server -
getRes
-
run
-