public void poll(final SoftnetStatsHandler softnetStatsHandler){
  this.softnetStatsHandler=softnetStatsHandler;
  try {
    fileLoader.load();
    final ByteBuffer buffer=fileLoader.getBuffer();
    cpuId=0;
    lineParser.reset();
    lineParser.handleToken(buffer,buffer.position(),buffer.limit());
  }
  finally {
    this.softnetStatsHandler=null;
  }
}

public void poll ( final SoftnetStatsHandler softnetStatsHandler ) { this . softnetStatsHandler = softnetStatsHandler ; try { fileLoader . load ( ) ; final ByteBuffer buffer = fileLoader . getBuffer ( ) ; cpuId = 0 ; lineParser . reset ( ) ; lineParser . handleToken ( buffer , buffer . position ( ) , buffer . limit ( ) ) ; } finally { this . softnetStatsHandler = null ; } }
read from monitored file , report any changed values to the supplied handler . not thread - safe , only call from a single thread .
