(self, state_filter: Optional[Collection[str]] = None)
return [
            ClusterNodeMetadata(
                self.cluster_connector.get_agent_metadata(instance_metadata.ip_address), instance_metadata,
            )
            for group in self.resource_groups.values()
            for instance_metadata in group.get_instance_metadatas(state_filter)
        ]
Get a list of metadata about the nodes currently in the pool

        :param state_filter: only return nodes matching a particular state ('running', 'cancelled', etc)
        :returns: a list of InstanceMetadata objects
Get a list of metadata about the nodes currently in the pool
Get a list of metadata about the nodes currently in the pool
def get_node_metadatas(self, state_filter: Optional[Collection[str]] = None) -> Sequence[ClusterNodeMetadata]:
        """ Get a list of metadata about the nodes currently in the pool

        :param state_filter: only return nodes matching a particular state ('running', 'cancelled', etc)
        :returns: a list of InstanceMetadata objects
        """
        return [
            ClusterNodeMetadata(
                self.cluster_connector.get_agent_metadata(instance_metadata.ip_address), instance_metadata,
            )
            for group in self.resource_groups.values()
            for instance_metadata in group.get_instance_metadatas(state_filter)
        ]
def get_node_metadatas ( self , state_filter : Optional [ Collection [ str ] ] = None ) -> Sequence [ ClusterNodeMetadata ] : return [ ClusterNodeMetadata ( self . cluster_connector . get_agent_metadata ( instance_metadata . ip_address ) , instance_metadata , ) for group in self . resource_groups . values ( ) for instance_metadata in group . get_instance_metadatas ( state_filter ) ]