org.jclouds.elasticstack.functions
Class MapToDevices

java.lang.Object
  extended by 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

Nested Class Summary
static class MapToDevices.DeviceToId
           
 
Constructor Summary
MapToDevices(com.google.common.base.Function<Device,String> deviceToId)
           
 
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
 

Constructor Detail

MapToDevices

@Inject
public MapToDevices(com.google.common.base.Function<Device,String> deviceToId)
Method Detail

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.