Interface RouterInfo


  • public interface RouterInfo
    Information about a cranker router
    • Method Detail

      • services

        List<ConnectorService> services()
        Returns:
        All the services that are registered with this cranker
      • service

        Optional<ConnectorService> service​(String routeName)
        Finds the service with the given route
        Parameters:
        routeName - The route name (or "*" for the catch-all route)
        Returns:
        The service data with the given route name, or Optional.empty() if not found
      • toMap

        Map<String,​Object> toMap()
        A map containing the state of the router. It is the same data as returned by services() but in a form may allow you to more easily expose it (e.g. as JSON) without having to traverse the object model yourself.
        Returns:
        Service info in key-value pairs
      • darkHosts

        Set<DarkHost> darkHosts()
        Returns:
        All the hosts that this router currently will not send requests to
      • waitingTasks

        Map<String,​List<String>> waitingTasks()
        A map containing the tasks, which are waiting for available connector sockets
        Returns:
        Map, key is the route, value is list of the target urls