Class LocalDistributor

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.util.function.Predicate<org.openqa.selenium.remote.http.HttpRequest>, org.openqa.selenium.remote.http.HttpHandler, org.openqa.selenium.remote.http.Routable, HasReadyState

    public class LocalDistributor
    extends Distributor
    implements java.io.Closeable
    • Constructor Detail

      • LocalDistributor

        public LocalDistributor​(org.openqa.selenium.remote.tracing.Tracer tracer,
                                EventBus bus,
                                org.openqa.selenium.remote.http.HttpClient.Factory clientFactory,
                                SessionMap sessions,
                                NewSessionQueue sessionQueue,
                                SlotSelector slotSelector,
                                Secret registrationSecret,
                                java.time.Duration healthcheckInterval,
                                boolean rejectUnsupportedCaps,
                                java.time.Duration sessionRequestRetryInterval)
    • Method Detail

      • create

        public static Distributor create​(org.openqa.selenium.grid.config.Config config)
      • refresh

        @Beta
        public void refresh()
      • getAvailableNodes

        protected java.util.Set<NodeStatus> getAvailableNodes()
      • newSession

        public org.openqa.selenium.internal.Either<org.openqa.selenium.SessionNotCreatedException,​CreateSessionResponse> newSession​(SessionRequest request)
                                                                                                                                   throws org.openqa.selenium.SessionNotCreatedException
        Specified by:
        newSession in class Distributor
        Throws:
        org.openqa.selenium.SessionNotCreatedException
      • getUpNodeCount

        public long getUpNodeCount()
      • getDownNodeCount

        public long getDownNodeCount()
      • getActiveSlots

        public int getActiveSlots()
      • getIdleSlots

        public int getIdleSlots()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable