def address(self): """ Node address as elliptics.Address """ if hasattr(self, '__group_id__'): return Address.from_host_port(self.__address__, self.__group_id__) else: return Address.from_host_port(self.__address__)
def address(self): """ Node address as elliptics.Address """ if hasattr(cls, 'group_id'): return Address.from_host_port(self.__address__, self.__group_id__) else: return Address.from_host_port(self.__address__)
def lookup_address(self, key, group_id): """ Returns address of node from specified group_id which is responsible for the key\n address = session.lookup_address('looking up key') print '\'looking up key\' should lives on node:', address """ return Address.from_host_port(super(Session, self).lookup_address(key, group_id))
def lookup_address(self, key, group_id): """ Returns address of node from specified group_id which is responsible for the key\n address = session.lookup_address('looking up key') print '\'looking up key\' should lives on node:', address """ return Address.from_host_port(super(Session, self).lookup_address(key, group_id))
def storage_address(self): """ Node address as elliptics.Address """ return Address.from_host_port(self.__storage_address__)
def address(self): """ Node address as elliptics.Address """ return Address.from_host_port(self.__address__)
def address(self): """ Node address as elliptics.Address """ return Address.from_host_port(self.__address__, self.__group_id__)