Package com.hsbc.cranker.mucranker
Interface RouterInfo
-
public interface RouterInfoInformation about a cranker router
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<DarkHost>darkHosts()Optional<ConnectorService>service(String routeName)Finds the service with the given routeList<ConnectorService>services()Map<String,Object>toMap()A map containing the state of the router.Map<String,List<String>>waitingTasks()A map containing the tasks, which are waiting for available connector sockets
-
-
-
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 byservices()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
-
-