org.jclouds.cloudsigma.functions
Class MapToDriveMetrics

java.lang.Object
  extended by org.jclouds.cloudsigma.functions.MapToDriveMetrics
All Implemented Interfaces:
com.google.common.base.Function<Map<String,String>,Map<String,? extends DriveMetrics>>

@Singleton
public class MapToDriveMetrics
extends Object
implements com.google.common.base.Function<Map<String,String>,Map<String,? extends DriveMetrics>>

Author:
Adrian Cole

Constructor Summary
MapToDriveMetrics()
           
 
Method Summary
protected  void addBlockDevices(Map<String,String> from, com.google.common.collect.ImmutableMap.Builder<String,DriveMetrics> devices)
           
protected  void addIDEDevices(Map<String,String> from, com.google.common.collect.ImmutableMap.Builder<String,DriveMetrics> devices)
           
protected  void addSCSIDevices(Map<String,String> from, com.google.common.collect.ImmutableMap.Builder<String,DriveMetrics> devices)
           
 Map<String,? extends DriveMetrics> apply(Map<String,String> from)
           
protected  DriveMetrics buildMetrics(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

MapToDriveMetrics

public MapToDriveMetrics()
Method Detail

apply

public Map<String,? extends DriveMetrics> apply(Map<String,String> from)
Specified by:
apply in interface com.google.common.base.Function<Map<String,String>,Map<String,? extends DriveMetrics>>

addBlockDevices

protected void addBlockDevices(Map<String,String> from,
                               com.google.common.collect.ImmutableMap.Builder<String,DriveMetrics> devices)

addSCSIDevices

protected void addSCSIDevices(Map<String,String> from,
                              com.google.common.collect.ImmutableMap.Builder<String,DriveMetrics> devices)

addIDEDevices

protected void addIDEDevices(Map<String,String> from,
                             com.google.common.collect.ImmutableMap.Builder<String,DriveMetrics> devices)

buildMetrics

protected DriveMetrics buildMetrics(String key,
                                    Map<String,String> from)


Copyright © 2009-2012 jclouds. All Rights Reserved.