How to set the exposure time range or gain range with nvarguscamerasrc and make it effective immediately

There’s no this API for current release, sorry.
But I think you can get it from the v4l2 interface like v4l2-ctl do.