public abstract class BasicAffinityManager extends Object implements AffinityManager
Constructor and Description |
---|
BasicAffinityManager() |
Modifier and Type | Method and Description |
---|---|
void |
attachThreadToDevice(long threadId,
Integer deviceId)
This method attaches specified thread (by Id) to specified device
|
void |
attachThreadToDevice(Thread thread,
Integer deviceId)
This method attaches specified thread to specified device
|
Integer |
getDeviceForCurrentThread()
This method returns deviceId for current thread
|
Integer |
getDeviceForThread(long threadId)
This method returns
|
Integer |
getDeviceForThread(Thread thread)
This method returns deviceId for specified thread
|
int |
getNumberOfDevices()
This method returns number of available devices
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
touch, touch
public Integer getDeviceForCurrentThread()
AffinityManager
getDeviceForCurrentThread
in interface AffinityManager
public Integer getDeviceForThread(Thread thread)
AffinityManager
getDeviceForThread
in interface AffinityManager
public Integer getDeviceForThread(long threadId)
AffinityManager
getDeviceForThread
in interface AffinityManager
public void attachThreadToDevice(Thread thread, Integer deviceId)
AffinityManager
attachThreadToDevice
in interface AffinityManager
public void attachThreadToDevice(long threadId, Integer deviceId)
AffinityManager
attachThreadToDevice
in interface AffinityManager
threadId
- java ID of the threadpublic int getNumberOfDevices()
AffinityManager
getNumberOfDevices
in interface AffinityManager
Copyright © 2016. All Rights Reserved.