Package alluxio.client.job
Class RetryHandlingJobMasterClient
- java.lang.Object
-
- alluxio.AbstractClient
-
- alluxio.AbstractMasterClient
-
- alluxio.AbstractJobMasterClient
-
- alluxio.client.job.RetryHandlingJobMasterClient
-
- All Implemented Interfaces:
alluxio.Client,JobMasterClient,java.io.Closeable,java.lang.AutoCloseable
@ThreadSafe public final class RetryHandlingJobMasterClient extends alluxio.AbstractJobMasterClient implements JobMasterClient
A wrapper for the gRPC client to interact with the job service master, used by job service clients.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class alluxio.AbstractClient
alluxio.AbstractClient.RpcCallable<V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface alluxio.client.job.JobMasterClient
JobMasterClient.Factory
-
-
Constructor Summary
Constructors Constructor Description RetryHandlingJobMasterClient(JobMasterClientContext conf)Creates a new job master client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterConnect()voidcancel(long jobId)Cancels the given job.java.util.List<alluxio.job.wire.JobWorkerHealth>getAllWorkerHealth()Gets all worker health.alluxio.job.wire.StatusgetCmdStatus(long id)Gets the status of the given command jobControlId.alluxio.job.wire.CmdStatusBlockgetCmdStatusDetailed(long id)Gets the detailed status of the given command jobControlId.alluxio.job.wire.JobServiceSummarygetJobServiceSummary()Gets the job service summary.alluxio.job.wire.JobInfogetJobStatus(long id)Gets the status of the given job id.alluxio.job.wire.JobInfogetJobStatusDetailed(long id)Gets detailed status of the given job id.protected alluxio.grpc.ServiceTypegetRemoteServiceType()protected java.lang.StringgetServiceName()protected longgetServiceVersion()java.util.List<java.lang.Long>list(alluxio.grpc.ListAllPOptions option)java.util.List<alluxio.job.wire.JobInfo>listDetailed()longrun(alluxio.job.JobConfig jobConfig)Starts a plan based on the given configuration.longsubmit(alluxio.job.CmdConfig cmdConfig)Submit a Cmd Job based on the given configuration.-
Methods inherited from class alluxio.AbstractMasterClient
afterDisconnect, beforeConnect, queryGrpcServerAddress
-
Methods inherited from class alluxio.AbstractClient
beforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPC
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface alluxio.Client
connect, disconnect, getConfAddress, getRemoteHostName, getRemoteSockAddress, isClosed, isConnected
-
Methods inherited from interface alluxio.client.job.JobMasterClient
list
-
-
-
-
Constructor Detail
-
RetryHandlingJobMasterClient
public RetryHandlingJobMasterClient(JobMasterClientContext conf)
Creates a new job master client.- Parameters:
conf- master client configuration
-
-
Method Detail
-
getRemoteServiceType
protected alluxio.grpc.ServiceType getRemoteServiceType()
- Specified by:
getRemoteServiceTypein classalluxio.AbstractClient
-
getServiceName
protected java.lang.String getServiceName()
- Specified by:
getServiceNamein classalluxio.AbstractClient
-
getServiceVersion
protected long getServiceVersion()
- Specified by:
getServiceVersionin classalluxio.AbstractClient
-
afterConnect
protected void afterConnect() throws java.io.IOException- Overrides:
afterConnectin classalluxio.AbstractClient- Throws:
java.io.IOException
-
cancel
public void cancel(long jobId) throws java.io.IOExceptionDescription copied from interface:JobMasterClientCancels the given job.- Specified by:
cancelin interfaceJobMasterClient- Parameters:
jobId- the job id- Throws:
java.io.IOException
-
getJobStatus
public alluxio.job.wire.JobInfo getJobStatus(long id) throws java.io.IOExceptionDescription copied from interface:JobMasterClientGets the status of the given job id.- Specified by:
getJobStatusin interfaceJobMasterClient- Parameters:
id- the job id- Returns:
- the job information
- Throws:
java.io.IOException
-
getJobStatusDetailed
public alluxio.job.wire.JobInfo getJobStatusDetailed(long id) throws java.io.IOExceptionDescription copied from interface:JobMasterClientGets detailed status of the given job id.- Specified by:
getJobStatusDetailedin interfaceJobMasterClient- Parameters:
id- the job id- Returns:
- the detailed job information
- Throws:
java.io.IOException
-
getJobServiceSummary
public alluxio.job.wire.JobServiceSummary getJobServiceSummary() throws java.io.IOExceptionDescription copied from interface:JobMasterClientGets the job service summary.- Specified by:
getJobServiceSummaryin interfaceJobMasterClient- Returns:
- the job service summary
- Throws:
java.io.IOException
-
list
public java.util.List<java.lang.Long> list(alluxio.grpc.ListAllPOptions option) throws java.io.IOException- Specified by:
listin interfaceJobMasterClient- Parameters:
option- list options- Returns:
- the list of ids of all jobs
- Throws:
java.io.IOException
-
listDetailed
public java.util.List<alluxio.job.wire.JobInfo> listDetailed() throws java.io.IOException- Specified by:
listDetailedin interfaceJobMasterClient- Returns:
- the list of all jobInfos
- Throws:
java.io.IOException
-
run
public long run(alluxio.job.JobConfig jobConfig) throws java.io.IOExceptionDescription copied from interface:JobMasterClientStarts a plan based on the given configuration.- Specified by:
runin interfaceJobMasterClient- Parameters:
jobConfig- the job configuration- Returns:
- the plan id
- Throws:
java.io.IOException
-
submit
public long submit(alluxio.job.CmdConfig cmdConfig) throws java.io.IOExceptionDescription copied from interface:JobMasterClientSubmit a Cmd Job based on the given configuration.- Specified by:
submitin interfaceJobMasterClient- Parameters:
cmdConfig- the Cmd job config- Returns:
- the jobControlId
- Throws:
java.io.IOException
-
getAllWorkerHealth
public java.util.List<alluxio.job.wire.JobWorkerHealth> getAllWorkerHealth() throws java.io.IOExceptionDescription copied from interface:JobMasterClientGets all worker health.- Specified by:
getAllWorkerHealthin interfaceJobMasterClient- Returns:
- list of all worker health information
- Throws:
java.io.IOException
-
getCmdStatus
public alluxio.job.wire.Status getCmdStatus(long id) throws java.io.IOExceptionDescription copied from interface:JobMasterClientGets the status of the given command jobControlId.- Specified by:
getCmdStatusin interfaceJobMasterClient- Parameters:
id- the jobControl id- Returns:
- the command status
- Throws:
java.io.IOException
-
getCmdStatusDetailed
public alluxio.job.wire.CmdStatusBlock getCmdStatusDetailed(long id) throws java.io.IOExceptionDescription copied from interface:JobMasterClientGets the detailed status of the given command jobControlId.- Specified by:
getCmdStatusDetailedin interfaceJobMasterClient- Parameters:
id- the jobControl id- Returns:
- the detailed command status information
- Throws:
java.io.IOException
-
-