Class KubernetesServices


  • @Singleton
    @Path("kubernetes")
    public class KubernetesServices
    extends step.core.deployment.AbstractServices
    • Field Summary

      • Fields inherited from class step.core.deployment.AbstractServices

        configuration, controller, SESSION
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<AgentPool> getAgentPools()  
      void init()  
      void setTarget​(AgentPool agentPoolSetting)  
      • Methods inherited from class step.core.deployment.AbstractServices

        getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, invalidateSession, setSession
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KubernetesServices

        public KubernetesServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class step.core.deployment.AbstractServices
        Throws:
        java.lang.Exception
      • getAgentPools

        @GET
        @Path("/pool/agent")
        @Produces("application/json")
        public java.util.List<AgentPool> getAgentPools()
                                                throws java.io.IOException,
                                                       java.net.URISyntaxException,
                                                       java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
        java.lang.InterruptedException
      • setTarget

        @POST
        @Path("/agent/update")
        @Consumes("application/json")
        @Produces("application/json")
        public void setTarget​(AgentPool agentPoolSetting)
                       throws java.net.URISyntaxException,
                              java.io.IOException,
                              java.lang.InterruptedException
        Throws:
        java.net.URISyntaxException
        java.io.IOException
        java.lang.InterruptedException