@Singleton public class ShellCommandUtilityWrapper extends Object
ShellCommandUtil
utility.
Simply delegates to the utility. It's intended to be used instead of directly invoking the utility class.
Classes using the wrapper will be decoupled from the static utility; thus can be used and tested easily.Constructor and Description |
---|
ShellCommandUtilityWrapper() |
Modifier and Type | Method and Description |
---|---|
ShellCommandUtil.Result |
runCommand(String[] args) |
ShellCommandUtil.Result |
runCommand(String[] args,
Map<String,String> vars) |
public ShellCommandUtil.Result runCommand(String[] args) throws IOException, InterruptedException
IOException
InterruptedException
public ShellCommandUtil.Result runCommand(String[] args, Map<String,String> vars) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2022 Apache Software Foundation. All rights reserved.