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

com.jslsolucoes.runtime.se.RuntimeResult Maven / Gradle / Ivy

There is a newer version: 1.0.32
Show newest version
package com.jslsolucoes.runtime.se;

import java.nio.file.Path;
import java.util.Map;

public class RuntimeResult {

	private Integer exitValue;
	private RuntimeResultType runtimeResultType;
	private String output;
	private String command;
	private Path directory;
	private Map enviroment;
	private Integer timeout;
	

	public String getOutput() {
		return output;
	}

	public void setOutput(String output) {
		this.output = output;
	}

	public RuntimeResultType getRuntimeResultType() {
		return runtimeResultType;
	}

	public void setRuntimeResultType(RuntimeResultType runtimeResultType) {
		this.runtimeResultType = runtimeResultType;
	}
	
	public Boolean is(RuntimeResultType runtimeResultType){
		return this.runtimeResultType.equals(runtimeResultType);
	}
	
	public Boolean isSuccess() {
		return is(RuntimeResultType.SUCCESS);
	}
	
	public Boolean isError() {
		return is(RuntimeResultType.ERROR);
	}

	public String getCommand() {
		return command;
	}

	public void setCommand(String command) {
		this.command = command;
	}

	public Path getDirectory() {
		return directory;
	}

	public void setDirectory(Path directory) {
		this.directory = directory;
	}

	public Map getEnviroment() {
		return enviroment;
	}

	public void setEnviroment(Map enviroment) {
		this.enviroment = enviroment;
	}

	public Integer getTimeout() {
		return timeout;
	}

	public void setTimeout(Integer timeout) {
		this.timeout = timeout;
	}

	public Integer getExitValue() {
		return exitValue;
	}

	public void setExitValue(Integer exitValue) {
		this.exitValue = exitValue;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy