fix some compilation warnings
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / Timeouts.java
1 /*
2  * Copyright © 2017 Orange, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.transportpce.common;
10
11 import java.util.concurrent.TimeUnit;
12
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;
17
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;
21
22     public static final long SERVICE_ACTIVATION_TEST_RETRY_TIME = 20000;
23
24     /**
25      * Device read timeout in seconds.
26      */
27     public static final long DEVICE_READ_TIMEOUT = 240;
28     public static final TimeUnit DEVICE_READ_TIMEOUT_UNIT = TimeUnit.SECONDS;
29
30     public static final long DEVICE_WRITE_TIMEOUT = 240;
31     public static final TimeUnit DEVICE_WRITE_TIMEOUT_UNIT = TimeUnit.SECONDS;
32
33     //TODO add timeouts for device setup (olm power setup etc.)
34
35     private Timeouts() {
36     }
37 }