co.elastic.support.util.SystemCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of diagnostics Show documentation
Show all versions of diagnostics Show documentation
Elastic Support Diagnostics Utilities
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package co.elastic.support.util;
import java.io.Closeable;
import java.util.List;
public abstract class SystemCommand implements Closeable {
public String osName;
public abstract String runCommand(String command);
public abstract void copyLogs(List entries, String logDir, String targetDir);
public abstract void copyLogsFromJournalctl(String serviceName, String targetDir);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy