public class ProtoUtils extends Object
Modifier and Type | Method and Description |
---|---|
static JobInfo |
fromProto(JobInfo jobInfo) |
static Status |
fromProto(Status status) |
static CmdStatusBlock |
protoToCmdStatusBlock(CmdStatusBlock cmdStatusBlock)
Convert proto to list of SimpleJobStatusBlock.
|
public static JobInfo fromProto(JobInfo jobInfo) throws IOException
jobInfo
- the proto representation of JobInfo
to convertJobInfo
representationIOException
- if result can't be deserializedpublic static Status fromProto(Status status) throws IOException
status
- the proto status to convertStatus
representationIOException
- if result can't be deserializedpublic static CmdStatusBlock protoToCmdStatusBlock(CmdStatusBlock cmdStatusBlock) throws IOException
cmdStatusBlock
- the cmdStatusBlock to convertCmdStatusBlock
IOException
- if result can't be deserializedCopyright © 2023. All Rights Reserved.