Class SynchronyProcessBuilder

java.lang.Object
com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyProcessBuilder

@Component public class SynchronyProcessBuilder extends Object
Responsible for creating new synchrony process Since 7.12.3
  • Constructor Details

  • Method Details

    • build

      public com.atlassian.utils.process.ExternalProcess build(com.atlassian.utils.process.ProcessMonitor synchronyProcessMonitor, SynchronyEnvironmentBuilder.SynchronyEnvironment synchronyEnvironment)
    • syncConfluenceArgsWithSynchrony

      protected void syncConfluenceArgsWithSynchrony(Set<String> synchronySysProps, SynchronyEnvironmentBuilder.SynchronyEnvironment synchronyEnvironment)
      Synchronizes specific system properties from the Confluence environment with the Synchrony process. This method ensures that required system properties (such as Snappy compression properties and "java.io.tmpdir") from the Confluence environment are added to the Synchrony process arguments if they are not already present.
      Parameters:
      synchronySysProps - A set of system property arguments intended for the Synchrony process. Each property is expected to follow the "-Dkey=value" format.
      synchronyEnvironment - The environment containing all Synchrony-related properties. These properties are used as the source for synchronization.
    • extractSynchronyBinaryTo

      public void extractSynchronyBinaryTo(File dest)
      This method will delete any old-style synchrony-standalone[0-9]*+.jar files and create a new synchrony-standalone-${bundled.synchrony.version}.jar file, if it doesn't already exist.
      Parameters:
      dest - the JAR file to create, if necessary