Package org.apache.hadoop.ha.SshFenceByTcpPort

Examples of org.apache.hadoop.ha.SshFenceByTcpPort.Args


    assertFalse(fence.tryFence(UNFENCEABLE_TARGET, ""));
  }
 
  @Test
  public void testArgsParsing() throws BadFencingConfigurationException {
    Args args = new SshFenceByTcpPort.Args(null);
    assertEquals(System.getProperty("user.name"), args.user);
    assertEquals(22, args.sshPort);
   
    args = new SshFenceByTcpPort.Args("");
    assertEquals(System.getProperty("user.name"), args.user);
View Full Code Here


    assertBadArgs("bar.com:xx"); // "
  }
 
  private void assertBadArgs(String argStr) {
    try {
      new Args(argStr);
      fail("Did not fail on bad args: " + argStr);
    } catch (BadFencingConfigurationException e) {
      // Expected
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.ha.SshFenceByTcpPort.Args

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.