This commit is contained in:
kento2 2026-07-07 08:23:33 +02:00
parent b9a092153d
commit 94061dbb8e

View file

@ -6,18 +6,27 @@ import java.util.List;
public interface InstanceManager {
/**
* Runs blocking.
* Deploys an instance of template.
*/
ServerInstance deployInstance(String template);
/**
* Runs blocking.
* @return if the instance was found
*/
boolean destroyInstance(String handle);
/**
* @return Flux with handles of running servers
* Runs blocking.
* @return list of running instances
*/
List<ServerInstance> getInstances();
/**
* Runs blocking
*/
@Nullable
ServerInstance getInstance(String handle);
}