Class PinotServiceManager


  • public class PinotServiceManager
    extends Object
    PinotServiceManager is a user entry point to start Pinot instances in one process.
    • Constructor Detail

      • PinotServiceManager

        public PinotServiceManager​(String zkAddress,
                                   String clusterName)
      • PinotServiceManager

        public PinotServiceManager​(String zkAddress,
                                   String clusterName,
                                   int port)
      • PinotServiceManager

        public PinotServiceManager​(String zkAddress,
                                   String clusterName,
                                   String hostname,
                                   int port)
    • Method Detail

      • main

        public static void main​(String[] args)
      • startController

        public String startController​(String controllerStarterClassName,
                                      org.apache.pinot.spi.env.PinotConfiguration controllerConf)
                               throws Exception
        Throws:
        Exception
      • startBroker

        public String startBroker​(String brokerStarterClassName,
                                  org.apache.pinot.spi.env.PinotConfiguration brokerConf)
                           throws Exception
        Throws:
        Exception
      • startServer

        public String startServer​(String serverStarterClassName,
                                  org.apache.pinot.spi.env.PinotConfiguration serverConf)
                           throws Exception
        Throws:
        Exception
      • startMinion

        public String startMinion​(String minionStarterClassName,
                                  org.apache.pinot.spi.env.PinotConfiguration minionConf)
                           throws Exception
        Throws:
        Exception
      • stopPinotInstance

        public boolean stopPinotInstance​(org.apache.pinot.spi.services.ServiceStartable instance)
      • start

        public void start()
      • stop

        public void stop()
      • stopAll

        public void stopAll()
      • isStarted

        public boolean isStarted()
      • getInstanceId

        public String getInstanceId()
      • getServicePort

        public int getServicePort()
      • getRunningInstanceIds

        public List<String> getRunningInstanceIds()
      • getZkAddress

        public String getZkAddress()
      • getClusterName

        public String getClusterName()
      • stopPinotInstanceById

        public boolean stopPinotInstanceById​(String instanceName)