Add stream-events command

The stream-events command outputs patchset added, comment added,
change merged, and change abandoned events in JSON format over SSH.
Streaming ends when the client disconnects or aborts the command.

Change-Id: Iba3ff56c23ab91cf3b855d5dde6c40d9735b643f
This commit is contained in:
Kenny Root
2010-02-24 00:29:20 -08:00
committed by Shawn O. Pearce
parent f458bf6337
commit 15ac1b83f5
10 changed files with 577 additions and 17 deletions

View File

@@ -75,6 +75,8 @@ public class SshModule extends FactoryModule {
bind(WorkQueue.Executor.class).annotatedWith(CommandExecutor.class)
.toProvider(CommandExecutorProvider.class).in(SINGLETON);
bind(WorkQueue.Executor.class).annotatedWith(StreamCommandExecutor.class)
.toProvider(StreamCommandExecutorProvider.class).in(SINGLETON);
bind(PublickeyAuthenticator.class).to(DatabasePubKeyAuth.class);
bind(PasswordAuthenticator.class).to(DatabasePasswordAuth.class);