Initial commit for AAI-UI(sparky-backend)
[aai/sparky-be.git] / src / main / java / org / openecomp / sparky / synchronizer / config / SynchronizerConstants.java
1 /**
2  * ============LICENSE_START===================================================
3  * SPARKY (AAI UI service)
4  * ============================================================================
5  * Copyright © 2017 AT&T Intellectual Property.
6  * Copyright © 2017 Amdocs
7  * All rights reserved.
8  * ============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=====================================================
21  *
22  * ECOMP and OpenECOMP are trademarks
23  * and service marks of AT&T Intellectual Property.
24  */
25
26 package org.openecomp.sparky.synchronizer.config;
27
28 import java.util.Date;
29
30 /**
31  * The Class SynchronizerConstants.
32  */
33 public final class SynchronizerConstants {
34   // Error values for invalid user input
35   public static final int DEFAULT_CONFIG_ERROR_INT_VALUE = Integer.MAX_VALUE;
36   public static final Date DEFAULT_CONFIG_ERROR_DATE_VALUE = new Date(Long.MAX_VALUE);
37
38   // constants for scheduling synchronizer
39   public static final int COMPONENTS_IN_TIMESTAMP = 2;
40   public static final String DEFAULT_INITIAL_DELAY_IN_MS = "0";
41   public static final String DEFAULT_TASK_FREQUENCY_IN_DAY = "0";
42   public static final String DEFAULT_START_TIMESTAMP = "05:00:00 UTC";
43   public static final long DELAY_NO_STARTUP_SYNC_IN_MS = 0;
44   public static final long DELAY_NO_PERIODIC_SYNC_IN_MS = 0;
45   public static final int IDX_TIME_IN_TIMESTAMP = 0;
46   public static final int IDX_TIMEZONE_IN_TIMESTAMP = 1;
47   public static final long MILLISEC_IN_A_MIN = 60000;
48   public static final long MILLISEC_IN_A_DAY = 24 * 60 * 60 * 1000;
49   public static final String TIME_STD = "GMT";
50   public static final String TIME_CONFIG_STD = "UTC";
51   public static final String TIMESTAMP24HOURS_PATTERN =
52       "([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9] UTC[+|-][0-5][0-9]:[0-5][0-9]";
53
54
55
56   public static final String DEFAULT_SCROLL_CTX_TIME_TO_LIVE_IN_MIN = "5";
57   public static final String DEFAULT_NUM_SCROLL_CTX_ITEMS_TO_RETRIEVE_PER_REQ = "5000";
58
59   /**
60    * Instantiates a new synchronizer constants.
61    */
62   private SynchronizerConstants() {}
63 }