public int clear() {
        System.out.print("Distribution: ");
        for (int i = 0; i < 4; ++i){
            System.out.print(distribution[i] + ", ");
            distribution[i] = 0;
        }
        System.out.println();
        String response;
        for (HttpHost host : httpHosts){
            try{
                post.setHeader("command", "clear");
                String requestBody = "clear";
                post.setEntity(new StringEntity(requestBody));
                final HttpResponse execute = client.execute(host, post);
                ResponseHandler<String> handler = new BasicResponseHandler();
                response = handler.handleResponse(execute);
            } catch (IOException e){
                return 2;
            }
            if (!response.equals("0")){
                return Integer.parseInt(response);
            }
        }
        return 0;
    }