Search in sources :

Example 1 with ThreadPoolLoggingExecutor

use of org.opendaylight.openflowplugin.openflow.md.core.ThreadPoolLoggingExecutor in project openflowplugin by opendaylight.

the class OFPluginFlowTest method setUp.

/**
 * test setup
 * @throws InterruptedException
 */
@Before
public void setUp() throws InterruptedException {
    LOG.debug("openflowPluginProvider: " + openflowPluginProvider);
    scenarioPool = new ThreadPoolLoggingExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, SCENARIO_POOL_QUEUE, "scenario");
    // FIXME: plugin should provide service exposing startup result via future
    Thread.sleep(5000L);
}
Also used : ThreadPoolLoggingExecutor(org.opendaylight.openflowplugin.openflow.md.core.ThreadPoolLoggingExecutor) Before(org.junit.Before)

Example 2 with ThreadPoolLoggingExecutor

use of org.opendaylight.openflowplugin.openflow.md.core.ThreadPoolLoggingExecutor in project openflowplugin by opendaylight.

the class SalIntegrationTest method setUp.

/**
 * test setup
 * @throws InterruptedException
 */
@Before
public void setUp() throws InterruptedException {
    switchSim = new SimpleClient("localhost", 6653);
    scenarioPool = new ThreadPoolLoggingExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, SCENARIO_POOL_QUEUE, "scenario");
    Thread.sleep(5000L);
}
Also used : ThreadPoolLoggingExecutor(org.opendaylight.openflowplugin.openflow.md.core.ThreadPoolLoggingExecutor) SimpleClient(org.opendaylight.openflowjava.protocol.impl.clients.SimpleClient) Before(org.junit.Before)

Example 3 with ThreadPoolLoggingExecutor

use of org.opendaylight.openflowplugin.openflow.md.core.ThreadPoolLoggingExecutor in project openflowplugin by opendaylight.

the class OFPluginToLibraryTest method setUp.

/**
 * test setup
 * @throws InterruptedException
 */
@Before
public void setUp() throws InterruptedException {
    LOG.debug("openflowPluginProvider: " + openflowPluginProvider);
    switchSim = createSimpleClient();
    scenarioPool = new ThreadPoolLoggingExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, SCENARIO_POOL_QUEUE, "scenario");
    Thread.sleep(5000L);
}
Also used : ThreadPoolLoggingExecutor(org.opendaylight.openflowplugin.openflow.md.core.ThreadPoolLoggingExecutor) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)3 ThreadPoolLoggingExecutor (org.opendaylight.openflowplugin.openflow.md.core.ThreadPoolLoggingExecutor)3 SimpleClient (org.opendaylight.openflowjava.protocol.impl.clients.SimpleClient)1