2 * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowjava.protocol.impl.clients;
11 import com.google.common.util.concurrent.SettableFuture;
14 * Unifying interface for simple clients / switch simulators
16 * @author michal.polkorab
18 public interface OFClient extends Runnable {
21 * @return the isOnlineFuture which is set when client is started
23 SettableFuture<Boolean> getIsOnlineFuture();
26 * @return the scenarioDone when scenario is successfully finished
28 SettableFuture<Boolean> getScenarioDone();
31 * @param scenario list of desired actions
33 void setScenarioHandler(ScenarioHandler scenario);
36 * @param securedClient true is client should use encrypted communication,
39 void setSecuredClient(boolean securedClient);