Package org.apache.pinot.common.minion
Class MinionClient
- java.lang.Object
-
- org.apache.pinot.common.minion.MinionClient
-
-
Constructor Summary
Constructors Constructor Description MinionClient(String controllerUrl, AuthProvider authProvider)
-
Method Summary
Modifier and Type Method Description Map<String,String>executeTask(AdhocTaskConfig adhocTaskConfig, Map<String,String> headers)StringgetControllerUrl()Map<String,String>getTasksStates(String taskType)StringgetTaskState(String taskName)Map<String,String>scheduleMinionTasks(String taskType, String tableNameWithType)
-
-
-
Constructor Detail
-
MinionClient
public MinionClient(String controllerUrl, AuthProvider authProvider)
-
-
Method Detail
-
getControllerUrl
public String getControllerUrl()
-
scheduleMinionTasks
public Map<String,String> scheduleMinionTasks(@Nullable String taskType, @Nullable String tableNameWithType) throws IOException
- Throws:
IOException
-
getTasksStates
public Map<String,String> getTasksStates(String taskType) throws IOException
- Throws:
IOException
-
getTaskState
public String getTaskState(String taskName) throws IOException
- Throws:
IOException
-
executeTask
public Map<String,String> executeTask(AdhocTaskConfig adhocTaskConfig, @Nullable Map<String,String> headers) throws IOException
- Throws:
IOException
-
-