All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.beifengtz.jvmm.server.controller.ServerController Maven / Gradle / Ivy

Go to download

Provides access to operating system, process, thread and other information during Java runtime.

There is a newer version: 2.4.3
Show newest version
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