currently refactoring a lot
This commit is contained in:
parent
7fe7409a15
commit
a32805a623
46 changed files with 571 additions and 642 deletions
|
|
@ -23,7 +23,7 @@ dependencies {
|
|||
api("org.mongodb:bson:5.8.0")
|
||||
|
||||
// http://forge.kentoj.de/scrow/-/packages/maven/de.kentoj.scrow:kencommandapi-core
|
||||
api("de.kentoj.scrow:kencommandapi-core:0.21")
|
||||
api("de.kentoj.scrow:kencommandapi-core:0.22")
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ public interface InstanceManager {
|
|||
*/
|
||||
Result<ServerInstance, String> deployInstance(String template);
|
||||
|
||||
Result<Void, String> destroyInstance(String handle);
|
||||
Result<Object, String> destroyInstance(String handle);
|
||||
|
||||
/**
|
||||
* @return Flux with handles of running servers
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public class InstanceManagerImpl implements InstanceManager {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Result<Void, String> destroyInstance(String handle) {
|
||||
public Result<Object, String> destroyInstance(String handle) {
|
||||
var result = messageBroker.request("instance.destroy", new Document("handle", handle));
|
||||
return result.mapSuccess(__ -> null);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue