@Override public Service[] getServices() { Service[] hdfsServices = new HDFSPolicyProvider().getServices(); Service[] mrServices = new MapReducePolicyProvider().getServices(); Service[] hadoopServices = new Service[hdfsServices.length + mrServices.length]; System.arraycopy(hdfsServices, 0, hadoopServices, 0, hdfsServices.length); System.arraycopy(mrServices, 0, hadoopServices, hdfsServices.length, mrServices.length); return hadoopServices; }
@Override protected PolicyProvider getPolicyProvider() { return new MapReducePolicyProvider(); }