public class ContextHolder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEVICES_TO_BAN |
Constructor and Description |
---|
ContextHolder() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
Configure the given information
based on the device
|
int |
deviceNum()
Get the number of devices
|
int |
getDeviceForThread()
Get the device number for a particular host thread
|
static ContextHolder |
getInstance()
Singleton pattern
|
Map<String,Integer> |
getThreads() |
void |
setNumDevices(int numDevices) |
public static final String DEVICES_TO_BAN
public static ContextHolder getInstance()
public int deviceNum()
public void configure()
public void setNumDevices(int numDevices)
public int getDeviceForThread()
Copyright © 2016. All Rights Reserved.