public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}</BUG>
private BlockingQueue<Command> queue = new LinkedBlockingQueue<Command>();
private Map<String, DeviceInterface> deviceMap = new HashMap<String, DeviceInterface>();
<BUG>public GatewayCommandCallback() {

}</BUG>
public void addDeviceInterface(String deviceId, DeviceInterface device) {
deviceMap.put(deviceId, device);

import com.ibm.iotf.client.gateway.Command;
import com.ibm.iotf.client.gateway.GatewayCallback;
import com.ibm.iotf.client.gateway.GatewayClient;
import com.ibm.iotf.client.gateway.Notification;
public class GatewayCommandCallback implements GatewayCallback, Runnable {
private GatewayClient gateway = null;
private BlockingQueue<Command> queue = new LinkedBlockingQueue<Command>();
private Map<String, DeviceInterface> deviceMap = new HashMap<String, DeviceInterface>();
public GatewayCommandCallback(GatewayClient gateway) {
this.gateway = gateway;
}
public void addDeviceInterface(String deviceId, DeviceInterface device) {
deviceMap.put(deviceId, device);
