Class GridServices

    • Field Detail

      • grid

        protected step.grid.GridImpl grid
    • Constructor Detail

      • GridServices

        public GridServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class AbstractServices
        Throws:
        java.lang.Exception
      • getAgents

        @GET
        @Path("/agent")
        @Produces("application/json")
        public java.util.Collection<AgentListEntry> getAgents​(@QueryParam("notokens")
                                                              java.lang.String notokens)
      • getAgentTokens

        protected java.util.List<step.grid.TokenWrapper> getAgentTokens​(java.lang.String agentId)
      • getTokensCapacity

        protected step.grid.reports.TokenGroupCapacity getTokensCapacity​(java.util.List<step.grid.TokenWrapper> tokens)
      • interruptAgent

        @PUT
        @Path("/agent/{id}/interrupt")
        @Produces("application/json")
        public void interruptAgent​(@PathParam("id")
                                   java.lang.String agentId)
      • resumeAgent

        @PUT
        @Path("/agent/{id}/resume")
        @Produces("application/json")
        public void resumeAgent​(@PathParam("id")
                                java.lang.String agentId)
      • removeAgentTokenErrors

        @DELETE
        @Path("/agent/{id}/tokens/errors")
        @Produces("application/json")
        public void removeAgentTokenErrors​(@PathParam("id")
                                           java.lang.String agentId)
      • getTokenAssociations

        @GET
        @Path("/token")
        @Produces("application/json")
        public java.util.List<step.grid.TokenWrapper> getTokenAssociations()
      • removeTokenError

        @DELETE
        @Path("/token/{id}/error")
        @Consumes("application/json")
        public void removeTokenError​(@PathParam("id")
                                     java.lang.String tokenId)
      • startTokenMaintenance

        @POST
        @Path("/token/{id}/maintenance")
        @Consumes("application/json")
        public void startTokenMaintenance​(@PathParam("id")
                                          java.lang.String tokenId)
      • stopTokenMaintenance

        @DELETE
        @Path("/token/{id}/maintenance")
        @Consumes("application/json")
        public void stopTokenMaintenance​(@PathParam("id")
                                         java.lang.String tokenId)
      • getUsageByIdentity

        @GET
        @Path("/token/usage")
        @Produces("application/json")
        public java.util.List<step.grid.reports.TokenGroupCapacity> getUsageByIdentity​(@QueryParam("groupby")
                                                                                       java.util.List<java.lang.String> groupbys)
      • getTokenAttributeKeys

        @GET
        @Path("/keys")
        @Produces("application/json")
        public java.util.Set<java.lang.String> getTokenAttributeKeys()