Class ClientsManagementService

    • Field Detail

      • headers

        protected final javax.ws.rs.core.HttpHeaders headers
    • Method Detail

      • clientsManagementBaseUrl

        public static javax.ws.rs.core.UriBuilder clientsManagementBaseUrl​(javax.ws.rs.core.UriBuilder baseUriBuilder)
      • registerNodeUrl

        public static javax.ws.rs.core.UriBuilder registerNodeUrl​(javax.ws.rs.core.UriBuilder baseUriBuilder)
      • unregisterNodeUrl

        public static javax.ws.rs.core.UriBuilder unregisterNodeUrl​(javax.ws.rs.core.UriBuilder baseUriBuilder)
      • registerNode

        @Path("register-node")
        @POST
        @Produces("application/json")
        public javax.ws.rs.core.Response registerNode​(@HeaderParam("Authorization")
                                                      String authorizationHeader,
                                                      javax.ws.rs.core.MultivaluedMap<String,​String> formData)
        URL invoked by adapter to register new client cluster node. Each application cluster node will invoke this URL once it joins cluster
        Parameters:
        authorizationHeader -
        formData -
        Returns:
      • unregisterNode

        @Path("unregister-node")
        @POST
        @Produces("application/json")
        public javax.ws.rs.core.Response unregisterNode​(@HeaderParam("Authorization")
                                                        String authorizationHeader,
                                                        javax.ws.rs.core.MultivaluedMap<String,​String> formData)
        URL invoked by adapter to register new client cluster node. Each application cluster node will invoke this URL once it joins cluster
        Parameters:
        authorizationHeader -
        formData -
        Returns:
      • authorizeClient

        protected ClientModel authorizeClient()
      • getClientClusterHost

        protected String getClientClusterHost​(javax.ws.rs.core.MultivaluedMap<String,​String> formData)