.
This commit is contained in:
parent
d3e20606d9
commit
5a255aeac0
16 changed files with 128 additions and 74 deletions
|
|
@ -36,8 +36,9 @@ dependencies {
|
|||
api("io.nats:jnats:2.25.2")
|
||||
|
||||
api("de.kentoj.scrow:kencommandapi-core:0.4")
|
||||
implementation("de.kentoj.scrow:kencommandapi-bukkit:0.4")
|
||||
api("de.kentoj.scrow:kencommandapi-bukkit:0.4")
|
||||
|
||||
api(project(":core-lib"))
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import com.mongodb.reactivestreams.client.MongoDatabase;
|
|||
import de.kentoj.kencommandapi.BukkitKenCommandApi;
|
||||
import de.kentoj.scrow.bukkit.friends.FriendRequestService;
|
||||
import de.kentoj.scrow.bukkit.friends.FriendshipService;
|
||||
import de.kentoj.scrowlib.servermanager.ServerManager;
|
||||
import io.nats.client.Connection;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Getter;
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
package de.kentoj.scrow.bukkit;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import reactor.core.publisher.Flux;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
public interface ServerManager {
|
||||
|
||||
/**
|
||||
* @return Mono with handle of deployed server
|
||||
*/
|
||||
Mono<@NotNull String> deployServer(String template);
|
||||
|
||||
/**
|
||||
* @return Flux with handles of running servers
|
||||
*/
|
||||
Flux<@NotNull String> getRunningServers();
|
||||
|
||||
/**
|
||||
* Attempts a clean shutdown, if that doesn't succeed, kills the server.
|
||||
*/
|
||||
Mono<@NotNull Void> destroyServer(String handle);
|
||||
|
||||
Mono<@NotNull Void> updateState(String handle, String state);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue