|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.library.scheduler.bootstrap.SchedulerAssembler
public class SchedulerAssembler
Assembler for Scheduler. Use this Assembler to add the Scheduler service to your application. This Assembler provide a fluent api to programmatically configure configuration defaults and activate the Timeline service assembly that allow to browse in past and future Task runs. Here is a full example:
new SchedulerAssembler(). visibleIn( Visibility.layer ). withConfigAssembly( configModuleAssembly ). withPulseRhythm( 60 ). withGarbageCollectorRhythm( 600 ). withTimeline(). assemble( module );
Constructor Summary | |
---|---|
SchedulerAssembler()
|
Method Summary | |
---|---|
void |
assemble(ModuleAssembly assembly)
Assemblers receive a callback to the ModuleAssembly they are supposed to configure. |
SchedulerAssembler |
visibleIn(Visibility visibility)
|
SchedulerAssembler |
withConfigAssembly(ModuleAssembly configAssembly)
Set the ModuleAssembly to use for Configuration entities. |
SchedulerAssembler |
withGarbageCollectorRhythm(Integer garbageCollectorRhythm)
Set the garbage collector rhythm. |
SchedulerAssembler |
withPulseRhythm(Integer pulseRhythm)
Set the pulse rhythm. |
SchedulerAssembler |
withTimeline()
Activate the assembly of Timeline related services. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchedulerAssembler()
Method Detail |
---|
public SchedulerAssembler visibleIn(Visibility visibility)
public SchedulerAssembler withConfigAssembly(ModuleAssembly configAssembly)
configAssembly
- ModuleAssembly to use for Configuration entities
public SchedulerAssembler withPulseRhythm(Integer pulseRhythm)
pulseRhythm
- Scheduler pulse rhythm in seconds
public SchedulerAssembler withGarbageCollectorRhythm(Integer garbageCollectorRhythm)
garbageCollectorRhythm
- Scheduler garbage collector rhythm in seconds
public SchedulerAssembler withTimeline()
public void assemble(ModuleAssembly assembly) throws AssemblyException
Assembler
ModuleAssembly.layer()
and
then LayerAssembly.module(String)
(String)}.
This allows an Assembler to bootstrap an entire Layer with
more Modules.
assemble
in interface Assembler
assembly
- the Module to assemble
AssemblyException
- thrown if the assembler tries to do something illegal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |