Class BaseServerStarter
- java.lang.Object
-
- org.apache.pinot.server.starter.helix.BaseServerStarter
-
- All Implemented Interfaces:
ServiceStartable
- Direct Known Subclasses:
HelixServerStarter
public abstract class BaseServerStarter extends Object implements ServiceStartable
Starter for Pinot server.When the server starts for the first time, it will automatically join the Helix cluster with the default tag.
-
Optional start-up checks:
- Service status check (ON by default)
-
Optional shut-down checks:
- Query check (drains and finishes existing queries, ON by default)
- Resource check (wait for all resources OFFLINE, OFF by default)
-
-
Field Summary
Fields Modifier and Type Field Description protected AdminApiApplication_adminApiApplicationprotected org.apache.helix.HelixAdmin_helixAdminprotected String_helixClusterNameprotected org.apache.helix.HelixManager_helixManagerprotected String_hostnameprotected org.apache.helix.model.HelixConfigScope_instanceConfigScopeprotected String_instanceIdprotected List<ListenerConfig>_listenerConfigsprotected PinotEnvironmentProvider_pinotEnvironmentProviderprotected int_portprotected org.apache.pinot.segment.local.realtime.impl.invertedindex.RealtimeLuceneIndexRefreshState_realtimeLuceneIndexRefreshStateprotected PinotConfiguration_serverConfprotected ServerInstance_serverInstanceprotected ServerQueriesDisabledTracker_serverQueriesDisabledTrackerprotected String_zkAddress
-
Constructor Summary
Constructors Constructor Description BaseServerStarter()
-
Method Summary
Modifier and Type Method Description PinotConfigurationgetConfig()StringgetInstanceId()ServerInstancegetServerInstance()ServiceRolegetServiceRole()voidinit(PinotConfiguration serverConf)voidstart()voidstop()
-
-
-
Field Detail
-
_helixClusterName
protected String _helixClusterName
-
_zkAddress
protected String _zkAddress
-
_serverConf
protected PinotConfiguration _serverConf
-
_listenerConfigs
protected List<ListenerConfig> _listenerConfigs
-
_hostname
protected String _hostname
-
_port
protected int _port
-
_instanceId
protected String _instanceId
-
_instanceConfigScope
protected org.apache.helix.model.HelixConfigScope _instanceConfigScope
-
_helixManager
protected org.apache.helix.HelixManager _helixManager
-
_helixAdmin
protected org.apache.helix.HelixAdmin _helixAdmin
-
_serverInstance
protected ServerInstance _serverInstance
-
_adminApiApplication
protected AdminApiApplication _adminApiApplication
-
_serverQueriesDisabledTracker
protected ServerQueriesDisabledTracker _serverQueriesDisabledTracker
-
_realtimeLuceneIndexRefreshState
protected org.apache.pinot.segment.local.realtime.impl.invertedindex.RealtimeLuceneIndexRefreshState _realtimeLuceneIndexRefreshState
-
_pinotEnvironmentProvider
protected PinotEnvironmentProvider _pinotEnvironmentProvider
-
-
Method Detail
-
init
public void init(PinotConfiguration serverConf) throws Exception
- Specified by:
initin interfaceServiceStartable- Throws:
Exception
-
getServiceRole
public ServiceRole getServiceRole()
- Specified by:
getServiceRolein interfaceServiceStartable
-
start
public void start() throws Exception- Specified by:
startin interfaceServiceStartable- Throws:
Exception
-
stop
public void stop()
- Specified by:
stopin interfaceServiceStartable
-
getInstanceId
public String getInstanceId()
- Specified by:
getInstanceIdin interfaceServiceStartable
-
getConfig
public PinotConfiguration getConfig()
- Specified by:
getConfigin interfaceServiceStartable
-
getServerInstance
public ServerInstance getServerInstance()
-
-