Class SharedVolumeDevice

java.lang.Object
org.springframework.cloud.servicebroker.model.binding.VolumeDevice
org.springframework.cloud.servicebroker.model.binding.SharedVolumeDevice

public class SharedVolumeDevice extends VolumeDevice
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
  • Constructor Details

    • SharedVolumeDevice

      public SharedVolumeDevice()
      Construct a new SharedVolumeDevice.
    • SharedVolumeDevice

      public SharedVolumeDevice(String volumeId, Map<String,Object> mountConfig)
      Construct a new SharedVolumeDevice.
      Parameters:
      volumeId - the volume ID
      mountConfig - the device configuration
  • Method Details

    • getVolumeId

      public String getVolumeId()
      Get the ID of the shared volume device to mount on each app instance.
      Returns:
      the volume ID
    • getMountConfig

      public Map<String,Object> 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

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class VolumeDevice