2 * ============LICENSE_START=======================================================
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
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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.onap.aai.sparky.sync;
25 import java.text.SimpleDateFormat;
26 import java.util.Date;
29 * The Class SynchronizerConstants.
31 public final class SynchronizerConstants {
32 // Error values for invalid user input
33 public static final int DEFAULT_CONFIG_ERROR_INT_VALUE = Integer.MAX_VALUE;
34 public static final Date DEFAULT_CONFIG_ERROR_DATE_VALUE = new Date(Long.MAX_VALUE);
35 public static final SimpleDateFormat SIMPLE_DATE_FORMAT =
36 new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
38 public static final String DEPTH_MODIFIER = "?depth=0";
39 public static final String DEPTH_ALL_MODIFIER = "?depth=all";
40 public static final String DEPTH_AND_NODES_ONLY_MODIFIER = "?depth=0&nodes-only";
41 public static final String NODES_ONLY_MODIFIER = "?nodes-only";
43 // constants for scheduling synchronizer
44 public static final int COMPONENTS_IN_TIMESTAMP = 2;
45 public static final String DEFAULT_INITIAL_DELAY_IN_MS = "0";
46 public static final String DEFAULT_TASK_FREQUENCY_IN_DAY = "0";
47 public static final String DEFAULT_START_TIMESTAMP = "05:00:00 UTC";
48 public static final long DELAY_NO_STARTUP_SYNC_IN_MS = 0;
49 public static final long DELAY_NO_PERIODIC_SYNC_IN_MS = 0;
50 public static final int IDX_TIME_IN_TIMESTAMP = 0;
51 public static final int IDX_TIMEZONE_IN_TIMESTAMP = 1;
52 public static final long MILLISEC_IN_A_MIN = 60000;
53 public static final long MILLISEC_IN_A_DAY = 24 * 60 * 60 * 1000;
54 public static final String TIME_STD = "GMT";
55 public static final String TIME_CONFIG_STD = "UTC";
56 public static final String TIMESTAMP24HOURS_PATTERN =
57 "([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9] UTC[+|-][0-5][0-9]:[0-5][0-9]";
60 * Instantiates a new synchronizer constants.
62 private SynchronizerConstants() {}