Class AbstractBaseAdminCommand
- java.lang.Object
-
- org.apache.pinot.tools.AbstractBaseCommand
-
- org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand
-
- Direct Known Subclasses:
AddSchemaCommand,AddTableCommand,AddTenantCommand,AnonymizeDataCommand,AvroSchemaToPinotSchema,BootstrapTableCommand,ChangeNumReplicasCommand,ChangeTableState,CreateSegmentCommand,DeleteClusterCommand,GenerateDataCommand,GitHubEventsQuickStartCommand,ImportDataCommand,JsonToPinotSchema,LaunchDataIngestionJobCommand,MoveReplicaGroup,OfflineSegmentIntervalCheckerCommand,OperateClusterConfigCommand,PostQueryCommand,QuickStartCommand,RealtimeProvisioningHelperCommand,RebalanceTableCommand,SegmentProcessorFrameworkCommand,ShowClusterInfoCommand,StartBrokerCommand,StartControllerCommand,StartKafkaCommand,StartMinionCommand,StartServerCommand,StartServiceManagerCommand,StartZookeeperCommand,StopProcessCommand,StreamAvroIntoKafkaCommand,StreamGitHubEventsCommand,UploadSegmentCommand,VerifyClusterStateCommand
public class AbstractBaseAdminCommand extends AbstractBaseCommand
Super class for all the commands. Implements the common printUsage method.
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.tools.AbstractBaseCommand
DEFAULT_CLUSTER_NAME, DEFAULT_ZK_ADDRESS
-
-
Constructor Summary
Constructors Constructor Description AbstractBaseAdminCommand()AbstractBaseAdminCommand(boolean addShutdownHook)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intgetPID()protected voidsavePID(String fileName)static StringsendDeleteRequest(String urlString, String payload)static StringsendPostRequest(String urlString, String payload)static StringsendRequest(String requestMethod, String urlString, String payload)static StringsendRequest(String requestMethod, String urlString, String payload, List<org.apache.http.Header> headers)-
Methods inherited from class org.apache.pinot.tools.AbstractBaseCommand
cleanup, getName, printExamples, printUsage
-
-
-
-
Method Detail
-
getPID
public static int getPID()
-
sendPostRequest
public static String sendPostRequest(String urlString, String payload) throws IOException
- Throws:
IOException
-
sendDeleteRequest
public static String sendDeleteRequest(String urlString, String payload) throws IOException
- Throws:
IOException
-
sendRequest
public static String sendRequest(String requestMethod, String urlString, String payload) throws IOException
- Throws:
IOException
-
sendRequest
public static String sendRequest(String requestMethod, String urlString, String payload, List<org.apache.http.Header> headers) throws IOException
- Throws:
IOException
-
savePID
protected void savePID(String fileName) throws IOException
- Throws:
IOException
-
-