Package org.snpeff.logStatsServer
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 java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
protected boolean
static final int
static final int
protected boolean
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a 'name=value' pairvoid
connect()
Connect to servergetRes()
static LogStats
report
(String software, String versionShort, String versionFull, boolean ok, boolean verbose, String[] args, String errorMessage, HashMap<String, String> reportValues) Report stats to servervoid
run()
Run thread in backgroundMethods 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 -
msg
-
log
protected boolean log -
verbose
protected boolean verbose
-
-
Constructor Details
-
LogStats
Constructor
-
-
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 <name, value> pairs to report
-
add
Add a 'name=value' pair -
connect
public void connect()Connect to server -
getRes
-
run
public void run()Run thread in background
-