Man sentenced to 8 years for aggravated battery