com.nitorcreations.willow.deployer.LaunchMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of willow-deployer Show documentation
Show all versions of willow-deployer Show documentation
Willow elastic cloud application deployer
package com.nitorcreations.willow.deployer;
import java.util.Properties;
public interface LaunchMethod extends Runnable {
public static final String ENV_KEY_DEPLOYER_IDENTIFIER = "DEPLOYER_IDENTIFIER";
public enum TYPE {
DEPENDENCY(DependencyLauncher.class), NATIVE(NativeLauncher.class), JAVA(JavaLauncher.class);
Class extends LaunchMethod> launcher;
private TYPE(Class extends LaunchMethod> launcher) {
this.launcher = launcher;
}
public LaunchMethod getLauncher() {
try {
return launcher.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
return null;
}
}
}
public void setProperties(Properties properties);
public long getProcessId();
void stop();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy