public final class TransactionHeaderScanner extends java.lang.Thread implements ServerProcess
Modifier and Type | Field and Description |
---|---|
static long |
MAX_PROCESS_TIME
The MAXIMUM PROCESSING TIME of one call.
|
static java.lang.String |
PROPERTY_TRANSACTION_SCANNER_EXCLUDE_LAYERS
Exclude layers from scan
|
static java.lang.String |
PROPERTY_TRANSACTION_SCANNER_INCLUDE_LAYERS
include only these layers in the scan
|
static java.lang.String |
PROPERTY_TRANSACTION_SCANNER_MAX_PROCESS_TIME
The property to set the default maximum processing time.
|
static java.lang.String |
PROPERTY_TRANSACTION_SCANNER_PERIOD
The property to set the scan period ( in milliseconds).
|
static java.lang.String |
PROPERTY_TRANSACTION_SCANNER_SAFTEY_MARGIN_TIME
The property to set the safety margin on top of the period of maximum processing time before we mark the task as dead ( milliseconds).
|
static long |
SAFTEY_MARGIN_TIME
the safety margin on top of the period of maximum processing time before we mark the task as dead ( milliseconds)
|
static long |
SCAN_PERIOD
scan period ( in milliseconds).
|
Modifier and Type | Method and Description |
---|---|
static void |
checkUp()
Check if the background loader is running.
|
static void |
disable()
disable the scanner
|
static void |
enable()
enable the scanner
|
boolean |
isCurrent()
Is this the current process ?
|
java.lang.String |
makeThreadName()
get the progress message
|
void |
paused()
This process has been paused.
|
void |
resumed()
This process has been resumed.
|
void |
run()
run
|
static void |
scan()
begin the transaction scanner.
|
void |
terminated()
This process has been terminated.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final java.lang.String PROPERTY_TRANSACTION_SCANNER_MAX_PROCESS_TIME
public static final java.lang.String PROPERTY_TRANSACTION_SCANNER_PERIOD
public static final java.lang.String PROPERTY_TRANSACTION_SCANNER_EXCLUDE_LAYERS
public static final java.lang.String PROPERTY_TRANSACTION_SCANNER_INCLUDE_LAYERS
public static final java.lang.String PROPERTY_TRANSACTION_SCANNER_SAFTEY_MARGIN_TIME
public static final long SAFTEY_MARGIN_TIME
public static final long SCAN_PERIOD
public static final long MAX_PROCESS_TIME
public static void disable()
public static void enable()
public static void scan()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
@CheckReturnValue public boolean isCurrent()
public void paused()
paused
in interface ServerProcess
public void resumed()
resumed
in interface ServerProcess
public void terminated()
terminated
in interface ServerProcess
@CheckReturnValue @Nonnull public java.lang.String makeThreadName()
makeThreadName
in interface ServerProcess
public static void checkUp()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.