code: public void recordServerResult(ServerIdentity server, ModelNode response) {
  
          if (!serverGroupName.equals(server.getServerGroupName()) || !servers.contains(server)) {
              throw DomainControllerLogger.HOST_CONTROLLER_LOGGER.unknownServer(server);
          }
  
          boolean serverFailed = response.has(FAILURE_DESCRIPTION);
  
  
          DomainControllerLogger.HOST_CONTROLLER_LOGGER.tracef("Recording server result for '%s': failed = %s",
                  server, server);
  
          synchronized (this) {
              int previousFailed = failureCount;
              if (serverFailed) {
                  failureCount++;
              }
              else {
                  successCount++;
              }
              if (previousFailed <= maxFailed) {
                  if (!serverFailed && (successCount + failureCount) == servers.size()) {
                      // All results are in; notify parent of success
                      parent.recordServerGroupResult(serverGroupName, false);
                  }
                  else if (serverFailed && failureCount > maxFailed) {
                      parent.recordServerGroupResult(serverGroupName, true);
                  }
              }
          }
      }
docs: Records the result of updating a server.
  
  @param server  the id of the server. Cannot be <code>null</code>
  @param response the result of the updates