Package dev.strela.v1

Class MinecraftServers

java.lang.Object
dev.strela.v1.KubernetesCrudRepository<dev.strela.v1.MinecraftServer>
dev.strela.v1.MinecraftServers

public class MinecraftServers extends KubernetesCrudRepository<dev.strela.v1.MinecraftServer>
A repository for Minecraft servers
  • Constructor Details

    • MinecraftServers

      public MinecraftServers(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, String defaultNamespace)
      Creates a new MinecraftServers repository
      Parameters:
      kubernetesClient - the Kubernetes client
      defaultNamespace - the default namespace
  • Method Details

    • getPodByMinecraftServer

      public CompletableFuture<io.fabric8.kubernetes.api.model.Pod> getPodByMinecraftServer(dev.strela.v1.MinecraftServer server)
      Gets the pod for a Minecraft server in the default namespace
      Parameters:
      server - the server
      Returns:
      a future that will be completed when the pod is found. The future will contain the pod
    • getPodByMinecraftServer

      public CompletableFuture<io.fabric8.kubernetes.api.model.Pod> getPodByMinecraftServer(String namespace, dev.strela.v1.MinecraftServer server)
      Gets the pod for a Minecraft server
      Parameters:
      namespace - the namespace
      server - the server
      Returns:
      a future that will be completed when the pod is found. The future will contain the pod