Statistics for The gluon self-energy in cavity quantum chromodynamics