KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > client > wfservice > LimitAdministration


1 package org.enhydra.shark.api.client.wfservice;
2
3 import org.enhydra.shark.api.SharkTransaction;
4 import org.enhydra.shark.api.client.wfbase.BaseException;
5
6 /**
7  * Interface used to perform some administrative operations.
8  * @author Sasa Bojanic
9  * @author Vladimir Puskas
10  */

11 public interface LimitAdministration {
12
13    /**
14     * This method is used to let shark know who uses this API.
15     *
16     * @param userId String representing user Id.
17     *
18     */

19    void connect (String JavaDoc userId);
20
21    /**
22     When this operation is called, shark checks for limits of all
23     active activities and all active processes, and takes appropriate
24     action if limits are exceeded.
25     */

26    void checkLimits () throws BaseException;
27
28    /**
29     When this operation is called, shark checks for limits of all
30     active activities and all active processes, and takes appropriate
31     action if limits are exceeded.
32     */

33    void checkLimits (SharkTransaction t) throws BaseException;
34
35    /**
36     When this operation is called, shark checks for limits of all
37     active processes specified in the list, and all of their active
38     activities, and takes appropriate action if limits are exceeded.
39     */

40    void checkLimits (String JavaDoc[] procIds) throws BaseException;
41
42    /**
43     When this operation is called, shark checks for limits of all
44     active processes specified in the list, and all of their active
45     activities, and takes appropriate action if limits are exceeded.
46     */

47    void checkLimits (SharkTransaction t,String JavaDoc[] procIds) throws BaseException;
48
49    /**
50     When this operation is called, shark checks for limits of the process
51     specified by given parameter, and all of its active activities, and takes
52     appropriate action if limits are exceeded.
53     */

54    void checkLimits (String JavaDoc procId) throws BaseException;
55
56    /**
57     When this operation is called, shark checks for limits of the process
58     specified by given parameter, and all of its active activities, and takes
59     appropriate action if limits are exceeded.
60     */

61    void checkLimits (SharkTransaction t,String JavaDoc procId) throws BaseException;
62
63    /**
64     When this operation is called, shark checks for limit of the process
65     specified by given parameter, and takes appropriate action if limit is exceeded.
66     */

67    void checkProcessLimit (String JavaDoc procId) throws BaseException;
68
69    /**
70     When this operation is called, shark checks for limit of the process
71     specified by given parameter, and takes appropriate action if limit is exceeded.
72     */

73    void checkProcessLimit (SharkTransaction t,String JavaDoc procId) throws BaseException;
74
75    /**
76     When this operation is called, shark checks for limit of the activity
77     specified by given parameters, and takes appropriate action if limit is exceeded.
78     */

79    void checkActivityLimit (String JavaDoc procId,String JavaDoc actId) throws BaseException;
80
81    /**
82     When this operation is called, shark checks for limit of the activity
83     specified by given parameters, and takes appropriate action if limit is exceeded.
84     */

85    void checkActivityLimit (SharkTransaction t,String JavaDoc procId,String JavaDoc actId) throws BaseException;
86
87 }
88
Popular Tags