Class SdkComponentInstaller
- java.lang.Object
-
- com.google.cloud.tools.managedcloudsdk.components.SdkComponentInstaller
-
public class SdkComponentInstaller extends Object
Install an SDK component.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
installComponent(SdkComponent component, ProgressListener progressListener, ConsoleListener consoleListener)
Install a component.void
installComponents(List<SdkComponent> components, ProgressListener progressListener, ConsoleListener consoleListener)
Install components.static SdkComponentInstaller
newComponentInstaller(OsInfo.Name osName, Path gcloudPath)
Configure and create a new Component Installer instance.
-
-
-
Method Detail
-
installComponent
public void installComponent(SdkComponent component, ProgressListener progressListener, ConsoleListener consoleListener) throws InterruptedException, CommandExitException, CommandExecutionException
Install a component.- Parameters:
component
- component to installprogressListener
- listener to action progress feedbackconsoleListener
- listener to process console feedback- Throws:
InterruptedException
CommandExitException
CommandExecutionException
-
installComponents
public void installComponents(List<SdkComponent> components, ProgressListener progressListener, ConsoleListener consoleListener) throws InterruptedException, CommandExitException, CommandExecutionException
Install components.- Parameters:
components
- list of components to installprogressListener
- listener to action progress feedbackconsoleListener
- listener to process console feedback- Throws:
InterruptedException
CommandExitException
CommandExecutionException
-
newComponentInstaller
public static SdkComponentInstaller newComponentInstaller(OsInfo.Name osName, Path gcloudPath)
Configure and create a new Component Installer instance.- Parameters:
gcloudPath
- full path to gcloud in the Cloud SDK- Returns:
- a new configured Cloud SDK component installer
-
-