Class MapToDevices
- java.lang.Object
-
- org.jclouds.elasticstack.functions.MapToDevices
-
- All Implemented Interfaces:
com.google.common.base.Function<Map<String,String>,Map<String,? extends Device>>
,Function<Map<String,String>,Map<String,? extends Device>>
@Singleton public class MapToDevices extends Object implements com.google.common.base.Function<Map<String,String>,Map<String,? extends Device>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MapToDevices.DeviceToId
-
Constructor Summary
Constructors Constructor Description MapToDevices(com.google.common.base.Function<Device,String> deviceToId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addBlockDevices(Map<String,String> from, com.google.common.collect.ImmutableSet.Builder<Device> devices)
protected void
addIDEDevices(Map<String,String> from, com.google.common.collect.ImmutableSet.Builder<Device> devices)
protected void
addSCSIDevices(Map<String,String> from, com.google.common.collect.ImmutableSet.Builder<Device> devices)
Map<String,? extends Device>
apply(Map<String,String> from)
protected Device.Builder
populateBuilder(Device.Builder deviceBuilder, String key, Map<String,String> from)
-
-
-
Method Detail
-
addBlockDevices
protected void addBlockDevices(Map<String,String> from, com.google.common.collect.ImmutableSet.Builder<Device> devices)
-
addSCSIDevices
protected void addSCSIDevices(Map<String,String> from, com.google.common.collect.ImmutableSet.Builder<Device> devices)
-
addIDEDevices
protected void addIDEDevices(Map<String,String> from, com.google.common.collect.ImmutableSet.Builder<Device> devices)
-
populateBuilder
protected Device.Builder populateBuilder(Device.Builder deviceBuilder, String key, Map<String,String> from)
-
-