public static ExceptionRequest fromProtobuf ( TopologyMaster . ExceptionLogRequest request ) { String componentName = request . getComponentName ( ) ; Map < String , Set < String > > componentNameInstanceId = new HashMap <> ( ) ; Set < String > instances = null ; if ( request . getInstancesCount ( ) > 0 ) { instances = new HashSet <> ( ) ; instances . addAll ( request . getInstancesList ( ) ) ; } // empty list means all instances; 'null' means all instances // only one component componentNameInstanceId . put ( componentName , instances ) ; return new ExceptionRequest ( componentNameInstanceId ) ; }
compatible with org . apache . heron . proto . tmaster . TopologyMaster . ExceptionLogRequest