KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > hook > TestReady


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: TestReady.java,v 1.1 2005/03/30 15:20:45 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 TestReady 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         try{
53             String JavaDoc name=n.getName();
54             System.out.println("OnReady Test, node name: "+name);
55         }catch(Exception JavaDoc e){e.printStackTrace();}
56     }
57     public void onDeadline(Object JavaDoc b,BnNodeLocal n) throws HeroHookException {
58     }
59
60 }
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Popular Tags