Class LocalNetworkAwarenessBaseAgent

    • Field Detail

      • address

        protected java.lang.String address
        The address.
      • port

        protected int port
        The receiver port.
      • waitfactor

        protected double waitfactor
        The search delay (time that is waited for responses from platforms) as factor of default/service call timeout (default 0.333..., i.e. a third of default/service call timeout).
      • filter

        protected SlidingCuckooFilter filter
        The duplicate filter of the current search, if any.
      • sendsocket

        protected java.net.DatagramSocket sendsocket
        The socket to send.
      • recvsocket

        protected java.net.DatagramSocket recvsocket
        The socket to receive.
    • Constructor Detail

      • LocalNetworkAwarenessBaseAgent

        public LocalNetworkAwarenessBaseAgent()
    • Method Detail

      • init

        public void init()
                  throws java.lang.Exception
        At startup create a multicast socket for listening.
        Throws:
        java.lang.Exception
      • shutdown

        public void shutdown()
                      throws java.lang.Exception
        Stop the service.
        Throws:
        java.lang.Exception
      • sendInfo

        protected IFuture<java.lang.Void> sendInfo​(java.lang.String address,
                                                   int port)
        Send address info to a given multi or unicast address.