public class CommonUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MAX_EXECUTOR_POOL_SIZE
Default executor pool maximum size.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getCpuCores() |
static int |
getJdkVersion()
get JDK version.
|
static int |
getMaxExecutorPoolSize() |
static long |
getOccupiedSpace(String folderPath) |
static long |
getUsableSpace(String dir)
NOTICE: This method is currently used only for data dir, thus using FSFactory to get file
|
static boolean |
hasSpace(String dir) |
static Object |
parseValue(TSDataType dataType,
String value) |
static Object |
parseValueForTest(TSDataType dataType,
String value) |
static int |
runCli(List<Class<? extends Runnable>> commands,
String[] args,
String cliName,
String cliDescription) |
public static final int MAX_EXECUTOR_POOL_SIZE
public static int getJdkVersion()
public static long getUsableSpace(String dir)
dir - directory pathpublic static boolean hasSpace(String dir)
public static long getOccupiedSpace(String folderPath) throws IOException
IOExceptionpublic static Object parseValue(TSDataType dataType, String value) throws QueryProcessException
public static Object parseValueForTest(TSDataType dataType, String value) throws QueryProcessException
public static int getCpuCores()
public static int getMaxExecutorPoolSize()
Copyright © 2022 The Apache Software Foundation. All rights reserved.