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

co.elastic.support.util.SystemCommand Maven / Gradle / Ivy

There is a newer version: 9.2.2
Show newest version
/*
 * 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