Class DistributedNodesInfo


  • public final class DistributedNodesInfo
    extends Object
    This is used to represent the various nodes of the distributed container.
    • Constructor Detail

      • DistributedNodesInfo

        public DistributedNodesInfo()
    • Method Detail

      • nodeName

        public String nodeName()
        Get the nodeName property: Name of the node under a distributed container.
        Returns:
        the nodeName value.
      • withNodeName

        public DistributedNodesInfo withNodeName​(String nodeName)
        Set the nodeName property: Name of the node under a distributed container.
        Parameters:
        nodeName - the nodeName value to set.
        Returns:
        the DistributedNodesInfo object itself.
      • status

        public String status()
        Get the status property: Status of this Node. Failed | Succeeded.
        Returns:
        the status value.
      • withStatus

        public DistributedNodesInfo withStatus​(String status)
        Set the status property: Status of this Node. Failed | Succeeded.
        Parameters:
        status - the status value to set.
        Returns:
        the DistributedNodesInfo object itself.
      • errorDetail

        public ErrorDetail errorDetail()
        Get the errorDetail property: Error Details if the Status is non-success.
        Returns:
        the errorDetail value.
      • withErrorDetail

        public DistributedNodesInfo withErrorDetail​(ErrorDetail errorDetail)
        Set the errorDetail property: Error Details if the Status is non-success.
        Parameters:
        errorDetail - the errorDetail value to set.
        Returns:
        the DistributedNodesInfo object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.