public class Hl7InArchivesMigrateThread
extends java.lang.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
|
Constructor and Description |
---|
Hl7InArchivesMigrateThread()
Constructor to initialize variables
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
getDaysKept() |
static java.lang.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 java.lang.Integer |
getNumberTransferred() |
static Hl7InArchivesMigrateThread.Status |
getTransferStatus() |
UserContext |
getUserContext() |
static boolean |
isActive() |
void |
run() |
static void |
setActive(boolean active) |
static void |
setDaysKept(java.lang.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 java.lang.Integer getDaysKept()
public static void setDaysKept(java.lang.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 java.lang.Runnable
run
in class java.lang.Thread
Runnable.run()
public static void stopMigration()
public static Hl7InArchivesMigrateThread.Status getTransferStatus()
public static java.lang.Integer getNumberTransferred()
public static java.lang.Integer getNumberOfFailedTransfers()
public UserContext getUserContext()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.