- private static final EELFLogger log = EELFManager.getInstance().getLogger(ConfigComponentAdaptor.class);
-
- private static final String ACTION_PARAM = "action";
- private static final String ACTION_PREPARE = "prepare";
- private static final String ACTION_ACTIVATE = "activate";
-
- private static final String KEY_PUT = "put";
- private static final String KEY_GET = "get";
- private static final String KEY_CLI = "cli";
- private static final String KEY_ESCAPE_SQL = "escapeSql";
- private static final String KEY_XML_DOWNLOAD = "xml-download";
- private static final String KEY_XML_GET_RUNNING_CONF = "xml-getrunningconfig";
- private static final String KEY_DOWNLOAD_CLI_CONFIG = "DownloadCliConfig";
- private static final String KEY_GET_CLI_RUNNING_CONFIG = "GetCliRunningConfig";
-
- private static final String OPERATION_CREATE = "create";
- private static final String OPERATION_CHANGE = "change";
- private static final String OPERATION_SCALE = "scale";
-
- static final String USERNAME_PARAM = "User_name";
- static final String PASSWORD_PARAM = "Password";
- static final String HOST_IP_PARAM = "Host_ip_address";
- static final String PORT_NUMBER_PARAM = "Port_number";
- static final String GET_CONFIG_TEMPLATE_PARAM = "Get_config_template";
-
- private static final String CLI_OUTPUT_PARAM = "cliOutput";
- private static final String REQUEST_ID_PARAM = "request-id";
- private static final String CALLBACK_URL_PARAM = "callback-url";
- private static final String EQUIPMENT_NAME_PARAM = "equipment-name";
-
- private static final String XML_BUILDING_ERR_STR = "Error building the XML request: ";
- private static final String TEMPLATE_ERR_STR = "Template error: Matching \"}\" not found";
- private static final String SSH_JCRAFT_WRAPPER_ERR_STR = "Exception occurred while using sshJcraftWrapper";
- private static final String PROMPT_STR = "]]>]]>";
- private static final String RESPONSE_STR = "response=\n{}\n";
-
- private static final String SERVICE_INSTANCE_ID_ATTR = "service-data.service-information.service-instance-id";
- private static final String SVC_REQUEST_ID_ATTR = "service-data.appc-request-header.svc-request-id";
-
- private static final String RPC_REPLY_END_TAG = "</rpc-reply>";
- private static final String BASE_REQUEST = "BASE";
-
- private String configUrl;
- private String configUser;
- private String configPassword;
- private String auditUrl;
- private String auditUser;
- private String auditPassword;
- private String configCallbackUrl;
- private String auditCallbackUrl;
+ private static EELFLogger log = EELFManager.getInstance().getLogger(ConfigComponentAdaptor.class);
+ DebugLog debugLog = new DebugLog();
+ private String configUrl = null;
+ private String configUser = null;
+ private String configPassword = null;
+ private String auditUrl = null;
+ private String auditUser = null;
+ private String auditPassword = null;
+
+ public String getConfigUrl() {
+ return configUrl;
+ }
+
+ public String getConfigUser() {
+ return configUser;
+ }
+
+ public String getConfigPassword() {
+ return configPassword;
+ }
+
+ public String getAuditUrl() {
+ return auditUrl;
+ }
+
+ public String getAuditUser() {
+ return auditUser;
+ }
+
+ public String getAuditPassword() {
+ return auditPassword;
+ }
+
+ public String getConfigCallbackUrl() {
+ return configCallbackUrl;
+ }
+
+ public String getAuditCallbackUrl() {
+ return auditCallbackUrl;
+ }
+
+ private String configCallbackUrl = null;
+ private String auditCallbackUrl = null;
+ private int DEFAULT_TIMEOUT_GETRUNNING_CLI = 120 * 1000 ;