Class AddTenantCommand
- java.lang.Object
-
- org.apache.pinot.tools.AbstractBaseCommand
-
- org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand
-
- org.apache.pinot.tools.admin.command.AddTenantCommand
-
public class AddTenantCommand extends AbstractBaseAdminCommand implements Command
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.tools.AbstractBaseCommand
DEFAULT_CLUSTER_NAME, DEFAULT_ZK_ADDRESS
-
-
Constructor Summary
Constructors Constructor Description AddTenantCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()booleanexecute()booleangetHelp()StringgetName()AddTenantCommandsetAuthToken(String authToken)AddTenantCommandsetControllerUrl(String url)AddTenantCommandsetExecute(boolean exec)AddTenantCommandsetInstances(int instances)AddTenantCommandsetName(String name)AddTenantCommandsetOffline(int offline)AddTenantCommandsetPassword(String password)AddTenantCommandsetRealtime(int realtime)AddTenantCommandsetRole(org.apache.pinot.spi.config.tenant.TenantRole role)AddTenantCommandsetUser(String user)StringtoString()-
Methods inherited from class org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand
getPID, savePID, sendDeleteRequest, sendPostRequest, sendRequest, sendRequest
-
Methods inherited from class org.apache.pinot.tools.AbstractBaseCommand
cleanup, printExamples, printUsage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.tools.Command
call, printUsage
-
-
-
-
Method Detail
-
setControllerUrl
public AddTenantCommand setControllerUrl(String url)
-
setName
public AddTenantCommand setName(String name)
-
setRole
public AddTenantCommand setRole(org.apache.pinot.spi.config.tenant.TenantRole role)
-
setInstances
public AddTenantCommand setInstances(int instances)
-
setOffline
public AddTenantCommand setOffline(int offline)
-
setRealtime
public AddTenantCommand setRealtime(int realtime)
-
setUser
public AddTenantCommand setUser(String user)
-
setPassword
public AddTenantCommand setPassword(String password)
-
setAuthToken
public AddTenantCommand setAuthToken(String authToken)
-
setExecute
public AddTenantCommand setExecute(boolean exec)
-
execute
public boolean execute() throws Exception
-
getName
public String getName()
- Overrides:
getNamein classAbstractBaseCommand
-
description
public String description()
- Specified by:
descriptionin interfaceCommand
-
-