public class AndroidRemoteContext extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
ANDROID_COMMAND_TIMEOUT_MS
Interval during which an emulator command should complete.
|
protected hudson.model.AbstractBuild<?,?> |
build |
protected hudson.Launcher |
launcher |
protected static int |
PORT_RANGE_END |
protected static int |
PORT_RANGE_START |
protected org.jvnet.hudson.plugins.port_allocator.PortAllocationManager |
portAllocator |
protected String |
serial |
コンストラクタと説明 |
---|
AndroidRemoteContext(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.plugins.android_emulator.sdk.AndroidSdk sdk) |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
adbServerPort() |
void |
cleanUp() |
io.swagger.client.model.DeviceListResponseDevices |
getDevice() |
hudson.Launcher.ProcStarter |
getProcStarter()
Sets up a standard
Launcher.ProcStarter for the current context. |
hudson.Launcher.ProcStarter |
getProcStarter(hudson.util.ArgumentListBuilder command)
Sets up a standard
Launcher.ProcStarter for the current adb environment,
ready to execute the given command. |
hudson.util.ArgumentListBuilder |
getToolCommand(hudson.plugins.android_emulator.sdk.Tool tool,
String args)
Generates a ready-to-use ArgumentListBuilder for one of the Android SDK tools,
based on the current context.
|
hudson.Launcher.ProcStarter |
getToolProcStarter(hudson.plugins.android_emulator.sdk.Tool tool,
String args)
Generates a ready-to-use ProcStarter for one of the Android SDK tools,
based on the current context.
|
hudson.Launcher |
launcher() |
hudson.model.BuildListener |
listener() |
PrintStream |
logger() |
hudson.plugins.android_emulator.sdk.AndroidSdk |
sdk() |
String |
serial() |
void |
setDevice(io.swagger.client.model.DeviceListResponseDevices device) |
public static final int ANDROID_COMMAND_TIMEOUT_MS
protected static final int PORT_RANGE_START
protected static final int PORT_RANGE_END
protected String serial
protected org.jvnet.hudson.plugins.port_allocator.PortAllocationManager portAllocator
protected hudson.model.AbstractBuild<?,?> build
protected hudson.Launcher launcher
public AndroidRemoteContext(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, hudson.plugins.android_emulator.sdk.AndroidSdk sdk) throws InterruptedException, IOException
public void cleanUp()
public int adbServerPort()
public String serial()
public hudson.model.BuildListener listener()
public hudson.Launcher launcher()
public hudson.plugins.android_emulator.sdk.AndroidSdk sdk()
public PrintStream logger()
public hudson.Launcher.ProcStarter getProcStarter() throws IOException, InterruptedException
Launcher.ProcStarter
for the current context.IOException
InterruptedException
public hudson.Launcher.ProcStarter getProcStarter(hudson.util.ArgumentListBuilder command) throws IOException, InterruptedException
Launcher.ProcStarter
for the current adb environment,
ready to execute the given command.command
- What command to runIOException
InterruptedException
public hudson.util.ArgumentListBuilder getToolCommand(hudson.plugins.android_emulator.sdk.Tool tool, String args)
tool
- The Android tool to run.args
- Any extra arguments for the command.public hudson.Launcher.ProcStarter getToolProcStarter(hudson.plugins.android_emulator.sdk.Tool tool, String args) throws IOException, InterruptedException
tool
- The Android tool to run.args
- Any extra arguments for the command.IOException
InterruptedException
public io.swagger.client.model.DeviceListResponseDevices getDevice()
public void setDevice(io.swagger.client.model.DeviceListResponseDevices device)
Copyright © 2016–2018. All rights reserved.