KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > acct > AcctServiceMBean


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2002 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.acct;
15
16 import org.jboss.system.ServiceMBean;
17
18 /**
19  * Accout Service MBean Interface
20  *
21  * @author Jorg Janke
22  * @version $Id: AcctServiceMBean.java,v 1.2 2002/11/18 06:11:57 jjanke Exp $
23  */

24 public interface AcctServiceMBean extends ServiceMBean
25 {
26     public static final String JavaDoc NAME = "AcctService";
27     public static final String JavaDoc FULL_NAME = "Compiere:service=AcctService";
28
29     /**
30      * Set Sleep Minutes
31      * @param sleepMinutes sleep time in minutes
32      */

33     public void setSleepMinutes (int sleepMinutes);
34
35     /**
36      * Get Sleep Minutes
37      * @return sleep minutes
38      */

39     public int getSleepMinutes ();
40
41     /**
42      * Get Statistics
43      * @return statistical info
44      */

45     public String JavaDoc getStatistics();
46
47     /**
48      * Get DataSource Name
49      * @return DataSource Name
50      */

51     public String JavaDoc getDataSourceName();
52
53     /**
54      * Set DataSource Name
55      * @param dataSourceName DataSource Name
56      */

57     public void setDataSourceName (String JavaDoc dataSourceName);
58
59     /*************************************************************************/
60
61     /**
62      * Get Number of Clients
63      * @return Number of clients
64      */

65     public int getClientCount();
66
67     /**
68      * Set Batch Size
69      * @param batchSize batch size
70      */

71     public void setBatchSize(int batchSize);
72
73     /**
74      * Get Batch Size
75      * @return batch Size
76      */

77     public int getBatchSize();
78
79     /**
80      * Set Number of Workers
81      * @param noWorkers no of workers
82      */

83     public void setWorkerCount (int noWorkers);
84
85     /**
86      * Get Number of Workers
87      * @return Number of Workers
88      */

89     public int getWorkerCount();
90
91     /**
92      * Set Max Sleep Minutes
93      * @param maxSleepMinutes Max Sleep Minutes
94      */

95     public void setMaxSleepMinutes(int maxSleepMinutes);
96
97     /**
98      * Get Max Sleep Minutes
99      * @return Max Sleep Minutes
100      */

101     public int getMaxSleepMinutes();
102
103     /**
104      * Run Now
105      */

106     public void runNow();
107
108
109 } // AcctServiceMBean
Popular Tags