parameters: (self)
return_statement: return endpoints
docstring: get pserver endpoints
          Returns:
              endpoints(list): pserver endpoints
docstring_summary: get pserver endpoints
          Returns:
              endpoints(list): pserver endpoints
docstring_tokens: get pserver endpoints Returns : endpoints ( list ) : pserver endpoints
function: def get_pserver_endpoints(self):
          """
          get pserver endpoints
          Returns:
              endpoints(list): pserver endpoints
          """
          if self._pserver_rand_port <= 0:
              import random
              random.seed(self._server_num())
              # port will be randomly generated from 60001 to 63999
              # random seed is server num so that all nodes will get
              # the same port
              self._pserver_rand_port = random.randint(60001, 64000)
          endpoints = [
              x + ":" + str(self._pserver_rand_port)
              for x in self._server_endpoints
          ]
          return endpoints
function_tokens: def get_pserver_endpoints ( self ) : if self . _pserver_rand_port <= 0 : import random random . seed ( self . _server_num ( ) ) # port will be randomly generated from 60001 to 63999 # random seed is server num so that all nodes will get # the same port self . _pserver_rand_port = random . randint ( 60001 , 64000 ) endpoints = [ x + ":" + str ( self . _pserver_rand_port ) for x in self . _server_endpoints ] return endpoints