blob: 010f7a24657a4eac81ff03cc35bb69acf9c77728 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
/*-
* ============LICENSE_START=======================================================
* org.openecomp.aai
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
*/
package org.openecomp.aai.util;
import org.openecomp.aai.db.props.AAIProperties;
public final class AAIConstants {
//
//
/** Default to unix file separator if system property file.separator is null */
public static final String AAI_FILESEP = (System.getProperty("file.separator") == null) ? "/" : System.getProperty("file.separator");
//
/** Default to opt aai if system property aai.home is null, using file.separator */
public static final String AAI_HOME = (System.getProperty("AJSC_HOME") == null) ? AAI_FILESEP + "opt" + AAI_FILESEP + "app" + AAI_FILESEP +"aai" : System.getProperty("AJSC_HOME");
public static final String AAI_BUNDLECONFIG_NAME = (System.getProperty("BUNDLECONFIG_DIR") == null) ? "bundleconfig" : System.getProperty("BUNDLECONFIG_DIR");
public static final String AAI_HOME_BUNDLECONFIG = (System.getProperty("AJSC_HOME") == null) ? AAI_FILESEP + "opt" + AAI_FILESEP + "app" + AAI_FILESEP + "aai" + AAI_FILESEP + AAI_BUNDLECONFIG_NAME : System.getProperty("AJSC_HOME")+ AAI_FILESEP + AAI_BUNDLECONFIG_NAME;
/** etc directory, relative to AAI_HOME */
public static final String AAI_HOME_ETC = AAI_HOME_BUNDLECONFIG + AAI_FILESEP + "etc" + AAI_FILESEP;
public static final String AAI_HOME_ETC_APP_PROPERTIES = AAI_HOME_ETC + "appprops" + AAI_FILESEP;
public static final String AAI_V2_OUTPUT_TRANSFORMS = AAIConstants.AAI_HOME_ETC_APP_PROPERTIES + AAIConstants.AAI_FILESEP + "output" + AAIConstants.AAI_FILESEP;
public static final String AAI_HOME_ETC_AUTH = AAI_HOME_ETC + "auth" + AAI_FILESEP;
public static final String AAI_CONFIG_FILENAME = AAI_HOME_ETC_APP_PROPERTIES + "aaiconfig.properties";
public static final String AAI_AUTH_CONFIG_FILENAME = AAI_HOME_ETC_AUTH + "aai_policy.json";
public static final String AAI_MECHID_CONFIG_FILENAME = AAI_HOME_ETC_APP_PROPERTIES + "mechIds.json";
public static final String AAI_HOME_ETC_QUERY = AAI_HOME_ETC + "query" + AAI_FILESEP + "stored-queries.properties";
public static final String REALTIME_DB_CONFIG = AAI_HOME_ETC_APP_PROPERTIES + "titan-realtime.properties";
public static final String CACHED_DB_CONFIG = AAI_HOME_ETC_APP_PROPERTIES + "titan-cached.properties";
public static final String AAI_HOME_ETC_OXM = AAI_HOME_ETC + "oxm" + AAI_FILESEP;
public static final String AAI_EVENT_DMAAP_PROPS = AAI_HOME_ETC_APP_PROPERTIES + "aaiEventDMaaPPublisher.properties";
public static final String AAI_PROV_LOGBACK_PROPS = "prov-logback.xml";
public static final String AAI_GETRES_LOGBACK_PROPS = "getres-logback.xml";
public static final String AAI_DELTOOL_LOGBACK_PROPS = "deltool-logback.xml";
public static final String AAI_UPDTOOL_LOGBACK_PROPS = "updtool-logback.xml";
public static final String AAI_PUTTOOL_LOGBACK_PROPS = "puttool-logback.xml";
public static final String AAI_POSTTOOL_LOGBACK_PROPS = "posttool-logback.xml";
public static final String AAI_NOTIFYSDNCTOOL_LOGBACK_PROPS = "notifysdnctool-logback.xml";
public static final String AAI_RSHIPTOOL_LOGBACK_PROPS = "rshiptool-logback.xml";
public static final String AAI_LOGBACK_PROPS = "logback.xml";
public static final String AAI_CREATE_DB_SCHEMA_LOGBACK_PROPS = "createDBSchema-logback.xml";
public static final String AAI_PULL_INV_DATA_LOGBACK_PROPS = "pullInvData-logback.xml";
public static final String AAI_DATA_GROOMING_LOGBACK_PROPS = "dataGrooming-logback.xml";
public static final String AAI_DATA_SNAPSHOT_LOGBACK_PROPS = "dataSnapshot-logback.xml";
public static final String AAI_SCHEMA_MOD_LOGBACK_PROPS = "schemaMod-logback.xml";
public static final String AAI_FORCE_DELETE_LOGBACK_PROPS = "forceDelete-logback.xml";
public static final String AAI_LOAD_DATA_DHV_LOGBACK_PROPS = "loadDataForDHV-logback.xml";
public static final String AVPN_INTERIM_LAG_INTERFACE = "aai.avpn.interim.laginterface";
public static final String AAI_TRUSTSTORE_FILENAME = "aai.truststore.filename";
public static final String AAI_TRUSTSTORE_PASSWD = "aai.truststore.passwd";
public static final String AAI_KEYSTORE_FILENAME = "aai.keystore.filename";
public static final String AAI_KEYSTORE_PASSWD = "aai.keystore.passwd";
public static final String AAI_OLDSERVER_URL_BASE = "aai.oldserver.url.base";
public static final String AAI_SERVER_URL_BASE = "aai.server.url.base";
public static final String AAI_SERVER_URL = "aai.server.url";
public static final String AAI_OLDSERVER_URL = "aai.oldserver.url";
public static final String AAI_GLOBAL_CALLBACK_URL = "aai.global.callback.url";
public static final String AAI_LOCAL_REST = "https://localhost:%d/aai/" + AAIProperties.LATEST + "/";
public static final int AAI_RESOURCES_PORT = 8447;
public static final int AAI_QUERY_PORT = 8446;
public static final int AAI_LEGACY_PORT = 8443;
public static final String AAI_DEFAULT_API_VERSION = "v7";
public static final String AAI_DEFAULT_API_VERSION_PROP = "aai.default.api.version";
public static final String AAI_NOTIFICATION_CURRENT_VERSION = "aai.notification.current.version";
public static final String AAI_NODENAME = "aai.config.nodename";
public static final String AAI_LOGGING_HBASE_INTERCEPTOR = "aai.logging.hbase.interceptor";
public static final String AAI_LOGGING_HBASE_ENABLED = "aai.logging.hbase.enabled";
public static final String AAI_LOGGING_HBASE_LOGREQUEST = "aai.logging.hbase.logrequest";
public static final String AAI_LOGGING_HBASE_LOGRESPONSE = "aai.logging.hbase.logresponse";
public static final String AAI_LOGGING_TRACE_ENABLED = "aai.logging.trace.enabled";
public static final String AAI_LOGGING_TRACE_LOGREQUEST = "aai.logging.trace.logrequest";
public static final String AAI_LOGGING_TRACE_LOGRESPONSE = "aai.logging.trace.logresponse";
public static final String AAI_CONFIG_CHECKINGTIME = "aai.config.checktime";
public static final String AAI_DBMODEL_FILENAME = "aai.dbmodel.filename";
public static final String AAI_RESVERSION_ENABLEFLAG = "aai.resourceversion.enableflag";
public static final int AAI_MAX_TRANS_RETRIES = 5;
public static final long AAI_TRANS_RETRY_SLEEP_MSEC = 500;
public static final int AAI_GROOMING_DEFAULT_MAX_FIX = 150;
public static final int AAI_GROOMING_DEFAULT_SLEEP_MINUTES = 7;
public static final int AAI_DUPETOOL_DEFAULT_MAX_FIX = 25;
public static final int AAI_DUPETOOL_DEFAULT_SLEEP_MINUTES = 7;
public static final String LOGGING_MAX_STACK_TRACE_ENTRIES = "aai.logging.maxStackTraceEntries";
/** Default to skipping real-time grooming unless system property aai.skiprealtime.grooming is set to "false" */
public static final String AAI_SKIPREALTIME_GROOMING = (System.getProperty("aai.skiprealtime.grooming") == null) ? "true" : System.getProperty("aai.skiprealtime.grooming");
/*** UEB ***/
public static final String UEB_PUB_PARTITION_AAI = "AAI";
public static final String UEB_PUB_AAI_VCE_INTERFACE_DATA_TOPIC = "ueb.pub.aai.vce.interface.data.topic";
/** Service description for Hosted Communications */
public static final String AAI_SERVICEDESCRIPTION_HOSTEDCOMM = "aai.servicedescription.hostedcomm";
/** Service description for Mobility */
public static final String AAI_SERVICEDESCRIPTION_MOBILITY = "aai.servicedescription.mobility";
/** Service description for Mobility */
public static final String AAI_SERVICEDESCRIPTION_VUSP = "aai.servicedescription.vusp";
/** Service description for Vvig */
public static final String AAI_SERVICEDESCRIPTION_VVIG = "aai.servicedescription.vvig";
/** Service description for LRSI */
public static final String AAI_SERVICEDESCRIPTION_LRSI = "aai.servicedescription.lrsi";
/**
* Instantiates a new AAI constants.
*/
private AAIConstants() {
// prevent instantiation
}
}
|