|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.dockerjava.api.model.Bind
public class Bind
Represents a host path being bind mounted as a Volume
in a Docker container.
The Bind can be in read only or read write access mode.
Constructor Summary | |
---|---|
Bind(String path,
Volume volume)
|
|
Bind(String path,
Volume volume,
AccessMode accessMode)
|
|
Bind(String path,
Volume volume,
boolean readOnly)
Deprecated. use Bind(String, Volume, AccessMode) |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
AccessMode |
getAccessMode()
|
String |
getPath()
|
Volume |
getVolume()
|
int |
hashCode()
|
boolean |
isReadOnly()
Deprecated. use getAccessMode() |
static Bind |
parse(String serialized)
Parses a bind mount specification to a Bind . |
String |
toString()
Returns a string representation of this Bind suitable
for inclusion in a JSON message. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Bind(String path, Volume volume)
public Bind(String path, Volume volume, AccessMode accessMode)
@Deprecated public Bind(String path, Volume volume, boolean readOnly)
Bind(String, Volume, AccessMode)
Method Detail |
---|
public String getPath()
public Volume getVolume()
public AccessMode getAccessMode()
@Deprecated public boolean isReadOnly()
getAccessMode()
public static Bind parse(String serialized)
Bind
.
serialized
- the specification, e.g. /host:/container:ro
Bind
matching the specification
IllegalArgumentException
- if the specification cannot be parsedpublic boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
Bind
suitable
for inclusion in a JSON message.
The format is <host path>:<container path>:<access mode>
,
like the argument in parse(String)
.
toString
in class Object
Bind
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |