Xiangdong Huang created IOTDB-5220:
--------------------------------------
Summary: provide new interface for starting datanode in other
programs
Key: IOTDB-5220
URL: https://issues.apache.org/jira/browse/IOTDB-5220
Project: Apache IoTDB
Issue Type: Improvement
Reporter: Xiangdong Huang
Current, if we want to start a datanode in other program, we have to call:
{code:java}
new DataNodeServerCommandLine().doMain(new String[]{"-s"});{code}
It is quite out of grace because .. if we start failed, the method will call
System.exit(-1) directly.
A better and general interface is return true or false or some other status.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)