Class PeerManagerFacadeImpl

    • Constructor Detail

      • PeerManagerFacadeImpl

        public PeerManagerFacadeImpl​(RouterContext ctx)
    • Method Detail

      • startup

        public void startup()
        Description copied from interface: Service
        Instruct the service that it should start normal operation. This call DOES block until the service is ready.
        Specified by:
        startup in interface Service
      • shutdown

        public void shutdown()
        Description copied from interface: Service
        Instruct the service that the router is shutting down and that it should do whatever is necessary to go down gracefully. It should not depend on other components at this point. This call DOES block.
        Specified by:
        shutdown in interface Service
      • restart

        public void restart()
        Description copied from interface: Service
        Perform a soft restart.
        Specified by:
        restart in interface Service
      • getPeersByCapability

        public Set<Hash> getPeersByCapability​(char capability)
        Specified by:
        getPeersByCapability in interface PeerManagerFacade
        Parameters:
        capability - case-insensitive
        Returns:
        non-null unmodifiable set
      • countPeersByCapability

        public int countPeersByCapability​(char capability)
        Specified by:
        countPeersByCapability in interface PeerManagerFacade
        Parameters:
        capability - case-insensitive
        Returns:
        how many
        Since:
        0.9.45