Adaptive Statistical Procedures in Reliability and Maintenance Problems