org.beifengtz.jvmm.server.controller.ServerController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jvmm-server Show documentation
Show all versions of jvmm-server Show documentation
Provides access to operating system, process, thread and other information during Java runtime.
package org.beifengtz.jvmm.server.controller;
import org.beifengtz.jvmm.convey.GlobalType;
import org.beifengtz.jvmm.server.ServerBootstrap;
import org.beifengtz.jvmm.server.annotation.JvmmController;
import org.beifengtz.jvmm.server.annotation.JvmmMapping;
/**
*
* Description: TODO
*
*
* Created in 10:58 下午 2021/5/31
*
* @author beifengtz
*/
@JvmmController
public class ServerController {
@JvmmMapping(typeEnum = GlobalType.JVMM_TYPE_HEARTBEAT)
public void heartbeat() {
}
@JvmmMapping(typeEnum = GlobalType.JVMM_TYPE_SERVER_SHUTDOWN)
public void shutdownServer() {
try {
ServerBootstrap bootstrap = ServerBootstrap.getInstance();
bootstrap.stop();
} catch (IllegalStateException ignored) {
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy