com.intel.bluetooth
Class EmulatorTestsHelper

java.lang.Object
  extended by com.intel.bluetooth.EmulatorTestsHelper

public class EmulatorTestsHelper
extends Object


Constructor Summary
EmulatorTestsHelper()
           
 
Method Summary
static Thread runNewEmulatorStack(Runnable runnable)
          Helper function to execute code using different Bluetooth address
static void startInProcessServer()
          Start air simulator server as in process server.
static void stopInProcessServer()
          Shutdown all running Stacks and air simulator server.
static void useThreadLocalEmulator()
          API that enables the use of Multiple Bluetooth Adapters in parallel in the same JVM.
static void useThreadLocalEmulator(String deviceID, String localAddress)
          API that enables the use of Multiple Bluetooth Adapters in parallel in the same JVM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmulatorTestsHelper

public EmulatorTestsHelper()
Method Detail

startInProcessServer

public static void startInProcessServer()
Start air simulator server as in process server.


stopInProcessServer

public static void stopInProcessServer()
Shutdown all running Stacks and air simulator server.


useThreadLocalEmulator

public static void useThreadLocalEmulator()
                                   throws BluetoothStateException
API that enables the use of Multiple Bluetooth Adapters in parallel in the same JVM. Each thread can call this function to initialize new adapter.

Throws:
BluetoothStateException - if the Bluetooth system emulator could not be initialized
See Also:
BlueCoveImpl.useThreadLocalBluetoothStack()

useThreadLocalEmulator

public static void useThreadLocalEmulator(String deviceID,
                                          String localAddress)
                                   throws BluetoothStateException
API that enables the use of Multiple Bluetooth Adapters in parallel in the same JVM. Each thread can call this function to initialize new adapter.

Parameters:
deviceID - select bluetooth adapter by its system ID, can be null
localAddress - select bluetooth adapter by its Address, can be null
Throws:
BluetoothStateException - if the Bluetooth system emulator could not be initialized
See Also:
BlueCoveImpl.useThreadLocalBluetoothStack()

runNewEmulatorStack

public static Thread runNewEmulatorStack(Runnable runnable)
                                  throws BluetoothStateException
Helper function to execute code using different Bluetooth address

Parameters:
runnable - to be executed using another stack
Returns:
created and running Thread that will execute runnable in a new ThreadGroup
Throws:
BluetoothStateException - if the Bluetooth system emulator could not be initialized


JSR-82 Javadocs Apache License, Version 2.0 Copyright © 2001-2009 Motorola, Inc. ALL RIGHTS RESERVED.
BlueCove Javadocs
Apache License, Version 2.0 Copyright © 2004-2009 BlueCove Team.