132
|
1 /*******************************************************************************
|
|
2
|
|
3 copyright: Copyright (c) 2004 Kris Bell. All rights reserved
|
|
4
|
|
5 license: BSD style: $(LICENSE)
|
|
6
|
|
7 version: July 2004: Initial release
|
|
8
|
|
9 author: Kris
|
|
10
|
|
11 *******************************************************************************/
|
|
12
|
|
13 module tango.net.cluster.model.ICluster;
|
|
14
|
|
15 public import tango.util.log.Logger;
|
|
16
|
|
17 public import tango.net.cluster.model.IChannel,
|
|
18 tango.net.cluster.model.IMessage,
|
|
19 tango.net.cluster.model.IConsumer;
|
|
20
|
|
21 /*******************************************************************************
|
|
22
|
|
23 The contract exposed by each QOS implementation. This is the heart
|
|
24 of the cluster package, designed with multiple implementations in
|
|
25 mind. It should be reasonably straightforward to construct specific
|
|
26 implementations upon a database, pub/sub system, or other substrates.
|
|
27
|
|
28 *******************************************************************************/
|
|
29
|
|
30 interface ICluster
|
|
31 {
|
|
32 /***********************************************************************
|
|
33
|
|
34 Create a channel instance. Every cluster operation has
|
|
35 a channel provided as an argument
|
|
36
|
|
37 ***********************************************************************/
|
|
38
|
|
39 IChannel createChannel (char[] channel);
|
|
40
|
|
41 /***********************************************************************
|
|
42
|
|
43 Return the Logger associated with this cluster
|
|
44
|
|
45 ***********************************************************************/
|
|
46
|
|
47 Logger log ();
|
|
48 }
|