// We will restart the timer only if the timerTask is set which
// means user has set a value for LogRotation based on Time
if( rotationTimerTask != null ) {
rotationTimerTask.cancel( );
rotationTimerTask = new LogRotationTimerTask(
// This is wierd, We need to have a fresh TimerTask object
// to reschedule the work.
rotationTimerTask.getRotationTimerValueInMinutes( ) );
rotationTimer.schedule( rotationTimerTask,
rotationTimerTask.getRotationTimerValue( ) );
}