org.jclouds.elasticstack.functions
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>>
@Singleton
public class MapToDevices
- extends Object
- implements com.google.common.base.Function<Map<String,String>,Map<String,? extends Device>>
- Author:
- Adrian Cole
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Function |
equals |
MapToDevices
@Inject
public MapToDevices(com.google.common.base.Function<Device,String> deviceToId)
apply
public Map<String,? extends Device> apply(Map<String,String> from)
- Specified by:
apply
in interface com.google.common.base.Function<Map<String,String>,Map<String,? extends Device>>
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)
Copyright © 2009-2011 jclouds. All Rights Reserved.