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