2 * Copyright © 2017 Orange, Inc. 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.transportpce.common;
11 import java.util.concurrent.TimeUnit;
13 public final class Timeouts {
14 public static final long DATASTORE_READ = 1000;
15 public static final long DATASTORE_WRITE = 1000;
16 public static final long DATASTORE_DELETE = 1000;
18 // TODO remove '* 2' when renderer and olm is running in parallel
19 public static final long RENDERING_TIMEOUT = 240000 * 2;
20 public static final long OLM_TIMEOUT = 240000 * 2;
22 public static final long SERVICE_ACTIVATION_TEST_RETRY_TIME = 20000;
25 * Device read timeout in seconds.
27 public static final long DEVICE_READ_TIMEOUT = 240;
28 public static final TimeUnit DEVICE_READ_TIMEOUT_UNIT = TimeUnit.SECONDS;
30 public static final long DEVICE_WRITE_TIMEOUT = 240;
31 public static final TimeUnit DEVICE_WRITE_TIMEOUT_UNIT = TimeUnit.SECONDS;
33 //TODO add timeouts for device setup (olm power setup etc.)