Three years of state prison would be hanging over his head if he failed to comply with any of the terms of his sentence, according to the judge.