Intelligent integrated self-priming cylinder