Package de.dlr.proseo.planner
Klasse ProductionPlanner
java.lang.Object
de.dlr.proseo.planner.ProductionPlanner
- Alle implementierten Schnittstellen:
org.springframework.boot.CommandLineRunner
@SpringBootApplication
@EnableConfigurationProperties
@ComponentScan(basePackages="de.dlr.proseo")
@EnableJpaRepositories("de.dlr.proseo.model.dao")
public class ProductionPlanner
extends Object
implements org.springframework.boot.CommandLineRunner
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic String
static String
static final String
static final String
Some constant definition for public use.static String
(Package privat) ProductionPlannerConfiguration
Planner configurationstatic String
static ProductionPlanner
static String
static String
static String
static String
static String
static String
static String
static String
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Dispatch checkNextForRestart to UtilServiceGet the user/pw for processing orderjavax.persistence.EntityManager
getEm()
getKubeConfig
(String name) Look for connected KubeConfig of name.org.springframework.transaction.PlatformTransactionManager
static void
Initialize and run applicationvoid
void
Start the kube dispatcher threadvoid
Stop the kube dispatcher threadvoid
updateAuth
(Long orderId, String user, String pw) Set or update user/pw of a processing orderupdateKubeConfig
(String facilityName) Try to connect processing facility.void
Walk through ProcessingFacility list of DB and try to connect each.
-
Felddetails
-
jobNamePrefix
Some constant definition for public use.- Siehe auch:
-
jobContainerPrefix
- Siehe auch:
-
hostName
-
hostIP
-
port
-
PLAN_THREAD_PREFIX
-
RELEASE_THREAD_PREFIX
-
STATE_MESSAGE_COMPLETED
-
STATE_MESSAGE_QUEUED
-
STATE_MESSAGE_RUNNING
-
STATE_MESSAGE_CANCELLED
-
STATE_MESSAGE_FAILED
-
STATE_MESSAGE_NO_INPUT_AVAILABLE
-
STATE_MESSAGE_NO_INPUT
-
config
-
productionPlanner
-
plannerConfig
Planner configuration
-
-
Konstruktordetails
-
ProductionPlanner
public ProductionPlanner()
-
-
Methodendetails
-
getFinishThreads
- Gibt zurück:
- the finishThreads
-
getSuspendingOrders
- Gibt zurück:
- the suspendingOrders
-
getReleasingOrders
- Gibt zurück:
- the releasingOrders
-
getPlanningOrders
- Gibt zurück:
- the planningOrders
-
getPlanThreads
- Gibt zurück:
- the planThreads
-
getReleaseThreads
- Gibt zurück:
- the releaseThreads
-
getTxManager
public org.springframework.transaction.PlatformTransactionManager getTxManager()- Gibt zurück:
- the txManager
-
getEm
public javax.persistence.EntityManager getEm()- Gibt zurück:
- the em
-
getAuth
Get the user/pw for processing order- Parameter:
orderId
- Id of order- Gibt zurück:
- user/pw
-
updateAuth
Set or update user/pw of a processing order- Parameter:
orderId
-user
-pw
-
-
getKubeConfig
Look for connected KubeConfig of name.- Parameter:
name
- of KubeConfig to find (may be null)- Gibt zurück:
- KubeConfig found or null
-
getKubeConfigs
- Gibt zurück:
- the collection of KubeConfigs which are connected.
-
main
Initialize and run application- Parameter:
args
- command line arguments- Löst aus:
Exception
-
updateKubeConfigs
@Transactional(isolation=REPEATABLE_READ, readOnly=true) public void updateKubeConfigs()Walk through ProcessingFacility list of DB and try to connect each. Disconnect and remove KubeConfigs not defined in this list. -
updateKubeConfig
@Transactional(isolation=REPEATABLE_READ, readOnly=true) public KubeConfig updateKubeConfig(String facilityName) Try to connect processing facility. Add new kube config for not connected facility, remove kube config for not connectable facility.- Parameter:
facilityName
- the name of the processing facility to connect- Gibt zurück:
- the KubeConfig object for this processing facility, or null, if the facility is not connected
-
checkNextForRestart
public void checkNextForRestart()Dispatch checkNextForRestart to UtilService -
run
- Angegeben von:
run
in Schnittstelleorg.springframework.boot.CommandLineRunner
- Löst aus:
Exception
-
startDispatcher
public void startDispatcher()Start the kube dispatcher thread -
stopDispatcher
public void stopDispatcher()Stop the kube dispatcher thread
-