test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/config/ConfigurationUtilsTest.java
test_class.identifier: ConfigurationUtilsTest
test_case.body: @Test
      public void testGetServerShutdownTimeout () {
          System.setProperty(SHUTDOWN_WAIT_KEY, " 10000");
          Assertions.assertEquals(10000, ConfigurationUtils.getServerShutdownTimeout());
          System.clearProperty(SHUTDOWN_WAIT_KEY);
      }
test_case.class_method_signature: ConfigurationUtilsTest.testGetServerShutdownTimeout()
test_case.full_signature: @Test public void testGetServerShutdownTimeout()
test_case.identifier: testGetServerShutdownTimeout
test_case.invocations: setProperty assertEquals getServerShutdownTimeout clearProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetServerShutdownTimeout()
focal_class.declarator: logger = LoggerFactory.getLogger(ConfigurationUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(ConfigurationUtils.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/config/ConfigurationUtils.java
focal_class.identifier: ConfigurationUtils
focal_class.class_method_signature: ConfigurationUtils.getSystemConfiguration()
focal_class.full_signature: public static Configuration getSystemConfiguration()
focal_class.identifier: getSystemConfiguration
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Configuration
focal_class.signature: Configuration getSystemConfiguration()
focal_class.class_method_signature: ConfigurationUtils.getEnvConfiguration()
focal_class.full_signature: public static Configuration getEnvConfiguration()
focal_class.identifier: getEnvConfiguration
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Configuration
focal_class.signature: Configuration getEnvConfiguration()
focal_class.class_method_signature: ConfigurationUtils.getGlobalConfiguration()
focal_class.full_signature: public static Configuration getGlobalConfiguration()
focal_class.identifier: getGlobalConfiguration
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Configuration
focal_class.signature: Configuration getGlobalConfiguration()
focal_class.class_method_signature: ConfigurationUtils.getServerShutdownTimeout()
focal_class.full_signature: @SuppressWarnings("deprecation") public static int getServerShutdownTimeout()
focal_class.identifier: getServerShutdownTimeout
focal_class.modifiers: @SuppressWarnings("deprecation") public static
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getServerShutdownTimeout()
focal_class.class_method_signature: ConfigurationUtils.getProperty(String property)
focal_class.full_signature: public static String getProperty(String property)
focal_class.identifier: getProperty
focal_class.modifiers: public static
focal_class.parameters: (String property)
focal_class.return: String
focal_class.signature: String getProperty(String property)
focal_class.class_method_signature: ConfigurationUtils.getProperty(String property, String defaultValue)
focal_class.full_signature: public static String getProperty(String property, String defaultValue)
focal_class.identifier: getProperty
focal_class.modifiers: public static
focal_class.parameters: (String property, String defaultValue)
focal_class.return: String
focal_class.signature: String getProperty(String property, String defaultValue)
focal_class.class_method_signature: ConfigurationUtils.get(String property, int defaultValue)
focal_class.full_signature: public static int get(String property, int defaultValue)
focal_class.identifier: get
focal_class.modifiers: public static
focal_class.parameters: (String property, int defaultValue)
focal_class.return: int
focal_class.signature: int get(String property, int defaultValue)
focal_class.class_method_signature: ConfigurationUtils.parseProperties(String content)
focal_class.full_signature: public static Map<String, String> parseProperties(String content)
focal_class.identifier: parseProperties
focal_class.modifiers: public static
focal_class.parameters: (String content)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> parseProperties(String content)
focal_method.body: @SuppressWarnings("deprecation")
      public static int getServerShutdownTimeout() {
          int timeout = DEFAULT_SERVER_SHUTDOWN_TIMEOUT;
          Configuration configuration = getGlobalConfiguration();
          String value = StringUtils.trim(configuration.getString(SHUTDOWN_WAIT_KEY));
  
          if (value != null && value.length() > 0) {
              try {
                  timeout = Integer.parseInt(value);
              } catch (Exception e) {
                  // ignore
              }
          } else {
              value = StringUtils.trim(configuration.getString(SHUTDOWN_WAIT_SECONDS_KEY));
              if (value != null && value.length() > 0) {
                  try {
                      timeout = Integer.parseInt(value) * 1000;
                  } catch (Exception e) {
                      // ignore
                  }
              }
          }
          return timeout;
      }
focal_method.class_method_signature: ConfigurationUtils.getServerShutdownTimeout()
focal_method.full_signature: @SuppressWarnings("deprecation") public static int getServerShutdownTimeout()
focal_method.identifier: getServerShutdownTimeout
focal_method.invocations: getGlobalConfiguration trim getString length parseInt trim getString length parseInt
focal_method.modifiers: @SuppressWarnings("deprecation") public static
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int getServerShutdownTimeout()