2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017-2018 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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.aai.sparky.sync;
23 import java.text.SimpleDateFormat;
24 import java.util.Date;
27 * The Class SynchronizerConstants.
29 public final class SynchronizerConstants {
30 // Error values for invalid user input
31 public static final int DEFAULT_CONFIG_ERROR_INT_VALUE = Integer.MAX_VALUE;
32 public static final Date DEFAULT_CONFIG_ERROR_DATE_VALUE = new Date(Long.MAX_VALUE);
33 public static final SimpleDateFormat SIMPLE_DATE_FORMAT =
34 new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
36 public static final String DEPTH_MODIFIER = "?depth=0";
37 public static final String DEPTH_ALL_MODIFIER = "?depth=all";
38 public static final String DEPTH_AND_NODES_ONLY_MODIFIER = "?depth=0&nodes-only";
39 public static final String NODES_ONLY_MODIFIER = "?nodes-only";
41 // constants for scheduling synchronizer
42 public static final int COMPONENTS_IN_TIMESTAMP = 2;
43 public static final String DEFAULT_INITIAL_DELAY_IN_MS = "0";
44 public static final String DEFAULT_TASK_FREQUENCY_IN_DAY = "0";
45 public static final String DEFAULT_START_TIMESTAMP = "05:00:00 UTC";
46 public static final long DELAY_NO_STARTUP_SYNC_IN_MS = 0;
47 public static final long DELAY_NO_PERIODIC_SYNC_IN_MS = 0;
48 public static final int IDX_TIME_IN_TIMESTAMP = 0;
49 public static final int IDX_TIMEZONE_IN_TIMESTAMP = 1;
50 public static final long MILLISEC_IN_A_MIN = 60000;
51 public static final long MILLISEC_IN_A_DAY = 24 * 60 * 60 * 1000;
52 public static final String TIME_STD = "GMT";
53 public static final String TIME_CONFIG_STD = "UTC";
54 public static final String TIMESTAMP24HOURS_PATTERN =
55 "([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9] UTC[+|-][0-5][0-9]:[0-5][0-9]";
58 * Instantiates a new synchronizer constants.
60 private SynchronizerConstants() {}