private void seed() { QueueSeeder queueSeeder = new QueueSeeder(); queueSeeder.setPiIdBuilder(piIdBuilder); queueSeeder.setDhtClientFactory(dhtClientFactory); queueSeeder.addQueue(PiQueue.TERMINATE_INSTANCE); queueSeeder.addQueue(PiQueue.RUN_INSTANCE); queueSeeder.addQueue(PiQueue.PAUSE_INSTANCE); queueSeeder.addQueue(PiQueue.REMOVE_INSTANCE_FROM_USER); }
private static void seedQueues(ApplicationContext ctx) { QueueSeeder queueSeeder = ctx.getBean(QueueSeeder.class); queueSeeder.addQueue(PiQueue.DECRYPT_IMAGE); }