Class Runner

java.lang.Object
dd2480.group4.execute.Runner
All Implemented Interfaces:
Executor

public class Runner
extends java.lang.Object
implements Executor
Responsible for running the individual builds.
  • Constructor Summary

    Constructors 
    Constructor Description
    Runner​(RepositoryHandler repository)  
  • Method Summary

    Modifier and Type Method Description
    void runBuild​(PushEvent req, NotificationInterface notification)
    Builds the request.
    static int runExecuteInstructions​(java.nio.file.Path path)
    Runs bash script execute.sh

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • runExecuteInstructions

      public static int runExecuteInstructions​(java.nio.file.Path path) throws java.io.IOException, java.lang.InterruptedException
      Runs bash script execute.sh
      Parameters:
      path - path to temporarily directory
      Throws:
      java.io.IOException
      java.lang.InterruptedException
    • runBuild

      public void runBuild​(PushEvent req, NotificationInterface notification) throws java.io.IOException, java.lang.InterruptedException
      Builds the request.
      Specified by:
      runBuild in interface Executor
      Parameters:
      req - the request
      Throws:
      java.io.IOException
      java.lang.InterruptedException