In hand

Under control.

The teacher had the class in hand when the principal came to visit the classroom.