All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.agent.event.ExecuteEvent Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version

package org.snapscript.agent.event;

import java.util.Map;

public class ExecuteEvent implements ProcessEvent {

   private final Map> breakpoints;
   private final ExecuteData data;
   private final String project;
   private final String resource;
   private final String process;
   
   private ExecuteEvent(Builder builder) {
      this.data = new ExecuteData(builder.process, builder.project, builder.resource);
      this.breakpoints = builder.breakpoints;
      this.project = builder.project;
      this.resource = builder.resource;
      this.process = builder.process;
   }
   
   @Override
   public String getProcess() {
      return process;
   }
   
   public ExecuteData getData() {
      return data; 
   }
   
   public Map> getBreakpoints() {
      return breakpoints;
   }
   
   public String getResource() {
      return resource;
   }
   
   public String getProject() {
      return project;
   }
   
   public static class Builder {
      
      private Map> breakpoints;
      private String project;
      private String resource;
      private String process;
      
      public Builder(String process) {
         this.process = process;
      }

      public Builder withBreakpoints(Map> breakpoints) {
         this.breakpoints = breakpoints;
         return this;
      }

      public Builder withProject(String project) {
         this.project = project;
         return this;
      }

      public Builder withResource(String resource) {
         this.resource = resource;
         return this;
      }

      public Builder withProcess(String process) {
         this.process = process;
         return this;
      }
      
      public ExecuteEvent build(){
         return new ExecuteEvent(this);
      }
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy