/*******************************************************************************
 * Copyright (c) 2011, 2016 Eurotech and/or its affiliates and others
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Eurotech - initial API and implementation
 *
 *******************************************************************************/
package org.eclipse.kapua.service.device.management.command;

import org.eclipse.kapua.KapuaException;
import org.eclipse.kapua.model.id.KapuaId;
import org.eclipse.kapua.service.KapuaService;

/**
 * Id generator service implementation.<br>
 * This implementation return a sequence.
 * 
 * @since 1.0
 *
 */
public interface DeviceCommandManagementService extends KapuaService
{

    /**
     * Execute the given device command with the provided options
     * 
     * @param scopeId
     * @param deviceId
     * @param commandInput
     * @param timeout command timeout
     * @return
     * @throws KapuaException
     */
    public DeviceCommandOutput exec(KapuaId scopeId, KapuaId deviceId, DeviceCommandInput commandInput, Long timeout)
        throws KapuaException;
}
