File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
src/main/java/com/amihaiemil/docker Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -37,27 +37,30 @@ public final class RtDockerSystem implements DockerSystem {
37
37
* @param baseUri Base URI, ending with /system.
38
38
* @param dkr The Docker engine.
39
39
*/
40
- RtDockerSystem (final HttpClient client , final URI baseUri ,
41
- final Docker dkr ) {
40
+ RtDockerSystem (
41
+ final HttpClient client , final URI baseUri , final Docker dkr
42
+ ) {
42
43
this .client = client ;
43
44
this .baseUri = baseUri ;
44
45
this .docker = dkr ;
45
46
}
46
47
47
48
@ Override
48
- public DiskSpaceInfo diskUsage () throws IOException ,
49
- UnexpectedResponseException {
49
+ public DiskSpaceInfo diskUsage ()
50
+ throws IOException , UnexpectedResponseException {
50
51
final HttpGet init = new HttpGet (this .baseUri .toString () + "/df" );
51
52
try {
52
- return new SystemDiskSpaceInfo (this .client .execute (
53
+ return new SystemDiskSpaceInfo (
54
+ this .client .execute (
53
55
init ,
54
56
new ReadJsonObject (
55
- new MatchStatus (
56
- init .getURI (),
57
- HttpStatus .SC_OK
58
- )
57
+ new MatchStatus (
58
+ init .getURI (),
59
+ HttpStatus .SC_OK
60
+ )
59
61
)
60
- ));
62
+ )
63
+ );
61
64
} finally {
62
65
init .releaseConnection ();
63
66
}
You can’t perform that action at this time.
0 commit comments