@ThreadSafe public class CmdJobTracker extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DELIMITER |
protected FileSystemContext |
mFsContext |
Constructor and Description |
---|
CmdJobTracker(FileSystemContext fsContext,
JobMaster jobMaster)
Create a new instance of
CmdJobTracker . |
CmdJobTracker(FileSystemContext fsContext,
MigrateCliRunner migrateCliRunner,
PersistRunner persistRunner)
Constructor with runner providers.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
findAllFailedPaths() |
Set<Long> |
findCmdIds(List<Status> statusList) |
Set<String> |
findFailedPaths(long jobControlId) |
Status |
getCmdStatus(long jobControlId)
Get status information for a CMD.
|
CmdStatusBlock |
getCmdStatusBlock(long jobControlId)
Get a cmdStatusBlock information.
|
void |
run(CmdConfig cmdConfig,
long jobControlId)
Run the PlanTracker to trigger a Cmd job based on CmdConfig.
|
protected FileSystemContext mFsContext
public static final String DELIMITER
public CmdJobTracker(FileSystemContext fsContext, JobMaster jobMaster)
CmdJobTracker
.fsContext
- filesystem contextjobMaster
- the job masterpublic CmdJobTracker(FileSystemContext fsContext, MigrateCliRunner migrateCliRunner, PersistRunner persistRunner)
fsContext
- Filesystem contextmigrateCliRunner
- DistributedCopy runnerpersistRunner
- Persist runnerpublic void run(CmdConfig cmdConfig, long jobControlId) throws JobDoesNotExistException, IOException
cmdConfig
- the distributed command job configjobControlId
- job control id for the commandJobDoesNotExistException
IOException
public Status getCmdStatus(long jobControlId) throws JobDoesNotExistException
jobControlId
- JobDoesNotExistException
public Set<Long> findCmdIds(List<Status> statusList) throws JobDoesNotExistException
statusList
- status list filterJobDoesNotExistException
public Set<String> findFailedPaths(long jobControlId) throws JobDoesNotExistException
jobControlId
- jobControlIdJobDoesNotExistException
public CmdStatusBlock getCmdStatusBlock(long jobControlId) throws JobDoesNotExistException
jobControlId
- command idJobDoesNotExistException
Copyright © 2023. All Rights Reserved.