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

RollCall Class Reference

Inheritance diagram for RollCall:

Payload List of all members.

Public Member Functions

 this ()
 this (char[] name, ushort port1, ushort port2, bool request=false)
void read (IReader reader)
void write (IWriter writer)
Payload create ()
char[] getGuid ()

Static Public Member Functions

 this ()

Public Attributes

char[] name
int port1
int port2
bool request

Private Member Functions

void destroy ()
long getTime ()
void setTime (long time)
Object create (IReader reader)

Private Attributes

import mango io PickleRegistry

Detailed Description

An IPayload used by the cluster client and server during discovery lookup and liveness broadcasts. The client broadcasts one of these at startup to see which servers are alive. The server responds with a reply RollCall stating its name and port. The server will also broadcast one of these when it first starts, such that any running clients can tell the server has 'recovered'.

Definition at line 51 of file RollCall.d.


Member Function Documentation

this  )  [inline, static]
 

Register this class for pickling, so we can resurrect instances when they arrive on a network datagram.

Definition at line 67 of file RollCall.d.

this  )  [inline]
 

Definition at line 76 of file RollCall.d.

this char[]  name,
ushort  port1,
ushort  port2,
bool  request = false
[inline]
 

Definition at line 84 of file RollCall.d.

References port1, port2, and request.

void read IReader  reader  )  [inline]
 

Recover the timestamp from the provided reader

Reimplemented from Payload.

Definition at line 96 of file RollCall.d.

References IReader::get(), port1, port2, and request.

void write IWriter  writer  )  [inline]
 

Emit our timestamp to the provided writer

Reimplemented from Payload.

Definition at line 109 of file RollCall.d.

References port1, port2, IWriter::put(), and request.

Payload create  )  [inline]
 

Overridable create method that simply instantiates a new instance. May be used to allocate subclassses from a freelist

Reimplemented from Payload.

Definition at line 122 of file RollCall.d.

char [] getGuid  )  [inline]
 

Return the guid for this payload. This should be unique per payload class, if said class is used in conjunction with the clustering facilities. Inspected by the Pickle utilitiy classes.

Reimplemented from Payload.

Definition at line 131 of file RollCall.d.

void destroy  )  [inline, inherited]
 

Destroy this payload. Often used to return instances to a freelist, or otherwise release resources.

Reimplemented from IPayload.

Reimplemented in QueuedEntry, InvalidatorPayload, and ClusterEntry.

Definition at line 58 of file Payload.d.

long getTime  )  [inline, inherited]
 

Return the timestamp associated with this payload

Reimplemented from IPayload.

Definition at line 68 of file Payload.d.

References Payload::time.

Referenced by ChannelCache::lockWhereInvalid().

void setTime long  time  )  [inline, inherited]
 

Set the timestamp of this payload

Reimplemented from IPayload.

Definition at line 79 of file Payload.d.

References time.

Object create IReader  reader  )  [inline, inherited]
 

Create a new instance of a payload, and populate it via read() using the specified reader

Reimplemented from IPickleFactory.

Reimplemented in Message, and Task.

Definition at line 113 of file Payload.d.

References Payload::create(), and Payload::read().


Member Data Documentation

char [] name
 

Definition at line 53 of file RollCall.d.

Referenced by Cluster::notify().

int port1
 

Definition at line 54 of file RollCall.d.

Referenced by Cluster::notify(), read(), this(), and write().

int port2
 

Definition at line 54 of file RollCall.d.

Referenced by Cluster::notify(), read(), this(), and write().

bool request
 

Definition at line 56 of file RollCall.d.

Referenced by ClusterServer::notify(), Cluster::notify(), read(), this(), and write().

import mango io PickleRegistry [private]
 

Definition at line 58 of file RollCall.d.


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:09 2004 for Mango by doxygen 1.3.6