KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > dyade > aaa > agent > NetworkMBean


1 /*
2  * Copyright (C) 2001 - 2003 ScalAgent Distributed Technologies
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17  * USA.
18  */

19 package fr.dyade.aaa.agent;
20
21 public interface NetworkMBean {
22   /**
23    * Returns this <code>Engine</code>'s name.
24    *
25    * @return this <code>Engine</code>'s name.
26    */

27   public String JavaDoc getName();
28
29   /**
30    * Tests if the engine is alive.
31    *
32    * @return true if this <code>MessageConsumer</code> is alive; false
33    * otherwise.
34    */

35   public boolean isRunning();
36
37   /** Causes this engine to begin execution */
38   public void start() throws Exception JavaDoc;
39
40   /** Forces the engine to stop executing */
41   public void stop();
42
43   /**
44    * Returns a string representation of this consumer.
45    *
46    * @return A string representation of this consumer.
47    */

48   public String JavaDoc toString();
49
50   /**
51    * Gets the WDActivationPeriod value.
52    *
53    * @return the WDActivationPeriod value
54    */

55   public long getWDActivationPeriod();
56
57   /**
58    * Sets the WDActivationPeriod value.
59    *
60    * @param WDActivationPeriod the WDActivationPeriod value
61    */

62   public void setWDActivationPeriod(long WDActivationPeriod);
63
64   /**
65    * Gets the WDNbRetryLevel1 value.
66    *
67    * @return the WDNbRetryLevel1 value
68    */

69   public int getWDNbRetryLevel1();
70
71   /**
72    * Sets the WDNbRetryLevel1 value.
73    *
74    * @param WDNbRetryLevel1 the WDNbRetryLevel1 value
75    */

76   public void setWDNbRetryLevel1(int WDNbRetryLevel1);
77
78   /**
79    * Gets the WDRetryPeriod1 value.
80    *
81    * @return the WDRetryPeriod1 value
82    */

83   public long getWDRetryPeriod1();
84
85   /**
86    * Sets the WDRetryPeriod1 value.
87    *
88    * @param WDRetryPeriod1 the WDRetryPeriod1 value
89    */

90   public void setWDRetryPeriod1(long WDRetryPeriod1);
91
92   /**
93    * Gets the WDNbRetryLevel2 value.
94    *
95    * @return the WDNbRetryLevel2 value
96    */

97   public int getWDNbRetryLevel2();
98
99   /**
100    * Sets the WDNbRetryLevel2 value.
101    *
102    * @param WDNbRetryLevel2 the WDNbRetryLevel2 value
103    */

104   public void setWDNbRetryLevel2(int WDNbRetryLevel2);
105
106   /**
107    * Gets the WDRetryPeriod2 value.
108    *
109    * @return the WDRetryPeriod2 value
110    */

111   public long getWDRetryPeriod2();
112
113   /**
114    * Sets the WDRetryPeriod2 value.
115    *
116    * @param WDRetryPeriod2 the WDRetryPeriod2 value
117    */

118   public void setWDRetryPeriod2(long WDRetryPeriod2);
119
120   /**
121    * Gets the WDRetryPeriod3 value.
122    *
123    * @return the WDRetryPeriod3 value
124    */

125   public long getWDRetryPeriod3();
126
127   /**
128    * Sets the WDRetryPeriod3 value.
129    *
130    * @param WDRetryPeriod3 the WDRetryPeriod3 value
131    */

132   public void setWDRetryPeriod3(long WDRetryPeriod3);
133
134   /**
135    * Gets the number of waiting messages in this engine.
136    *
137    * return the number of waiting messages.
138    */

139   public int getNbWaitingMessages();
140 }
141
Popular Tags