private void runPool() throws IOException { String runId = this.config.getRunId(); HardwareInfoSerializer hardwareInfoSerializer = new HardwareInfoSerializer(this.engines, runId, "dockerPool"); hardwareInfoSerializer.serialize();
private void initAndRunRTScanner() { LOGGER.info("Init RTScanner..."); LOGGER.info("RTScanner mode : " + this.config.getLauncherMode()); String runId = this.config.getRunId(); HardwareInfoSerializer hardwareInfoSerializer = new HardwareInfoSerializer(this.engines, runId, "rtScanner"); hardwareInfoSerializer.serialize(); RTScanner rtScanner = new RTScanner(runId, this.engines); if (this.summaryNotifier != null) { rtScanner.setSummaryNotifier(this.summaryNotifier); } if (this.config.getDuration() != null && this.endProcessNotifier != null) { rtScanner.setEndProcessNotifier(this.endProcessNotifier); } if (this.config.getWhiteList() != null) { rtScanner.initWhiteListedRepository(this.config.getWhiteList()); } if (this.config.getBlackList() != null) { rtScanner.initBlackListedRepository(this.config.getBlackList()); } LOGGER.info("Start RTScanner..."); rtScanner.launch(); }
private void mainProcess() { LOGGER.info("Start by getting the build (buildId: "+this.getConfig().getBuildId()+") with the following config: "+this.getConfig()); this.getBuildToBeInspected(); HardwareInfoSerializer hardwareInfoSerializer = new HardwareInfoSerializer(this.engines, this.getConfig().getRunId(), this.getConfig().getBuildId()+""); hardwareInfoSerializer.serialize(); List<AbstractDataSerializer> serializers = new ArrayList<>(); if (this.getConfig().getLauncherMode() == LauncherMode.BEARS) { serializers.add(new InspectorSerializer4Bears(this.engines)); } else { serializers.add(new InspectorSerializer(this.engines)); } serializers.add(new PropertiesSerializer(this.engines)); serializers.add(new InspectorTimeSerializer(this.engines)); serializers.add(new PipelineErrorSerializer(this.engines)); serializers.add(new PatchesSerializer(this.engines)); serializers.add(new ToolDiagnosticSerializer(this.engines)); ProjectInspector inspector; if (this.getConfig().getLauncherMode() == LauncherMode.BEARS) { inspector = new ProjectInspector4Bears(buildToBeInspected, this.getConfig().getWorkspacePath(), serializers, this.notifiers); } else if (this.getConfig().getLauncherMode() == LauncherMode.CHECKSTYLE) { inspector = new ProjectInspector4Checkstyle(buildToBeInspected, this.getConfig().getWorkspacePath(), serializers, this.notifiers); } else { inspector = new ProjectInspector(buildToBeInspected, this.getConfig().getWorkspacePath(), serializers, this.notifiers); } inspector.setPatchNotifier(this.patchNotifier); inspector.run(); LOGGER.info("Inspector is finished. The process will exit now."); System.exit(0); }