public class CmdStatusBlock extends Object
Constructor and Description |
---|
CmdStatusBlock(long jobControlId,
List<SimpleJobStatusBlock> blocks,
OperationType type)
Constructor.
|
CmdStatusBlock(long jobControlId,
OperationType type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addJobStatusBlock(SimpleJobStatusBlock block)
Add an entry of job status block.
|
long |
getJobControlId()
Get job control ID of the command.
|
List<SimpleJobStatusBlock> |
getJobStatusBlock()
Get a list of job status block for a command.
|
OperationType |
getOperationType()
Get OperationType.
|
CmdStatusBlock |
toProto()
Convert to proto type.
|
public CmdStatusBlock(long jobControlId, OperationType type)
jobControlId
- command JobControlIdtype
- the operation typepublic CmdStatusBlock(long jobControlId, List<SimpleJobStatusBlock> blocks, OperationType type)
jobControlId
- command JobControlIdblocks
- SimpleJobStatusBlock listtype
- operation typepublic long getJobControlId()
public void addJobStatusBlock(SimpleJobStatusBlock block)
block
- public List<SimpleJobStatusBlock> getJobStatusBlock()
public OperationType getOperationType()
public CmdStatusBlock toProto() throws IOException
IOException
Copyright © 2023. All Rights Reserved.