Installing and Running Doradus : Embedding Doradus In Another Application : DoradusServer.main() and DoradusServer.startServer()

DoradusServer.main() and DoradusServer.startServer()
This static method is passed runtime arguments, if any as a String[]. Example:
import com.dell.doradus.core.DoradusServer;
...
String[] args = new String[] {"-restport", "5711"};
DoradusServer.main(args); // blocks until shutdown
This example overrides the parameter restport, setting it to 5711. When main() is called, Doradus starts all internal services and the storage_services configured in doradus.yaml. However, main() does not return until the process receives a shutdown signal (e.g., Ctrl-C or System.exit() is called).