tango.net.cluster.NetworkClient

License:

BSD style: see license.txt

Version:

July 2004: Initial release

Author:

Kris
class NetworkClient #
The base class for all cluster clients (such as CacheInvalidator) which acts simply as a container for the operating IChannel and the configured ICluster. The former specifies something akin to a 'topic' in the pub/sub world, while the latter provides access to the underlying functional substrate (the QOS implementation).
this(ICluster cluster, char[] channel) #
Construct this client with the specified channel and cluster. The former specifies something akin to a 'topic', whilst the latter provides access to the underlying functional substrate (the QOS implementation). A good way to think about channels is to map them directly to a class name. That is, since you send and recieve classes on a channel, you might utilize the class name as the channel name (this.classinfo.name).
IChannel channel() #
Return the channel we're tuned to
ICluster cluster() #
Return the cluster specified during construction
Time time() #
Return the current time
ILogger log() #
Return the Log instance
IChannel createChannel(char[] name) #
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).
class ClusterFullException : ClusterException #
This exception is thrown by the cluster subsystem when an attempt is made to place additional content into a full queue
class ClusterEmptyException : ClusterException #
This exception is thrown by the cluster subsystem when an attempt is made to converse with a non-existant cluster, or one where all cluster-servers have died.