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