public static void reportHostStatus ( HostSpec hostSpec , HostStatus hostStatus ) { long now = currentTimeMillis ( ) ; synchronized ( hostStatusMap ) { HostSpecStatus hostSpecStatus = hostStatusMap . get ( hostSpec ) ; if ( hostSpecStatus == null ) { hostSpecStatus = new HostSpecStatus ( hostSpec ) ; hostStatusMap . put ( hostSpec , hostSpecStatus ) ; } hostSpecStatus . status = hostStatus ; hostSpecStatus . lastUpdated = now ; } }
Store the actual observed host status .