Class InstanceDescriptorImpl

    • Method Detail

      • setInstanceName

        public void setInstanceName​(String instanceName)
      • addHttpPort

        public void addHttpPort​(int httpPort)
        Parameters:
        httpPort - the httpPort to add
      • setHostName

        public void setHostName​(InetAddress hostName)
        Parameters:
        hostName - the hostName to set
      • addHttpsPort

        public void addHttpsPort​(int httpsPort)
        Parameters:
        httpsPort - the httpsPort to add
      • hashCode

        public int hashCode()
        Overrides hashcode based purely on the UUID hashcode
        Overrides:
        hashCode in class Object
        Returns:
        The UUID-based hash code.
      • isLiteMember

        public boolean isLiteMember()
        Checks whether or not this instance is described as a Lite Hazelcast member
        Specified by:
        isLiteMember in interface InstanceDescriptor
        Returns:
        true if this instance describes a Hazelcast Lite member
      • setLiteMember

        public void setLiteMember​(boolean isLiteMember)
        Sets whether or not this descriptor describes a Hazelcast Lite member
        Parameters:
        isLiteMember - true if this descriptor describes a Hazelcast Lite member
      • isMicroInstance

        public boolean isMicroInstance()
        Checks whether or not this descriptor describes a Payara Micro instance
        Specified by:
        isMicroInstance in interface InstanceDescriptor
        Returns:
        true if this descriptor describes a Payara Micro instances
      • isPayaraInstance

        public boolean isPayaraInstance()
        Checks whether or not this descriptor describes a Payara Server instance or the DAS
        Specified by:
        isPayaraInstance in interface InstanceDescriptor
        Returns:
        true if this descriptor describes a Payara Server instance or the DAS
      • setInstanceType

        public void setInstanceType​(String instanceType)
        Sets what instance type this descriptor describes
        Parameters:
        instanceType - the instance type that this descriptor should describe
      • getInstanceType

        public String getInstanceType()
        Gets the instance type that this descriptor describes
        Specified by:
        getInstanceType in interface InstanceDescriptor
        Returns:
        the instance type that this descriptor describes
      • setHazelcastPort

        public void setHazelcastPort​(int hazelcastPort)
        Sets the Hazelcast port number for this instance descriptor
        Parameters:
        hazelcastPort - the port number in use by Hazelcast
      • getHazelcastPort

        public int getHazelcastPort()
        Gets the Hazelcast port number of this instance descriptor
        Specified by:
        getHazelcastPort in interface InstanceDescriptor
        Returns:
        the port number in use by Hazelcast
      • setAdminPort

        public void setAdminPort​(int adminPort)
        Sets the admin port number for this instance descriptor
        Parameters:
        adminPort - the admin port number in use by this instance
      • getAdminPort

        public int getAdminPort()
        Gets the admin port number for this instance descriptor
        Specified by:
        getAdminPort in interface InstanceDescriptor
        Returns:
        the admin port number in use by this instance
      • toJsonString

        public String toJsonString​(boolean verbose)
        Specified by:
        toJsonString in interface InstanceDescriptor
        Parameters:
        verbose - whether to include servlet mappings in the returned object.
        Returns:
        a JSON formatted string representing the instance.
      • setInstanceGroup

        public void setInstanceGroup​(String instanceGroup)
        Sets the instance group name
        Parameters:
        instanceGroup - The instance group name
      • setLastHeartBeat

        public void setLastHeartBeat​(long val)
      • getLastHearbeat

        public long getLastHearbeat()
        Specified by:
        getLastHearbeat in interface InstanceDescriptor
        Returns:
        the timestamp of the last heartbeat this instance updated