KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > resource > timer > TimerManagerService


1 /*
2  * JBoss, Home of Professional Open Source
3  * Copyright 2005, JBoss Inc., and individual contributors as indicated
4  * by the @authors tag. See the copyright.txt in the distribution for a
5  * full listing of individual contributors.
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this software; if not, write to the Free
19  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21  */

22 package org.jboss.resource.timer;
23
24 import java.util.Date JavaDoc;
25
26 import org.jboss.resource.spi.timer.Timer;
27 import org.jboss.resource.spi.timer.TimerDate;
28 import org.jboss.resource.spi.timer.TimerExcecutionContext;
29 import org.jboss.resource.spi.timer.TimerListener;
30 import org.jboss.resource.spi.timer.TimerManager;
31 import org.jboss.resource.spi.timer.TimerPeriod;
32 import org.jboss.system.ServiceMBeanSupport;
33
34 /**
35  * A TimerManagerService.
36  *
37  * @author <a HREF="weston.price@jboss.com">Weston Price</a>
38  * @version $Revision: 45842 $
39  */

40 public class TimerManagerService extends ServiceMBeanSupport implements TimerManager, TimerManagerMBean
41 {
42
43    public boolean isStopped()
44    {
45       return false;
46    }
47
48    public boolean isSuspending()
49    {
50       return false;
51    }
52
53    public void resume()
54    {
55
56    }
57
58    public Timer schedule(TimerListener listener, Date JavaDoc time)
59    {
60       return null;
61    }
62
63    public Timer schedule(TimerListener listener, Date JavaDoc time, long period)
64    {
65       return null;
66    }
67
68    public Timer schedule(TimerListener listener, long delay)
69    {
70       return null;
71    }
72
73    public Timer schedule(TimerListener listener, long delay, long period)
74    {
75       return null;
76    }
77
78    public void suspend()
79    {
80
81    }
82
83    public Timer schedule(TimerExcecutionContext context)
84    {
85       return null;
86    }
87
88    public Timer schedule(TimerListener listener, Date JavaDoc time, TimerPeriod period)
89    {
90       return null;
91    }
92
93    public Timer schedule(TimerListener listener, TimerDate time, TimerPeriod period)
94    {
95       return null;
96    }
97
98    public void cancelTimer(Timer timer)
99    {
100       
101    }
102
103    public void cancelTimer(String JavaDoc timerName)
104    {
105       
106    }
107
108 }
109
Popular Tags