Search in sources :

Example 1 with InspectorTimeSerializer

use of fr.inria.spirals.repairnator.serializer.InspectorTimeSerializer in project repairnator by Spirals-Team.

the class Launcher method mainProcess.

private void mainProcess() throws IOException {
    LOGGER.info("Start by getting the build (buildId: " + this.config.getBuildId() + ") with the following config: " + this.config);
    this.getBuildToBeInspected();
    HardwareInfoSerializer hardwareInfoSerializer = new HardwareInfoSerializer(this.engines, this.config.getRunId(), this.config.getBuildId() + "");
    hardwareInfoSerializer.serialize();
    List<AbstractDataSerializer> serializers = new ArrayList<>();
    if (this.config.getLauncherMode() == LauncherMode.REPAIR) {
        serializers.add(new InspectorSerializer(this.engines));
        serializers.add(new InspectorTimeSerializer(this.engines));
    } else {
        serializers.add(new InspectorSerializer4Bears(this.engines));
        serializers.add(new InspectorTimeSerializer4Bears(this.engines));
    }
    serializers.add(new NopolSerializer(this.engines));
    serializers.add(new NPEFixSerializer(this.engines));
    serializers.add(new AstorSerializer(this.engines));
    serializers.add(new MetricsSerializer(this.engines));
    serializers.add(new PipelineErrorSerializer(this.engines));
    ProjectInspector inspector;
    if (config.getLauncherMode() == LauncherMode.BEARS) {
        inspector = new ProjectInspector4Bears(buildToBeInspected, this.config.getWorkspacePath(), serializers, this.notifiers);
    } else {
        inspector = new ProjectInspector(buildToBeInspected, this.config.getWorkspacePath(), serializers, this.notifiers);
    }
    inspector.run();
    LOGGER.info("Inspector is finished. The process will now exit.");
    System.exit(0);
}
Also used : InspectorTimeSerializer4Bears(fr.inria.spirals.repairnator.serializer.InspectorTimeSerializer4Bears) HardwareInfoSerializer(fr.inria.spirals.repairnator.serializer.HardwareInfoSerializer) InspectorSerializer4Bears(fr.inria.spirals.repairnator.serializer.InspectorSerializer4Bears) ArrayList(java.util.ArrayList) InspectorTimeSerializer(fr.inria.spirals.repairnator.serializer.InspectorTimeSerializer) ProjectInspector4Bears(fr.inria.spirals.repairnator.process.inspectors.ProjectInspector4Bears) AbstractDataSerializer(fr.inria.spirals.repairnator.serializer.AbstractDataSerializer) InspectorSerializer(fr.inria.spirals.repairnator.serializer.InspectorSerializer) ProjectInspector(fr.inria.spirals.repairnator.process.inspectors.ProjectInspector) PipelineErrorSerializer(fr.inria.spirals.repairnator.serializer.PipelineErrorSerializer) AstorSerializer(fr.inria.spirals.repairnator.serializer.AstorSerializer) NopolSerializer(fr.inria.spirals.repairnator.serializer.NopolSerializer) MetricsSerializer(fr.inria.spirals.repairnator.serializer.MetricsSerializer) NPEFixSerializer(fr.inria.spirals.repairnator.serializer.NPEFixSerializer)

Aggregations

ProjectInspector (fr.inria.spirals.repairnator.process.inspectors.ProjectInspector)1 ProjectInspector4Bears (fr.inria.spirals.repairnator.process.inspectors.ProjectInspector4Bears)1 AbstractDataSerializer (fr.inria.spirals.repairnator.serializer.AbstractDataSerializer)1 AstorSerializer (fr.inria.spirals.repairnator.serializer.AstorSerializer)1 HardwareInfoSerializer (fr.inria.spirals.repairnator.serializer.HardwareInfoSerializer)1 InspectorSerializer (fr.inria.spirals.repairnator.serializer.InspectorSerializer)1 InspectorSerializer4Bears (fr.inria.spirals.repairnator.serializer.InspectorSerializer4Bears)1 InspectorTimeSerializer (fr.inria.spirals.repairnator.serializer.InspectorTimeSerializer)1 InspectorTimeSerializer4Bears (fr.inria.spirals.repairnator.serializer.InspectorTimeSerializer4Bears)1 MetricsSerializer (fr.inria.spirals.repairnator.serializer.MetricsSerializer)1 NPEFixSerializer (fr.inria.spirals.repairnator.serializer.NPEFixSerializer)1 NopolSerializer (fr.inria.spirals.repairnator.serializer.NopolSerializer)1 PipelineErrorSerializer (fr.inria.spirals.repairnator.serializer.PipelineErrorSerializer)1 ArrayList (java.util.ArrayList)1