content: /**
   * Copyright (C) 2024 AIDC-AI
   *
   * 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.
   */
  package com.alibaba.langengine.hippo;
  
  import com.alibaba.langengine.core.util.WorkPropertiesUtils;
  
  
  public class HippoConfiguration {
  
      /**
       * hippo server url
       */
      public static final String HIPPO_SERVER_URL;
  
      /**
       * hippo username
       */
      public static final String HIPPO_USERNAME;
  
      /**
       * hippo password
       */
      public static final String HIPPO_PASSWORD;
      
      static {
          HIPPO_SERVER_URL = getConfigValue("hippo_server_url", "localhost:5432");
          HIPPO_USERNAME = getConfigValue("hippo_username", "hippo");
          HIPPO_PASSWORD = getConfigValue("hippo_password", "hippo");
      }
      
      private static String getConfigValue(String key, String defaultValue) {
          String value = WorkPropertiesUtils.get(key);
          return value != null ? value : defaultValue;
      }
  
  }