Thanks to visit codestin.com
Credit goes to github.com

Skip to content

com.github.dockerjava.core.command.PullImageResultCallback is deprecated and replaced by which class? #2179

Closed
@WallaceSUI

Description

@WallaceSUI

Hey developers,

Sorry to trouble you. Recently I wanna customize my own PullImageResultCallback class to add and expose more levels of logs for image pulling. But I have found that com.github.dockerjava.core.command.PullImageResultCallback is marked as @deprecated. I searched for java-doc and github, there are not many comments explanation for this. I'm not sure it is replaced by which method?

1: From my searching, I found that com.github.dockerjava.api.command.PullImageResultCallback has nearly the same codes but under API package. I wonder whether this is the new class for the same functionality?

2: Also, I wonder if I wanna customize this class to expose more logs for image pulling, whether I can only get more strings/info from the class ResponseItem below? There are no more info I can get for image pulling except this class ResponseItem? Thanks.

public class ResponseItem implements Serializable {
    private static final long serialVersionUID = -5187169652557467828L;
    @JsonProperty("stream")
    private String stream;
    @JsonProperty("status")
    private String status;
    @JsonProperty("progressDetail")
    private ResponseItem.ProgressDetail progressDetail;
    /** @deprecated */
    @Deprecated
    @JsonProperty("progress")
    private String progress;
    @JsonProperty("id")
    private String id;
    @JsonProperty("from")
    private String from;
    @JsonProperty("time")
    private Long time;
    @JsonProperty("errorDetail")
    private ResponseItem.ErrorDetail errorDetail;
    /** @deprecated */
    @Deprecated
    @JsonProperty("error")
    private String error;
    @JsonProperty("aux")
    private ResponseItem.AuxDetail aux;

Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions