Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 487dbad3a97de9e488aa42b587b63137f76fcd05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*******************************************************************************
 * Copyright (c) 2014 Red Hat.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Red Hat - Initial Contribution
 *******************************************************************************/
package org.eclipse.linuxtools.internal.docker.core;

import org.eclipse.linuxtools.docker.core.IDockerProgressDetail;
import org.eclipse.linuxtools.docker.core.IDockerProgressMessage;

public class DockerProgressMessage implements IDockerProgressMessage {

	private String id;
	private String status;
	private String stream;
	private String error;
	private String progress;
	private IDockerProgressDetail progressDetail;

	public DockerProgressMessage(String id, String status, String stream,
			String error, String progress, IDockerProgressDetail progressDetail) {
		this.id = id;
		this.status = status;
		this.stream = stream;
		this.error = error;
		this.progress = progress;
		this.progressDetail = progressDetail;
	}

	@Override
	public String id() {
		return id;
	}

	@Override
	public String status() {
		return status;
	}

	@Override
	public String stream() {
		return stream;
	}

	@Override
	public String error() {
		return error;
	}

	@Override
	public String progress() {
		return progress;
	}

	@Override
	public IDockerProgressDetail progressDetail() {
		return progressDetail;
	}

	@Override
	public String toString() {
		return "Message: id=" + id() + "\n" + //$NON-NLS-1$ //$NON-NLS-2$
				"status=" + status() + "\n" + //$NON-NLS-1$ //$NON-NLS-2$
				"stream=" + stream() + "\n" + //$NON-NLS-1$ //$NON-NLS-2$
				"error=" + error() + "\n" + //$NON-NLS-1$ //$NON-NLS-2$
				"progress=" + progress() + "\n" + //$NON-NLS-1$ //$NON-NLS-2$
				"progressDetail=" + progressDetail(); //$NON-NLS-1$
	}

}

Back to the top