Class StandaloneCommandExecutor

java.lang.Object
com.linecorp.centraldogma.server.command.AbstractCommandExecutor
com.linecorp.centraldogma.server.command.StandaloneCommandExecutor
All Implemented Interfaces:
CommandExecutor

public class StandaloneCommandExecutor extends AbstractCommandExecutor
A CommandExecutor implementation which performs operations on the local storage.
  • Constructor Details

    • StandaloneCommandExecutor

      public StandaloneCommandExecutor(ProjectManager projectManager, Executor repositoryWorker, @Nullable SessionManager sessionManager, @Nullable QuotaConfig writeQuota, @Nullable Consumer<CommandExecutor> onTakeLeadership, @Nullable Consumer<CommandExecutor> onReleaseLeadership)
      Creates a new instance.
      Parameters:
      projectManager - the project manager for accessing the storage
      repositoryWorker - the executor which is used for performing storage operations
      writeQuota - the write quota for limiting NormalizingPushCommand
      sessionManager - the session manager for creating/removing a session
      onTakeLeadership - the callback to be invoked after the replica has taken the leadership
      onReleaseLeadership - the callback to be invoked before the replica releases the leadership
    • StandaloneCommandExecutor

      public StandaloneCommandExecutor(ProjectManager projectManager, Executor repositoryWorker, @Nullable SessionManager sessionManager, @Nullable Consumer<CommandExecutor> onTakeLeadership, @Nullable Consumer<CommandExecutor> onReleaseLeadership)
      Creates a new instance.
      Parameters:
      projectManager - the project manager for accessing the storage
      repositoryWorker - the executor which is used for performing storage operations
      sessionManager - the session manager for creating/removing a session
      onTakeLeadership - the callback to be invoked after the replica has taken the leadership
      onReleaseLeadership - the callback to be invoked before the replica releases the leadership
  • Method Details