org.springframework.boot.system.ApplicationPidFileWriter Java Examples
The following examples show how to use
org.springframework.boot.system.ApplicationPidFileWriter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ComponentStatusApplication.java From kardio with Apache License 2.0 | 5 votes |
/** * Entry Point. * * @param args */ public static void main(String[] args) { SpringApplication springApplication = new SpringApplication(ComponentStatusApplication.class); ApplicationPidFileWriter appPidWriter = new ApplicationPidFileWriter("kardio-api.pid"); springApplication.addListeners(appPidWriter); springApplication.run(args); }
Example #2
Source File: RagnarApplication.java From fiery with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication springApplication = new SpringApplication(RagnarApplication.class); springApplication.addListeners(new ApplicationPidFileWriter()); springApplication.run(args); }
Example #3
Source File: JandyApplicationServer.java From jandy with GNU General Public License v3.0 | 4 votes |
public static void main(String[] args) { new SpringApplicationBuilder() .listeners(new ApplicationPidFileWriter()) .sources(JandyApplicationServer.class) .run(args); }