Class MulticastDnsAdvertiser

  • All Implemented Interfaces:
    Advertiser

    @Plugin(name="multicastdns",
            category="Core",
            elementType="advertiser",
            printObject=false)
    public class MulticastDnsAdvertiser
    extends java.lang.Object
    implements Advertiser
    Advertise an entity via ZeroConf/MulticastDNS and the JmDNS library. The length of property names and values must be 255 bytes or less. Entries with names or values larger than 255 bytes will be removed prior to advertisement.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static Logger LOGGER
      Status logger.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object advertise​(java.util.Map<java.lang.String,​java.lang.String> properties)
      Advertise the provided entity.
      void unadvertise​(java.lang.Object serviceInfo)
      Unadvertise the previously advertised entity.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        protected static final Logger LOGGER
        Status logger.
    • Constructor Detail

      • MulticastDnsAdvertiser

        public MulticastDnsAdvertiser()
    • Method Detail

      • advertise

        public java.lang.Object advertise​(java.util.Map<java.lang.String,​java.lang.String> properties)
        Advertise the provided entity. Properties map provided in advertise method must include a "name" entry but may also provide "protocol" (tcp/udp) as well as a "port" entry The length of property names and values must be 255 bytes or less. Entries with names or values larger than 255 bytes will be removed prior to advertisement.
        Specified by:
        advertise in interface Advertiser
        Parameters:
        properties - the properties representing the entity to advertise
        Returns:
        the object which can be used to unadvertise, or null if advertisement was unsuccessful
      • unadvertise

        public void unadvertise​(java.lang.Object serviceInfo)
        Unadvertise the previously advertised entity.
        Specified by:
        unadvertise in interface Advertiser
        Parameters:
        serviceInfo -