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 ) ; } } } }
Records the result of updating a server .