Codota Logo
ImmutablePaxosInstallConfiguration
Code IndexAdd Codota to your IDE (free)

How to use
ImmutablePaxosInstallConfiguration
in
com.palantir.timelock.config

Best Java code snippets using com.palantir.timelock.config.ImmutablePaxosInstallConfiguration (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: palantir/atlasdb

@Test
public void canUseExistingDirectoryAsPaxosDirectory() {
  File mockFile = getMockFileWith(true, false);
  ImmutablePaxosInstallConfiguration.builder()
      .dataDirectory(mockFile)
      .isNewService(false)
      .build();
  verify(mockFile, atLeastOnce()).isDirectory();
}
origin: palantir/atlasdb

@Test
public void canCreateDirectoryForPaxosDirectoryIfNewService() {
  File mockFile = getMockFileWith(false, true);
  ImmutablePaxosInstallConfiguration.builder()
      .dataDirectory(mockFile)
      .isNewService(true)
      .build();
  verify(mockFile).mkdirs();
}
origin: palantir/atlasdb

@Test
public void throwsIfConfiguredToBeExistingServiceWithoutDirectory() {
  File mockFile = getMockFileWith(false, true);
  assertFailsToBuildConfiguration(ImmutablePaxosInstallConfiguration.builder()
      .dataDirectory(mockFile)
      .isNewService(false));
}
origin: palantir/atlasdb

@Test
public void throwsIfConfiguredToBeNewServiceWithExistingDirectory() {
  File mockFile = getMockFileWith(true, true);
  assertFailsToBuildConfiguration(ImmutablePaxosInstallConfiguration.builder()
      .dataDirectory(mockFile)
      .isNewService(true));
}
origin: palantir/atlasdb

@Test
public void throwsIfCannotCreatePaxosDirectory() {
  File mockFile = getMockFileWith(false, false);
  assertFailsToBuildConfiguration(ImmutablePaxosInstallConfiguration.builder()
      .dataDirectory(mockFile)
      .isNewService(true));
}
origin: palantir/atlasdb

.paxos(ImmutablePaxosInstallConfiguration.builder()
    .dataDirectory(paxos.paxosDataDir())
    .isNewService(paxos.isNewService())
com.palantir.timelock.configImmutablePaxosInstallConfiguration

Most used methods

  • builder

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Path (java.nio.file)
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now