Nonequilibrium statistical mechanics of shear flow: invariant quantities and current relations