public Map < Computer , List < LogRecord > > getSlaveLogRecords ( ) { Map < Computer , List < LogRecord > > result = new TreeMap < Computer , List < LogRecord > > ( new Comparator < Computer > ( ) { final Collator COLL = Collator . getInstance ( ) ; public int compare ( Computer c1 , Computer c2 ) { return COLL . compare ( c1 . getDisplayName ( ) , c2 . getDisplayName ( ) ) ; } } ) ; for ( Computer c : Jenkins . getInstance ( ) . getComputers ( ) ) { if ( c . getName ( ) . length ( ) == 0 ) { continue ; // master } List < LogRecord > recs = new ArrayList < LogRecord > ( ) ; try { for ( LogRecord rec : c . getLogRecords ( ) ) { for ( Target t : targets ) { if ( t . includes ( rec ) ) { recs . add ( rec ) ; break ; } } } } catch ( IOException x ) { continue ; } catch ( InterruptedException x ) { continue ; } if ( ! recs . isEmpty ( ) ) { result . put ( c , recs ) ; } } return result ; }
Gets a view of log records per agent matching this recorder .