Tabnine Logo
ImmutablePaxosInstallConfiguration.builder
Code IndexAdd Tabnine to your IDE (free)

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

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

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.configImmutablePaxosInstallConfigurationbuilder

Popular methods of ImmutablePaxosInstallConfiguration

    Popular in Java

    • Start an intent from android
    • getSupportFragmentManager (FragmentActivity)
    • setContentView (Activity)
    • setScale (BigDecimal)
    • FlowLayout (java.awt)
      A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
    • EOFException (java.io)
      Thrown when a program encounters the end of a file or stream during an input operation.
    • BitSet (java.util)
      The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
    • Collection (java.util)
      Collection is the root of the collection hierarchy. It defines operations on data collections and t
    • Hashtable (java.util)
      A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
    • JTable (javax.swing)
    • Top 12 Jupyter Notebook extensions
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now