KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > hook > TestDeadline


1 /**
2  *
3  * Bonita
4  * Copyright (C) 1999 Bull S.A.
5  * Bull 68 route de versailles 78434 Louveciennes Cedex France
6  * Further information: bonita@objectweb.org
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21  * USA
22  *
23  *
24 --------------------------------------------------------------------------
25  * $Id: TestDeadline.java,v 1.2 2005/01/14 17:16:17 mvaldes Exp $
26  *
27 --------------------------------------------------------------------------
28  */

29
30
31 package hero.hook;
32
33 import hero.util.HeroHookException;
34 import hero.interfaces.BnNodeLocal;
35
36
37 public class TestDeadline implements hero.hook.NodeHookI {
38
39     public void create(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {
40
41     }
42
43     public void beforeStart(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {
44     }
45     public void afterStart(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {
46     }
47     public void beforeTerminate(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {}
48     public void afterTerminate(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {}
49     public void onCancel(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {}
50     public void anticipate(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {}
51     public void onReady(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {}
52     public void onDeadline(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {
53     try{
54         String JavaDoc name=n.getName();
55         System.out.println("Deadline Test, node name: "+name);
56     }catch(Exception JavaDoc e){e.printStackTrace();}
57     }
58
59 }
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Popular Tags