@Test public void testUsesLocationNameProvided() throws Exception { LocalhostMachineProvisioningLocation provisioner = newLocalhostProvisionerWithAddress("localhost"); assertEquals(((SshMachineLocation)provisioner.obtain()).getAddress().getHostName(), "localhost"); LocalhostMachineProvisioningLocation provisioner2 = newLocalhostProvisionerWithAddress("1.2.3.4"); assertEquals(((SshMachineLocation)provisioner2.obtain()).getAddress().getHostName(), "1.2.3.4"); LocalhostMachineProvisioningLocation provisioner3 = newLocalhostProvisionerWithAddress("127.0.0.1"); assertEquals(((SshMachineLocation)provisioner3.obtain()).getAddress().getHostName(), "127.0.0.1"); }
@Override public InetAddress getAddress() { return address; }
LocalhostMachineProvisioningLocation extends FixedListMachineProvisioningLocation<SshMachineLocation> implements AddressableLocation, LocationWithObjectStore { @Override public InetAddress getAddress() { return address; } }
LocalhostMachineProvisioningLocation extends FixedListMachineProvisioningLocation<SshMachineLocation> implements AddressableLocation, LocationWithObjectStore { @Override public InetAddress getAddress() { return address; } LocalhostMachineProvisioningLocation();  LocalhostMachineProvisioningLocation(Map properties);  LocalhostMachineProvisioningLocation(String name);  LocalhostMachineProvisioningLocation(String name, int count); }
LocalhostMachineProvisioningLocation extends FixedListMachineProvisioningLocation<SshMachineLocation> implements AddressableLocation, LocationWithObjectStore { @Override public InetAddress getAddress() { return address; } LocalhostMachineProvisioningLocation();  LocalhostMachineProvisioningLocation(Map properties);  LocalhostMachineProvisioningLocation(String name);  LocalhostMachineProvisioningLocation(String name, int count); @VisibleForTesting static void clearStaticData(); static LocationSpec<LocalhostMachineProvisioningLocation> spec(); LocalhostMachineProvisioningLocation configure(Map<?,?> flags); static InetAddress getLocalhostInetAddress(); @Override InetAddress getAddress(); @Override boolean canProvisionMore(); static synchronized boolean obtainSpecificPort(InetAddress localAddress, int portNumber); static boolean checkPortAvailable(InetAddress localAddress, int portNumber); static int obtainPort(PortRange range); static int obtainPort(InetAddress localAddress, PortRange range); static synchronized void releasePort(InetAddress localAddress, int portNumber); void release(SshMachineLocation machine); static boolean isSudoAllowed(); @Override PersistenceObjectStore newPersistenceObjectStore(String container); }
LocalhostMachineProvisioningLocation extends FixedListMachineProvisioningLocation<SshMachineLocation> implements AddressableLocation, LocationWithObjectStore { @Override public InetAddress getAddress() { return address; } LocalhostMachineProvisioningLocation();  LocalhostMachineProvisioningLocation(Map properties);  LocalhostMachineProvisioningLocation(String name);  LocalhostMachineProvisioningLocation(String name, int count); @VisibleForTesting static void clearStaticData(); static LocationSpec<LocalhostMachineProvisioningLocation> spec(); LocalhostMachineProvisioningLocation configure(Map<?,?> flags); static InetAddress getLocalhostInetAddress(); @Override InetAddress getAddress(); @Override boolean canProvisionMore(); static synchronized boolean obtainSpecificPort(InetAddress localAddress, int portNumber); static boolean checkPortAvailable(InetAddress localAddress, int portNumber); static int obtainPort(PortRange range); static int obtainPort(InetAddress localAddress, PortRange range); static synchronized void releasePort(InetAddress localAddress, int portNumber); void release(SshMachineLocation machine); static boolean isSudoAllowed(); @Override PersistenceObjectStore newPersistenceObjectStore(String container); @Deprecated
    static final Logger LOG; static final ConfigKey<Boolean> SKIP_ON_BOX_BASE_DIR_RESOLUTION; }