public class Hl7InArchivesMigrateThread extends Thread
HL7Service#startHl7ArchiveMigration()}
Modifier and Type | Class and Description |
---|---|
static class |
Hl7InArchivesMigrateThread.Status
The different states this thread can be in at a given point during migration
|
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
Hl7InArchivesMigrateThread()
Constructor to initialize variables
|
Modifier and Type | Method and Description |
---|---|
static Integer |
getDaysKept() |
static Integer |
getNumberOfFailedTransfers()
Gets the number of failed transfers during migration, this could be that the system couldn't
write them to the file system or couldn't be deleted from the database.
|
static Integer |
getNumberTransferred() |
static Hl7InArchivesMigrateThread.Status |
getTransferStatus() |
UserContext |
getUserContext() |
static boolean |
isActive() |
void |
run() |
static void |
setActive(boolean active) |
static void |
setDaysKept(Integer daysKept) |
static void |
stopMigration()
convenience method to set transfer status and active flag to stop migration
|
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 Hl7InArchivesMigrateThread()
public static Integer getDaysKept()
public static void setDaysKept(Integer daysKept)
daysKept
- the daysKept to setpublic static boolean isActive()
public static void setActive(boolean active)
active
- the active to setpublic void run()
run
in interface Runnable
run
in class Thread
Runnable.run()
public static void stopMigration()
public static Hl7InArchivesMigrateThread.Status getTransferStatus()
public static Integer getNumberTransferred()
public static Integer getNumberOfFailedTransfers()
public UserContext getUserContext()
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.