Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1369

Help, expanded options and cleaner output for MulticastTool

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.3
    • Component/s: server
    • Labels:
      None

      Description

      java -cp target/openejb-client-3.1.3-SNAPSHOT.jar org.apache.openejb.client.MulticastTool --help

      Options:
      -h, --host=String Address of the multicast channel. Default is 239.255.3.2
      -p, --port=int Port of the multicast channel. Default is 6142
      --date-format=String Date format to use for log lines. Default is HH:mm:ss

      Sending:
      -s, --send=String Optional message to broadcast to the channel.
      -r, --rate=long Resend every N milliseconds. Zero sends just once. Default is 1000

      Advanced:
      --broadcast=boolean java.net.MulticastSocket#setBroadcast.
      --loopback-mode=boolean java.net.MulticastSocket#setLoopbackMode.
      --receive-buffer-size=int java.net.MulticastSocket#setReceiveBufferSize.
      --reuse-address=boolean java.net.MulticastSocket#setReuseAddress.
      --send-buffer-size=int java.net.MulticastSocket#setSendBufferSize.
      --so-timeout=int java.net.MulticastSocket#setSoTimeout.
      --time-to-live=int java.net.MulticastSocket#setTimeToLive.
      --traffic-class=int java.net.MulticastSocket#setTrafficClass.

      java -cp target/openejb-client-3.1.3-SNAPSHOT.jar org.apache.openejb.client.MulticastTool --port 4312 --send blue

      Connected
      host : 239.255.3.2
      port : 4312

      Socket
      broadcast : true
      loopback-mode : false
      receive-buffer-size : 65507
      reuse-address : true
      send-buffer-size : 65507
      so-timeout : 0
      time-to-live : 1
      traffic-class : 0

      Sending
      send : orange
      rate : 1000

      Listening....
      16:43:47 - 192.168.42.22 - orange
      16:43:48 - 192.168.42.22 - blue
      16:43:48 - 192.168.42.22 - orange
      16:43:49 - 192.168.42.22 - blue
      16:43:49 - 192.168.42.22 - orange
      16:43:50 - 192.168.42.22 - blue
      16:43:50 - 192.168.42.22 - orange

        Attachments

          Activity

            People

            • Assignee:
              dblevins David Blevins
              Reporter:
              dblevins David Blevins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: