Skip to content

Commit

Permalink
Move Plume integration directly in Plume Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
amanteaux committed Feb 26, 2017
1 parent 60785a1 commit f5f17b2
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 139 deletions.
37 changes: 1 addition & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,40 +98,5 @@ Plume Framework integration
---------------------------

If you are already using [Plume Framework](https://github.com/Coreoz/Plume),
you should:

create a `ScheduledJobs` class:
```java
@Singleton
public class ScheduledJobs {

@Inject
public ScheduledJobs(Scheduler scheduler, MyService service1, MyOtherService service2) {
scheduler.schedule(
"My service job",
service1::processToBeExecuted,
Schedules.executeAt("03:30")
);
scheduler.schedule(
"My other service job",
service2::otherProcessToBeExecuted,
Schedules.fixedDelaySchedule(Duration.ofSeconds(40))
);
}

}
```
then install the jobs in your application module:
```java
install(new GuiceWispSchedulerModule());
bind(ScheduledJobs.class).asEagerSingleton();
```
Moreover, [Plume Services](https://github.com/Coreoz/Plume/tree/master/plume-services)
must be in your classpath:
```xml
<dependency>
<groupId>com.coreoz</groupId>
<artifactId>plume-services</artifactId>
</dependency>
```
please take a look at [Plume Scheduler](https://github.com/Coreoz/Plume/tree/master/plume-scheduler).

19 changes: 0 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,25 +171,6 @@
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.coreoz</groupId>
<artifactId>plume-services</artifactId>
<version>1.0.0-rc1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.1.0</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.dagger</groupId>
<artifactId>dagger</artifactId>
<version>2.8</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down

This file was deleted.

16 changes: 0 additions & 16 deletions src/main/java/com/coreoz/wisp/guice/GuiceWispSchedulerModule.java

This file was deleted.

18 changes: 0 additions & 18 deletions src/main/java/com/coreoz/wisp/plume/PlumeTimeProvider.java

This file was deleted.

29 changes: 0 additions & 29 deletions src/main/java/com/coreoz/wisp/plume/SchedulerProvider.java

This file was deleted.

0 comments on commit f5f17b2

Please sign in to comment.