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

com.nitorcreations.willow.deployer.launch.LaunchMethod Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.nitorcreations.willow.deployer.launch;

import java.util.concurrent.Callable;

import com.nitorcreations.willow.utils.MergeableProperties;

public interface LaunchMethod extends Callable {
  public enum TYPE {
    DEPENDENCY(DependencyLauncher.class), NATIVE(NativeLauncher.class), JAVA(JavaLauncher.class);
    Class launcher;

    private TYPE(Class launcher) {
      this.launcher = launcher;
    }

    public Class getLauncher() {
      return launcher;
    }
    public static TYPE fromString(String name) {
      try {
        return valueOf(name);
      } catch (IllegalArgumentException | NullPointerException e) {
        return null;
      }
    }
  }
  void setProperties(MergeableProperties properties);
  void setProperties(MergeableProperties properties, LaunchCallback callback);
  long getProcessId();
  void stopRelaunching();
  int destroyChild() throws InterruptedException;
  int restarts();
  String getName();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy