Change Password

Please enter the password.
Please enter the password. Between 8-64 characters. Not identical to your email address. Contain at least 3 of: uppercase, lowercase, numbers, and special characters.
Please enter the password.
Submit

Change Nickname

Current Nickname:
Submit

Apply New License

License Detail

Please complete this required field.

  • Ultipa Graph V4

Standalone

Please complete this required field.

Please complete this required field.

The MAC address of the server you want to deploy.

Please complete this required field.

Please complete this required field.

Cancel
Apply
ID
Product
Status
Cores
Applied Validity Period(days)
Effective Date
Excpired Date
Mac Address
Apply Comment
Review Comment
Close
Profile
  • Full Name:
  • Phone:
  • Company:
  • Company Email:
  • Country:
  • Language:
Change Password
Apply

You have no license application record.

Apply
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

Product Created On ID Amount (USD) Invoice
Product Created On ID Amount (USD) Invoice

No Invoice

v4.5
Search
    Français
    v4.5

      Autres

      Cette section introduit des méthodes sur un objet Connection pour vérifier les statistiques du serveur de base de données et la connexion du pilote.

      Chaque exemple se concentre uniquement sur l'utilisation de la méthode. Pour un exemple de code complet, veuillez vous référer à l'exemple complet.

      stats()

      Récupère les statistiques du serveur de base de données.

      Paramètres :

      • RequestConfig (Optionnel) : Paramètres de configuration pour la requête.

      Retours :

      • Stats : Les statistiques du serveur récupérées.

      Stats stats = client.stats();
      System.out.println("CPU usage: " + stats.getCpuUsage() + "%");
      System.out.println("Memory usage: " + stats.getMemUsage() + "MB");
      System.out.println("Expiration date: " + stats.getExpiredDate());
      System.out.println("CPU cores: " + stats.getCpuCores());
      System.out.println("Company: " + stats.getCompany());
      System.out.println("Server type: " + stats.getServerType());
      System.out.println("Version: " + stats.getVersion());
      

      CPU usage: 111.151108%
      Memory usage: 10939.929688MB
      Expiration date: Thu Dec 26 23:59:59 2024
      CPU cores: 80
      Company: ultipa
      Server type: CT
      Version: htap_beta.4.4.47-b4.4.0-tv-ui
      

      test()

      Teste la connexion du pilote et du serveur de base de données.

      Paramètres :

      • RequestConfig (Optionnel) : Paramètres de configuration pour la requête.

      Retours :

      • Response : Résultat de la requête.

      Response response = client.test();
      System.out.println(response.getStatus().getErrorCode());
      

      SUCCESS
      

      Exemple Complet

      package com.ultipa.www.sdk.api;
      
      import com.ultipa.sdk.connect.Connection;
      import com.ultipa.sdk.connect.conf.RequestConfig;
      import com.ultipa.sdk.connect.conf.UltipaConfiguration;
      import com.ultipa.sdk.connect.driver.UltipaClientDriver;
      import com.ultipa.sdk.operate.response.Response;
      
      public class Main {
          public static void main(String[] args) {
               // Connection configurations
              UltipaConfiguration myConfig = UltipaConfiguration.config()
                  // URI example: .hosts("mqj4zouys.us-east-1.cloud.ultipa.com:60010")
                  .hosts("192.168.1.85:60061,192.168.1.86:60061,192.168.1.87:60061")
                  .username("<username>")
                  .password("<password>");
      
              UltipaClientDriver driver = null;
              try {
                  // Establishes connection to the database
                  driver = new UltipaClientDriver(myConfig);
                  Connection client = driver.getConnection();
                
                  // Request configurations
                 RequestConfig config = new RequestConfig();
                 config.setUseMaster(true);
                 
                 // Test connection
                 Response response = client.test();
                 System.out.println(response.getStatus().getErrorCode());
              } finally {
                  if (driver != null) {
                      driver.close();
                  }
              }
          }
      }
      
      Please complete the following information to download this book
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写