Class MonitoredObjectReply.Builder

    • Method Detail

      • hostName

        public MonitoredObjectReply.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 MonitoredObjectReply.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.
      • statuses

        public MonitoredObjectReply.Builder statuses​(PersistentStatusMessage[] statuses)
        Sets persistent status array to given value. Note that given array is copied.
        Parameters:
        statuses - persistent status array.
        Returns:
        this Builder instance.
        Throws:
        java.lang.NullPointerException - if statuses is null.