protected void rotate(String fileName) throws IllegalArgumentException, IOException, ExecutionException {
  requestFinalize(fileName);
  counts.remove(fileName);
  streamsCache.invalidate(fileName);
  MutableInt mi=openPart.get(fileName);
  LOG.debug("Part file rotated {} : {}",fileName,mi.getValue());
  String partFileName=getPartFileName(fileName,mi.getValue());
  rotateHook(partFileName);
  getRotationState(fileName).rotated=true;
}

protected void rotate ( String fileName ) throws IllegalArgumentException , IOException , ExecutionException { requestFinalize ( fileName ) ; counts . remove ( fileName ) ; streamsCache . invalidate ( fileName ) ; MutableInt mi = openPart . get ( fileName ) ; LOG . debug ( "Part file rotated {} : {}" , fileName , mi . getValue ( ) ) ; String partFileName = getPartFileName ( fileName , mi . getValue ( ) ) ; rotateHook ( partFileName ) ; getRotationState ( fileName ) . rotated = true ; }
this method rolls over to the next files .
