2 * ============LICENSE_START===================================================
3 * SPARKY (AAI UI service)
4 * ============================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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=====================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
25 package org.onap.aai.sparky.sync;
27 import java.text.SimpleDateFormat;
28 import java.util.Date;
31 * The Class SynchronizerConstants.
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 public static final SimpleDateFormat SIMPLE_DATE_FORMAT =
38 new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
40 public static final String DEPTH_MODIFIER = "?depth=0";
41 public static final String DEPTH_ALL_MODIFIER = "?depth=all";
42 public static final String DEPTH_AND_NODES_ONLY_MODIFIER = "?depth=0&nodes-only";
43 public static final String NODES_ONLY_MODIFIER = "?nodes-only";
45 // constants for scheduling synchronizer
46 public static final int COMPONENTS_IN_TIMESTAMP = 2;
47 public static final String DEFAULT_INITIAL_DELAY_IN_MS = "0";
48 public static final String DEFAULT_TASK_FREQUENCY_IN_DAY = "0";
49 public static final String DEFAULT_START_TIMESTAMP = "05:00:00 UTC";
50 public static final long DELAY_NO_STARTUP_SYNC_IN_MS = 0;
51 public static final long DELAY_NO_PERIODIC_SYNC_IN_MS = 0;
52 public static final int IDX_TIME_IN_TIMESTAMP = 0;
53 public static final int IDX_TIMEZONE_IN_TIMESTAMP = 1;
54 public static final long MILLISEC_IN_A_MIN = 60000;
55 public static final long MILLISEC_IN_A_DAY = 24 * 60 * 60 * 1000;
56 public static final String TIME_STD = "GMT";
57 public static final String TIME_CONFIG_STD = "UTC";
58 public static final String TIMESTAMP24HOURS_PATTERN =
59 "([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9] UTC[+|-][0-5][0-9]:[0-5][0-9]";
62 * Instantiates a new synchronizer constants.
64 private SynchronizerConstants() {}