01: /*
02: * Copyright (c) 2001 by Matt Welsh and The Regents of the University of
03: * California. All rights reserved.
04: *
05: * Permission to use, copy, modify, and distribute this software and its
06: * documentation for any purpose, without fee, and without written agreement is
07: * hereby granted, provided that the above copyright notice and the following
08: * two paragraphs appear in all copies of this software.
09: *
10: * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
11: * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
12: * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
13: * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14: *
15: * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
16: * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
17: * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
18: * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
19: * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
20: *
21: * Author: Matt Welsh <mdw@cs.berkeley.edu>
22: *
23: */
24:
25: package seda.sandStorm.api.internal;
26:
27: import seda.sandStorm.api.*;
28:
29: /**
30: * SystemManagerIF is an internal interface allowing modules
31: * to access systemwide features. For now this allows a module to
32: * access, create, and destroy thread managers. It also allows a
33: * module to create a stage with its own stage wrapper.
34: */
35: public interface SystemManagerIF {
36:
37: /**
38: * Get the default thread manager.
39: */
40: public ThreadManagerIF getThreadManager();
41:
42: /**
43: * Get the thread manager registered under the given name.
44: */
45: public ThreadManagerIF getThreadManager(String name);
46:
47: /**
48: * Add a thread manager to the system.
49: */
50: public void addThreadManager(String name, ThreadManagerIF threadmgr);
51:
52: /**
53: * Create a stage from the given stage wrapper.
54: * If 'initialize' is true, the stage will be initialized immediately.
55: * Returns a handle to the stage.
56: */
57: public StageIF createStage(StageWrapperIF wrapper,
58: boolean initialize) throws Exception;
59:
60: }
|