Interface ServerManager

All Known Implementing Classes:
ServerManagerImpl

public interface ServerManager
  • Method Details

    • deployServer

      reactor.core.publisher.Mono<@NotNull ServerInstance> deployServer(String template)
      Returns:
      Mono with handle of deployed server
    • destroyServer

      reactor.core.publisher.Mono<@NotNull Void> destroyServer(String handle)
      Attempts a clean shutdown, if that doesn't succeed, kills the server.
    • getRunningServers

      reactor.core.publisher.Flux<@NotNull ServerInstance> getRunningServers()
      Returns:
      Flux with handles of running servers
    • getInfo

      reactor.core.publisher.Mono<@NotNull ServerInstance> getInfo(String handle)
    • setState

      reactor.core.publisher.Mono<@NotNull Void> setState(String handle, String state)
    • sendPlayer

      reactor.core.publisher.Mono<@NotNull Void> sendPlayer(UUID playerId, String serverHandle)