All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.ocpjava.protocol.impl.clients.OCPClient Maven / Gradle / Ivy

There is a newer version: 0.3.3
Show newest version
/*
 * Copyright (c) 2016 Foxconn Corporation 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
 */

package org.opendaylight.ocpjava.protocol.impl.clients;

import com.google.common.util.concurrent.SettableFuture;

/**
 * Unifying interface for simple clients / radioHead simulators
 * @author Marko Lai 
 */
public interface OCPClient extends Runnable {

    /**
     * @return the isOnlineFuture which is set when client is started
     */
    SettableFuture getIsOnlineFuture();

    /**
     * @return the scenarioDone when scenario is successfully finished
     */
    SettableFuture getScenarioDone();

    /**
     * @param scenario list of desired actions
     */
    void setScenarioHandler(ScenarioHandler scenario);

    /**
     * @param securedClient true is client should use encrypted communication,
     * false otherwise
     */
    void setSecuredClient(boolean securedClient);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy