Package de.dlr.proseo.monitor
Class MonitorApplication
java.lang.Object
de.dlr.proseo.monitor.MonitorApplication
- All Implemented Interfaces:
org.springframework.boot.CommandLineRunner
@SpringBootApplication
@EnableConfigurationProperties
@ComponentScan(basePackages="de.dlr.proseo")
@EnableJpaRepositories("de.dlr.proseo.model.dao")
public class MonitorApplication
extends Object
implements org.springframework.boot.CommandLineRunner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic MonitorConfigurationstatic Stringstatic Stringstatic final Stringstatic final StringSome constant definition for public use.(package private) MonitorConfigurationMonitorServices configurationstatic Stringstatic org.springframework.boot.web.client.RestTemplateBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidInitialize and run applicationvoidvoidStart the 10 minutes metrics threadvoidStart the hourly metrics threadvoidStart the order monitoring threadvoidStart the product monitoring threadvoidStart the service monitoring threadvoidStart the service monitoring threadvoidStop the 10 minutes metrics threadvoidStop the hourly metrics threadvoidStop the order monitoring threadvoidStop the product monitoring threadvoidStop the service monitoring threadvoidStop the service monitoring thread
-
Field Details
-
jobNamePrefix
Some constant definition for public use.- See Also:
-
jobContainerPrefix
- See Also:
-
hostName
-
hostIP
-
port
-
config
-
rtb
public static org.springframework.boot.web.client.RestTemplateBuilder rtb -
monitorConfig
MonitorServices configuration
-
-
Constructor Details
-
MonitorApplication
public MonitorApplication()
-
-
Method Details
-
main
Initialize and run application- Parameters:
args- command line arguments- Throws:
Exception
-
startMonitorServices
public void startMonitorServices()Start the service monitoring thread -
stopMonitorServices
public void stopMonitorServices()Stop the service monitoring thread -
startMonitorServicesAggregation
public void startMonitorServicesAggregation()Start the service monitoring thread -
stopMonitorServicesAggregation
public void stopMonitorServicesAggregation()Stop the service monitoring thread -
startMonitorOrders
public void startMonitorOrders()Start the order monitoring thread -
stopMonitorOrders
public void stopMonitorOrders()Stop the order monitoring thread -
startMonitorProducts
public void startMonitorProducts()Start the product monitoring thread -
stopMonitorProducts
public void stopMonitorProducts()Stop the product monitoring thread -
startMetrics10
public void startMetrics10()Start the 10 minutes metrics thread -
stopMetrics10
public void stopMetrics10()Stop the 10 minutes metrics thread -
startMetricsHourly
public void startMetricsHourly()Start the hourly metrics thread -
stopMetricsHourly
public void stopMetricsHourly()Stop the hourly metrics thread -
run
- Specified by:
runin interfaceorg.springframework.boot.CommandLineRunner- Throws:
Exception
-