python/ray/state.py
def actor_table(self, actor_id):
        """Fetch and parse the actor table information for a single actor ID.

        Args:
            actor_id: A hex string of the actor ID to fetch information about.
                If this is None, then the actor table is fetched.

        Returns:
            Information from the actor table.
        """
        self._check_connected()

        if actor_id is not None:
            actor_id = ray.ActorID(hex_to_binary(actor_id))
            actor_info = self.global_state_accessor.get_actor_info(actor_id)
            if actor_info is None:
                return {}
            else:
                actor_table_data = gcs_utils.ActorTableData.FromString(actor_info)
                return self._gen_actor_info(actor_table_data)
        else:
            actor_table = self.global_state_accessor.get_actor_table()
            results = {}
            for i in range(len(actor_table)):
                actor_table_data = gcs_utils.ActorTableData.FromString(actor_table[i])
                results[
                    binary_to_hex(actor_table_data.actor_id)
                ] = self._gen_actor_info(actor_table_data)

            return results
Fetch and parse the actor table information for a single actor ID.

        Args:
            actor_id: A hex string of the actor ID to fetch information about.
                If this is None, then the actor table is fetched.

        Returns:
            Information from the actor table.
        
Fetch and parse the actor table information for a single actor ID.
Fetch and parse the actor table information for a single actor ID .
def actor_table(self, actor_id):
        self._check_connected()
        if actor_id is not None:
            actor_id = ray.ActorID(hex_to_binary(actor_id))
            actor_info = self.global_state_accessor.get_actor_info(actor_id)
            if actor_info is None:
                return {}
            else:
                actor_table_data = gcs_utils.ActorTableData.FromString(actor_info)
                return self._gen_actor_info(actor_table_data)
        else:
            actor_table = self.global_state_accessor.get_actor_table()
            results = {}
            for i in range(len(actor_table)):
                actor_table_data = gcs_utils.ActorTableData.FromString(actor_table[i])
                results[
                    binary_to_hex(actor_table_data.actor_id)
                ] = self._gen_actor_info(actor_table_data)
            return results
def actor_table ( self , actor_id ) : self . _check_connected ( ) if actor_id is not None : actor_id = ray . ActorID ( hex_to_binary ( actor_id ) ) actor_info = self . global_state_accessor . get_actor_info ( actor_id ) if actor_info is None : return { } else : actor_table_data = gcs_utils . ActorTableData . FromString ( actor_info ) return self . _gen_actor_info ( actor_table_data ) else : actor_table = self . global_state_accessor . get_actor_table ( ) results = { } for i in range ( len ( actor_table ) ) : actor_table_data = gcs_utils . ActorTableData . FromString ( actor_table [ i ] ) results [ binary_to_hex ( actor_table_data . actor_id ) ] = self . _gen_actor_info ( actor_table_data ) return results
Fetch and parse the actor table information for a single actor ID.
Fetch and parse the actor table information for a single actor ID .
"""Fetch and parse the actor table information for a single actor ID.

        Args:
            actor_id: A hex string of the actor ID to fetch information about.
                If this is None, then the actor table is fetched.

        Returns:
            Information from the actor table.
        """
Information from the actor table.
Information from the actor table .
self
actor_id
A hex string of the actor ID to fetch information about.
If this is None, then the actor table is fetched.
A hex string of the actor ID to fetch information about . If this is None then the actor table is fetched .