Class ApplicationInfo.Builder

    • Method Detail

      • buildImpl

        protected ApplicationInfo buildImpl()
        Returns an ApplicationInfo instance based on this builder's configuration. This method is called only after the builder configuration is successfully validated.
        Specified by:
        buildImpl in class EMessageObject.Builder<ApplicationInfo>
        Returns:
        new ApplicationInfo instance.
      • hostName

        public ApplicationInfo.Builder hostName​(java.lang.String name)
        Sets host name to given value. This name does not need to be a network host name but any name meaningful to the application and those monitoring it.
        Parameters:
        name - host name.
        Returns:
        this Builder instance.
        Throws:
        java.lang.IllegalArgumentException - if name is either null or empty.
      • appName

        public ApplicationInfo.Builder appName​(java.lang.String name)
        Sets application name to given value.
        Parameters:
        name - application name.
        Returns:
        this Builder instance.
        Throws:
        java.lang.IllegalArgumentException - if name is either null or empty.