Add an empty function to start potential associated processes
This function may be utilized to start processes that presto may
need. By default, nothing is changed from previous behavior.
@@ -175,6 +175,8 @@ public class PrestoServer
injector.getInstance(NodeTtlFetcherManager.class).loadNodeTtlFetcher();
injector.getInstance(ClusterTtlProviderManager.class).loadClusterTtlProvider();
+ startAssociatedProcesses();
+
injector.getInstance(Announcer.class).start();
log.info("======== SERVER STARTED ========");
@@ -190,6 +192,10 @@ public class PrestoServer
return ImmutableList.of();
}
+ protected void startAssociatedProcesses()
+ {
+ }
+
private static void updateConnectorIds(Announcer announcer, CatalogManager metadata, ServerConfig serverConfig, NodeSchedulerConfig schedulerConfig)
{
// get existing announcement
