question: protected Monitor pollFor ( Map < String , Monitor > map , String name , long timeLimit ) throws MonitorException { Monitor monitor = null ; log ( "polling for: " + lvmid + "," + name + " " ) ; pollForEntry = nextEntry ; while ( ( monitor = map . get ( name ) ) == null ) { log ( "." ) ; try { Thread . sleep ( 20 ) ; } catch ( InterruptedException e ) { } long t = System . currentTimeMillis ( ) ; if ( ( t > timeLimit ) || ( overflow . intValue ( ) > 0 ) ) { lognl ( "failed: " + lvmid + "," + name ) ; dumpAll ( map , lvmid ) ; throw new MonitorException ( "Could not find expected counter" ) ; } getNewMonitors ( map ) ; } lognl ( "success: " + lvmid + "," + name ) ; return monitor ; }
target:  Method to poll the instrumentation memory for a counter with the given name. The polling period is bounded by the timeLimit argument.