@Test public void canObtainMachine() throws NoMachinesAvailableException { SshMachineLocation obtained = provisioner.obtain(); assertEquals(obtained, machine); }
public T obtain() throws NoMachinesAvailableException { return obtain(Maps.<String,Object>newLinkedHashMap()); }
FixedListMachineProvisioningLocation extends AbstractLocation implements MachineProvisioningLocation<T>, Closeable { public T obtain() throws NoMachinesAvailableException { return obtain(Maps.<String,Object>newLinkedHashMap()); } }
FixedListMachineProvisioningLocation extends AbstractLocation implements MachineProvisioningLocation<T>, Closeable { public T obtain() throws NoMachinesAvailableException { return obtain(Maps.<String,Object>newLinkedHashMap()); } FixedListMachineProvisioningLocation();  FixedListMachineProvisioningLocation(Map properties); }
FixedListMachineProvisioningLocation extends AbstractLocation implements MachineProvisioningLocation<T>, Closeable { public T obtain() throws NoMachinesAvailableException { return obtain(Maps.<String,Object>newLinkedHashMap()); } FixedListMachineProvisioningLocation();  FixedListMachineProvisioningLocation(Map properties); @Override void init(); @Override String toVerboseString(); @Override AbstractLocation configure(Map<?,?> properties); @SuppressWarnings("unchecked") FixedListMachineProvisioningLocation<T> newSubLocation(Map<?,?> newFlags); @Override void close(); void addMachine(T machine); void removeMachine(T machine); Set<T> getAvailable(); Set<T> getInUse(); Set<T> getAllMachines(); @Override void addChild(Location child); @Override boolean removeChild(Location child); T obtain(); @Override T obtain(Map<?,?> flags); @Override void release(T machine); @Override Map<String,Object> getProvisioningFlags(Collection<String> tags); }
FixedListMachineProvisioningLocation extends AbstractLocation implements MachineProvisioningLocation<T>, Closeable { public T obtain() throws NoMachinesAvailableException { return obtain(Maps.<String,Object>newLinkedHashMap()); } FixedListMachineProvisioningLocation();  FixedListMachineProvisioningLocation(Map properties); @Override void init(); @Override String toVerboseString(); @Override AbstractLocation configure(Map<?,?> properties); @SuppressWarnings("unchecked") FixedListMachineProvisioningLocation<T> newSubLocation(Map<?,?> newFlags); @Override void close(); void addMachine(T machine); void removeMachine(T machine); Set<T> getAvailable(); Set<T> getInUse(); Set<T> getAllMachines(); @Override void addChild(Location child); @Override boolean removeChild(Location child); T obtain(); @Override T obtain(Map<?,?> flags); @Override void release(T machine); @Override Map<String,Object> getProvisioningFlags(Collection<String> tags); static final ConfigKey<Function<Iterable<? extends MachineLocation>, MachineLocation>> MACHINE_CHOOSER; static final ConfigKey<Collection<MachineLocationCustomizer>> MACHINE_LOCATION_CUSTOMIZERS; }