Filewatcher File Search File Search
Catalog
Content Search
» » » » zeroc-ice_3.4.2.orig.tar.gz » Content »
pkg://zeroc-ice_3.4.2.orig.tar.gz:5485106/Ice-3.4.2/java/demo/IceStorm/clock/  info  downloads

README

Overview
--------

To run the demo:

Start the IceStorm service:

$ icebox --Ice.Config=config.icebox

This configuration assumes there is a subdirectory named db in the
current working directory.

In a separate window:

$ java Subscriber

In another window:

$ java Publisher

While the publisher continues to run, "tick" messages should be
displayed in the subscriber window.


Options
-------

Both the subscriber and publisher take an optional topic name as a
final argument. The default value for this topic is "time".

Through the use of command-line options both the subscriber and
publisher can use different QoS for sending and receiving messages.

For the subscriber:

java Subscriber --oneway

  The subscriber receives events as oneway messages. This is the
  default.

java Subscriber --datagram

  The subscriber receives events as datagrams.

java Subscriber --twoway

  The subscriber receives events as twoway messages.

java Subscriber --ordered

  The subscriber receives events as twoway messages with guaranteed
  ordering.

java Subscriber --batch

  This is an additional flag that forwards datagram and oneway events
  to the subscriber in batches.

java Subscriber --id <id>

  This option specifies a unique identity for this subscriber. When
  you use this option, you should also run the subscriber on a fixed
  port by setting the Clock.Subscriber.Endpoints property. For
  example:

  $ subscriber --Clock.Subscriber.Endpoints="tcp -p <port> -h <host>"

  Replace "tcp" with "udp" when using the --datagram option.

java Subscriber --retryCount <count>

  This option sets the retry count for a subscriber. This option
  should be used in conjunction with the --id option. Setting
  retryCount changes the default subscriber QoS to twoway.

For the publisher:

java Publisher --oneway

  The publisher sends events as oneway messages. This is the default.

java Publisher --datagram

  The publisher sends events as datagrams.

java Publisher --twoway

  The publisher sends events as twoway messages.


Running the demo on several hosts
---------------------------------

You must modify several configuration files in order to run the
publisher, subscriber, and IceStorm service on separate hosts. For
the sake of discussion, let us assume that the processes are running
on the following hosts:

  Host <P>: publisher
  Host <S>: subscriber
  Host <I>: IceStorm

Replace <P>, <S>, and <I> with the appropriate host names or IP
addresses in the steps below:

1. Edit the subscriber's configuration file, config.sub, and change
   the TopicManager.Proxy property to

   TopicManager.Proxy=DemoIceStorm/TopicManager:default -h <I> -p 10000

2. Edit the publisher's configuration file, config.pub, and change
   the TopicManager.Proxy property to

   TopicManager.Proxy=DemoIceStorm/TopicManager:default -h <I> -p 10000

3. If you have a complex local network, such as hosts with multiple
   network adapters, you may also want to modify the Endpoints
   properties to explicitly include the host machine's name or IP
   address.

   In config.sub:

   Clock.Subscriber.Endpoints=tcp -h <S>:udp -h <S>

   In config.service:

   IceStorm.TopicManager.Endpoints=default -h <I> -p 10000
   IceStorm.Publish.Endpoints=tcp -h <I> -p 10001:udp -h <I> -p 10001

   In config.icebox:

   IceBox.ServiceManager.Endpoints=tcp -h <I> -p 9998

If you experience any network delays or errors, edit all of the
configuration files and enable the Ice.Trace.Network property. Running
the processes with this property enabled displays a log of Ice's
network activity and may help you to identify the problem more
quickly.
Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017 FileWatcher.com