Website
Vliegende camera's: Air 3s, Mini 4 Pro, Avata 2
Landbased camera's: Canon R6, Canon 5d2
Objectieven: 8 fisheye, 14f2.8, 24f2.8, 50f1.8, 135f2, 17-40f4, 24-105f4, 70-300f4-5.6, 150-600f5-6.3, 25f2.8-2.5x-5x
<server>
<mbean code="org.jboss.varia.scheduler.Scheduler"
name="jboss.docs.chap10:service=Scheduler">
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass">org.jboss.chap10.ex2.ExSchedulable</attribute>
<attribute name="InitialStartDate">NOW</attribute>
<attribute name="SchedulePeriod">1000</attribute>
<attribute name="InitialRepetitions">-1</attribute>
</mbean>
</server>
Is de jboss-service.xml deployment descriptor.
Dit is de bijbehorende klasse :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| package org.jboss.chap10.ex2;
import java.util.Date;
import org.jboss.varia.scheduler.Schedulable;
import org.apache.log4j.Logger;
/** A simple Schedulable example.
* @author Scott.Stark@jboss.org
* @version $Revision: 1.2 $
*/
public class ExSchedulable implements Schedulable
{
private static final Logger log = Logger.getLogger(ExSchedulable.class);
private String name = "name";
public ExSchedulable() {
log.info("ctor, name: " + name);
}
public void perform(Date now, long remainingRepetitions) {
}
}
En kijk in de JBoss Documentatie (die je kan downloaden) |
3015 Wp-z 5360 Wp-nno op 2 x SMA-SB3600 TL-21, Warmtepomp: ERSC-VM2CR2 / PUHZ-SHW140 YHA, WTW Q350, EV Kia Ev6 GT-Line
[ Voor 78% gewijzigd door qless op 06-09-2004 17:59 ]
Website
Vliegende camera's: Air 3s, Mini 4 Pro, Avata 2
Landbased camera's: Canon R6, Canon 5d2
Objectieven: 8 fisheye, 14f2.8, 24f2.8, 50f1.8, 135f2, 17-40f4, 24-105f4, 70-300f4-5.6, 150-600f5-6.3, 25f2.8-2.5x-5x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <mbean code="org.jboss.varia.scheduler.SingleScheduleProvider"
name="jboss:service=HASingleScheduleProvider">
<depends>jboss:service=DefaultPartition</depends>
<depends>jboss:service=ScheduleManager</depends>
<depends>jboss.examples:service=HASchedulableMBeanExample</depends>
<attribute name="HASingleton">true</attribute>
<attribute name="ScheduleManagerName">jboss:service=ScheduleManager</attribute>
<attribute name="TargetName">jboss:service=HASchedulableMBeanExample</attribute>
<attribute name="TargetMethod">
;hit( NOTIFICATION, DATE, REPETITIONS, SCHEDULER_NAME, java.lang.String )
</attribute>
<attribute name="DateFormat"></attribute>
<attribute name="StartDate">NOW</attribute>
<attribute name="Period">10000</attribute>
<attribute name="Repetitions">10</attribute>
</mbean> |
Echter ik kan de bij behorende voorbeeld klasse niet vinden
[ Voor 19% gewijzigd door qless op 06-09-2004 19:53 ]
Website
Vliegende camera's: Air 3s, Mini 4 Pro, Avata 2
Landbased camera's: Canon R6, Canon 5d2
Objectieven: 8 fisheye, 14f2.8, 24f2.8, 50f1.8, 135f2, 17-40f4, 24-105f4, 70-300f4-5.6, 150-600f5-6.3, 25f2.8-2.5x-5x