public class AppleCoreSimulatorServiceController extends Object
CoreSimulator
and related launchd
services.Constructor and Description |
---|
AppleCoreSimulatorServiceController(ProcessExecutor processExecutor) |
Modifier and Type | Method and Description |
---|---|
Optional<Path> |
getCoreSimulatorServicePath(UserIdFetcher userIdFetcher)
Returns the path on disk to the running Core Simulator service, if any.
|
boolean |
killSimulatorProcesses()
Kills any running simulator processes or services.
|
public AppleCoreSimulatorServiceController(ProcessExecutor processExecutor)
public Optional<Path> getCoreSimulatorServicePath(UserIdFetcher userIdFetcher) throws IOException, InterruptedException
Optional.empty()
unless exactly one Core Simulator service is running.IOException
InterruptedException
public boolean killSimulatorProcesses() throws IOException, InterruptedException
IOException
InterruptedException