Add vacuum command.

// FREEBIE
This commit is contained in:
Moxie Marlinspike
2014-11-04 19:32:35 -08:00
parent bc65461ecb
commit fd662e3401
5 changed files with 70 additions and 2 deletions

View File

@@ -74,6 +74,7 @@ import org.whispersystems.textsecuregcm.util.Constants;
import org.whispersystems.textsecuregcm.util.UrlSigner;
import org.whispersystems.textsecuregcm.websocket.WebsocketControllerFactory;
import org.whispersystems.textsecuregcm.workers.DirectoryCommand;
import org.whispersystems.textsecuregcm.workers.VacuumCommand;
import javax.servlet.DispatcherType;
import javax.servlet.FilterRegistration;
@@ -101,6 +102,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
@Override
public void initialize(Bootstrap<WhisperServerConfiguration> bootstrap) {
bootstrap.addCommand(new DirectoryCommand());
bootstrap.addCommand(new VacuumCommand());
bootstrap.addBundle(new MigrationsBundle<WhisperServerConfiguration>() {
@Override
public DataSourceFactory getDataSourceFactory(WhisperServerConfiguration configuration) {