Class SharedVolumeDevice
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.VolumeDevice
org.springframework.cloud.servicebroker.model.binding.SharedVolumeDevice
Represents a type of distributed
VolumeDevice
which can be mounted on multiple
app instances simultaneously.
Objects of this type are constructed by the service broker application, and used to build the response to the platform.
- Author:
- Scott Frederick
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing aSharedVolumeDevice
. -
Constructor Summary
ConstructorDescriptionConstruct a newSharedVolumeDevice
.SharedVolumeDevice
(String volumeId, Map<String, Object> mountConfig) Construct a newSharedVolumeDevice
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a SharedVolumeDevice.final boolean
Get the configuration properties for the volume device.Get the ID of the shared volume device to mount on each app instance.final int
hashCode()
toString()
-
Constructor Details
-
SharedVolumeDevice
public SharedVolumeDevice()Construct a newSharedVolumeDevice
. -
SharedVolumeDevice
Construct a newSharedVolumeDevice
.- Parameters:
volumeId
- the volume IDmountConfig
- the device configuration
-
-
Method Details
-
getVolumeId
Get the ID of the shared volume device to mount on each app instance.- Returns:
- the volume ID
-
getMountConfig
Get the configuration properties for the volume device.- Returns:
- the device configuration
-
builder
Create a builder that provides a fluent API for constructing a SharedVolumeDevice.- Returns:
- the builder
-
equals
-
hashCode
public final int hashCode() -
toString
- Overrides:
toString
in classVolumeDevice
-