private boolean allReady ( ) { if ( currentContext == null ) return false ; List < InstanceContext > instances = new ArrayList <> ( ) ; boolean match = true ; outer : for ( ComponentContext < ? > component : currentContext . components ( ) ) { instances . addAll ( component . instances ( ) ) ; for ( InstanceContext instance : component . instances ( ) ) { if ( ! ready . contains ( instance . address ( ) ) ) { match = false ; break outer ; } } } return match ; }
Checks whether all components are ready in the network .