Class AbstractSnapshotBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- hudson.plugins.android_emulator.builder.AbstractBuilder
-
- hudson.plugins.android_emulator.snapshot.AbstractSnapshotBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
- Direct Known Subclasses:
SnapshotLoadBuilder
,SnapshotSaveBuilder
public abstract class AbstractSnapshotBuilder extends AbstractBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description String
name
Name of the snapshot involved.-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSnapshotBuilder(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected int
getCommandTimeout()
protected abstract String
getLogMessage(String snapshotName, int avdPort)
protected abstract String
getSnapshotAction()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
-
Methods inherited from class hudson.plugins.android_emulator.builder.AbstractBuilder
getAndroidSdk, getDeviceIdentifier, getDeviceTelnetPort, uninstallApk, uninstallApk, waitForCoreProcess
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Field Detail
-
name
@Exported public final String name
Name of the snapshot involved.
-
-
Constructor Detail
-
AbstractSnapshotBuilder
protected AbstractSnapshotBuilder(String name)
-
-
Method Detail
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
getCommandTimeout
protected int getCommandTimeout()
-
getSnapshotAction
protected abstract String getSnapshotAction()
-
-