Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

NetworkAlert Class Reference

Inheritance diagram for NetworkAlert:

Client List of all members.

Public Member Functions

 this (ICluster cluster, char[] channel)
IConsumer createConsumer (IEventListener listener)
void broadcast (IPayload payload=null)

Private Member Functions

IChannel getChannel ()
ICluster getCluster ()
ulong getTime ()
IChannel createChannel (char[] name)

Static Private Member Functions

static this ()

Static Private Attributes

static NullMessage EmptyMessage

Member Function Documentation

this ICluster  cluster,
char[]  channel
[inline]
 

Construct a NetworkAlert gateway on the provided QOS cluster for the specified channel. Each subsequent alert will take place over the given channel.

Reimplemented from Client.

Definition at line 57 of file NetworkAlert.d.

IConsumer createConsumer IEventListener  listener  )  [inline]
 

Definition at line 66 of file NetworkAlert.d.

References ICluster::createConsumer().

void broadcast IPayload  payload = null  )  [inline]
 

Definition at line 75 of file NetworkAlert.d.

References ICluster::broadcast().

static this  )  [inline, static, inherited]
 

Definition at line 66 of file Client.d.

References Client::EmptyMessage.

IChannel getChannel  )  [inline, inherited]
 

Return the channel we're tuned to

Definition at line 97 of file Client.d.

References Client::channel.

ICluster getCluster  )  [inline, inherited]
 

Return the cluster specified during construction

Definition at line 108 of file Client.d.

References Client::cluster.

ulong getTime  )  [inline, inherited]
 

Return the number of milliseconds since Jan 1st 1970

Definition at line 119 of file Client.d.

IChannel createChannel char[]  name  )  [inline, inherited]
 

Create a channel with the specified name. A channel represents something akin to a publush/subscribe topic, or a radio station. These are used to segregate cluster operations into a set of groups, where each group is represented by a channel. Channel names are whatever you want then to be; use of dot notation has proved useful in the past. In fact, a good way to think about channels is to map them directly to a class name. That is, since you typically send and recieve classes on a channel, you might utilize the class name as the channel (this.classinfo.name).

Definition at line 139 of file Client.d.

References Client::cluster, and ICluster::createChannel().


Member Data Documentation

NullMessage EmptyMessage [static, inherited]
 

Definition at line 64 of file Client.d.

Referenced by Client::this().


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:40 2005 for Mango by  doxygen 1.4.0