Class MulticastReceiver

All Implemented Interfaces:
AddressBased, NetworkBased, PortBased, Pauseable, Plugin, Component, org.apache.log4j.spi.OptionHandler, Thresholdable

public class MulticastReceiver extends Receiver implements PortBased, AddressBased, Pauseable
Multicast-based receiver. Accepts LoggingEvents encoded using MulticastAppender and XMLLayout. The the XML data is converted back to a LoggingEvent and is posted.
  • Field Details

  • Constructor Details

    • MulticastReceiver

      public MulticastReceiver()
  • Method Details

    • getDecoder

      public String getDecoder()
    • setDecoder

      public void setDecoder(String decoder)
    • getPort

      public int getPort()
      Description copied from interface: PortBased
      Returns the Port # that this net based thing is using.
      Specified by:
      getPort in interface PortBased
      Returns:
      int port number
    • setPort

      public void setPort(int port)
    • getAddress

      public String getAddress()
      Description copied from interface: AddressBased
      Returns a String representation of the Address this instance encompasses.
      Specified by:
      getAddress in interface AddressBased
      Returns:
      String representation of the Address
    • setEncoding

      public void setEncoding(String encoding)
      The Encoding option specifies how the bytes are encoded. If this option is not specified, the system encoding will be used.
    • getEncoding

      public String getEncoding()
      Returns value of the Encoding option.
    • shutdown

      public void shutdown()
      Description copied from interface: Plugin
      Call when the plugin should be stopped.
      Specified by:
      shutdown in interface Plugin
    • setAddress

      public void setAddress(String address)
    • isPaused

      public boolean isPaused()
      Description copied from interface: Pauseable
      Get paused state.
      Specified by:
      isPaused in interface Pauseable
      Returns:
      paused state.
    • setPaused

      public void setPaused(boolean b)
      Description copied from interface: Pauseable
      Set paused state.
      Specified by:
      setPaused in interface Pauseable
      Parameters:
      b - new value
    • activateOptions

      public void activateOptions()
      Specified by:
      activateOptions in interface org.apache.log4j.spi.OptionHandler
    • setAdvertiseViaMulticastDNS

      public void setAdvertiseViaMulticastDNS(boolean advertiseViaMulticastDNS)
    • isAdvertiseViaMulticastDNS

      public boolean isAdvertiseViaMulticastDNS()