Package de.dlr.proseo.planner.util
Class OrderPlanThread
java.lang.Object
java.lang.Thread
de.dlr.proseo.planner.util.OrderPlanThread
- All Implemented Interfaces:
Runnable
Thread handling the planning process of a single processing order, creating job steps, and updating its planning state
accordingly.
- Author:
- Ernst Melchinger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionOrderPlanThread(ProductionPlanner productionPlanner, OrderDispatcher orderDispatcher, long orderId, long facilityId, Boolean wait, String user, String pw, String name) Create a new OrderPlanThread. -
Method Summary
Methods 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
-
Constructor Details
-
OrderPlanThread
public OrderPlanThread(ProductionPlanner productionPlanner, OrderDispatcher orderDispatcher, long orderId, long facilityId, Boolean wait, String user, String pw, String name) Create a new OrderPlanThread.- Parameters:
productionPlanner- The production planner instanceorderDispatcher- The order dispatcherorderId- The ID of the processing order to planfacilityId- The ID of the processing facility to run the orderuser- The current userpw- The password of username- The name of the thread
-
-
Method Details
-
getResultMessage
Get the result message of the planning.- Returns:
- the resultMessage
-
run
public void run()Starts the thread and initiates the planning process for the given order. -
plan
Plan the given order by creating job steps and updating its state.- Parameters:
orderId- The ID of the order to plan- Returns:
- The result message of the planning
- Throws:
InterruptedException
-