Class EndPoint


  • public class EndPoint
    extends java.lang.Object
    Defines a cloud end-point (server). Copyright (c) DeviceAtlas Limited 2023. All Rights Reserved.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double avg
      end-point ranking test results - when the API checks the end-point the average of test request times will be put in this property
      java.lang.String headersPath  
      java.lang.String host
      end-point host base URL
      java.util.List<java.lang.Double> latencies
      end-point ranking test results - when the API checks the end-point test request times will be put in this list
      java.lang.String path
      end-point host URL path
      java.lang.String port
      end-point host port
    • Constructor Summary

      Constructors 
      Constructor Description
      EndPoint()
      Creates DeviceAtlas EndPoint object
      EndPoint​(java.lang.String host, java.lang.String port)
      Creates DeviceAtlas EndPoint object
      EndPoint​(java.lang.String host, java.lang.String port, java.lang.String path)
      Creates DeviceAtlas EndPoint object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fromMap​(java.util.Map<java.lang.String,​java.lang.Object> server)
      Fill EndPoint object with data from HashMap
      java.lang.String getHeadersUrl()
      Get server connectable URL for the headers path
      java.lang.String getUrl()
      Get server connectable URL
      java.util.Map toMap()
      Return a HashMap of EndPoint object data
      • Methods inherited from class java.lang.Object

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

      • host

        public java.lang.String host
        end-point host base URL
      • port

        public java.lang.String port
        end-point host port
      • path

        public java.lang.String path
        end-point host URL path
      • headersPath

        public java.lang.String headersPath
      • latencies

        public java.util.List<java.lang.Double> latencies
        end-point ranking test results - when the API checks the end-point test request times will be put in this list
      • avg

        public double avg
        end-point ranking test results - when the API checks the end-point the average of test request times will be put in this property
    • Constructor Detail

      • EndPoint

        public EndPoint()
        Creates DeviceAtlas EndPoint object
      • EndPoint

        public EndPoint​(java.lang.String host,
                        java.lang.String port)
        Creates DeviceAtlas EndPoint object
        Parameters:
        host - EndPoint host address
        port - EndPoint port number
      • EndPoint

        public EndPoint​(java.lang.String host,
                        java.lang.String port,
                        java.lang.String path)
        Creates DeviceAtlas EndPoint object
        Parameters:
        host - EndPoint host address
        port - EndPoint port number
        path - EndPoint URL path
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Get server connectable URL
        Returns:
        end-point full URL (host+port+path)
      • getHeadersUrl

        public java.lang.String getHeadersUrl()
        Get server connectable URL for the headers path
      • toMap

        public java.util.Map toMap()
        Return a HashMap of EndPoint object data
        Returns:
        HashMap of EndPoint object data
      • fromMap

        public void fromMap​(java.util.Map<java.lang.String,​java.lang.Object> server)
        Fill EndPoint object with data from HashMap
        Parameters:
        server - server-data HashMap