parameters: (self)
return_statement: return tuple(socks)
docstring: Get monitor sockets that use msgrv2 to operate.
  
          :return socks: tuple of strings; strings are individual sockets.
docstring_summary: Get monitor sockets that use msgrv2 to operate.
docstring_tokens: Get monitor sockets that use msgrv2 to operate .
function: def get_msgrv2_mon_socks(self):
          """
          Get monitor sockets that use msgrv2 to operate.
  
          :return socks: tuple of strings; strings are individual sockets.
          """
          from json import loads
  
          output = loads(self.raw_cluster_cmd('--format=json', 'mon', 'dump'))
          socks = []
          for mon in output['mons']:
              for addrvec_mem in mon['public_addrs']['addrvec']:
                  if addrvec_mem['type'] == 'v2':
                      socks.append(addrvec_mem['addr'])
          return tuple(socks)
function_tokens: def get_msgrv2_mon_socks ( self ) : from json import loads output = loads ( self . raw_cluster_cmd ( '--format=json' , 'mon' , 'dump' ) ) socks = [ ] for mon in output [ 'mons' ] : for addrvec_mem in mon [ 'public_addrs' ] [ 'addrvec' ] : if addrvec_mem [ 'type' ] == 'v2' : socks . append ( addrvec_mem [ 'addr' ] ) return tuple ( socks )