org.jclouds.virtualbox.compute
Class LoadMachineFromVirtualBox

java.lang.Object
  extended by com.google.common.cache.CacheLoader<String,Node>
      extended by org.jclouds.virtualbox.compute.LoadMachineFromVirtualBox

public class LoadMachineFromVirtualBox
extends com.google.common.cache.CacheLoader<String,Node>

Loads a node from a VirtualBox IMachine

Author:
Mattias Holmqvist

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException
 
Constructor Summary
LoadMachineFromVirtualBox(org.virtualbox_4_1.VirtualBoxManager manager, com.google.common.base.Function<org.virtualbox_4_1.IMachine,String> iMachineToIpAddress)
           
 
Method Summary
 Node load(String id)
           
 
Methods inherited from class com.google.common.cache.CacheLoader
from, from, loadAll, reload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadMachineFromVirtualBox

@Inject
public LoadMachineFromVirtualBox(org.virtualbox_4_1.VirtualBoxManager manager,
                                        com.google.common.base.Function<org.virtualbox_4_1.IMachine,String> iMachineToIpAddress)
Method Detail

load

public Node load(String id)
          throws Exception
Specified by:
load in class com.google.common.cache.CacheLoader<String,Node>
Throws:
Exception


Copyright © 2009-2012 jclouds. All Rights Reserved.