Class LocalNode
- java.lang.Object
-
- org.openqa.selenium.grid.node.Node
-
- org.openqa.selenium.grid.node.local.LocalNode
-
- All Implemented Interfaces:
org.openqa.selenium.remote.http.HttpHandler,org.openqa.selenium.remote.http.Routable,HasReadyState
public class LocalNode extends Node
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocalNode.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalNode.Builderbuilder(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, java.net.URI uri, java.net.URI gridUri, Secret registrationSecret)voiddrain()org.openqa.selenium.remote.http.HttpResponseexecuteWebDriverCommand(org.openqa.selenium.remote.http.HttpRequest req)AvailabilitygetAvailability()intgetCurrentSessionCount()java.net.URIgetExternalUri()java.net.URIgetGridUri()HealthCheckgetHealthCheck()floatgetLoad()intgetMaxSessionCount()java.lang.StringgetNodeId()SessiongetSession(org.openqa.selenium.remote.SessionId id)NodeStatusgetStatus()org.openqa.selenium.io.TemporaryFilesystemgetTemporaryFilesystem(org.openqa.selenium.remote.SessionId id)intgetTotalSlots()longgetUsedSlots()booleanisReady()booleanisSessionOwner(org.openqa.selenium.remote.SessionId id)booleanisSupporting(org.openqa.selenium.Capabilities capabilities)org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,CreateSessionResponse>newSession(CreateSessionRequest sessionRequest)voidstop(org.openqa.selenium.remote.SessionId id)org.openqa.selenium.remote.http.HttpResponseuploadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id)-
Methods inherited from class org.openqa.selenium.grid.node.Node
execute, getId, getNodeVersion, getOsInfo, getUri, isDraining, matches
-
-
-
-
Method Detail
-
builder
public static LocalNode.Builder builder(org.openqa.selenium.remote.tracing.Tracer tracer, EventBus bus, java.net.URI uri, java.net.URI gridUri, Secret registrationSecret)
-
isReady
public boolean isReady()
-
getCurrentSessionCount
public int getCurrentSessionCount()
-
getMaxSessionCount
public int getMaxSessionCount()
-
getAvailability
public Availability getAvailability()
-
getTotalSlots
public int getTotalSlots()
-
getUsedSlots
public long getUsedSlots()
-
getLoad
public float getLoad()
-
getExternalUri
public java.net.URI getExternalUri()
-
getGridUri
public java.net.URI getGridUri()
-
getNodeId
public java.lang.String getNodeId()
-
isSupporting
public boolean isSupporting(org.openqa.selenium.Capabilities capabilities)
- Specified by:
isSupportingin classNode
-
newSession
public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,CreateSessionResponse> newSession(CreateSessionRequest sessionRequest)
- Specified by:
newSessionin classNode
-
isSessionOwner
public boolean isSessionOwner(org.openqa.selenium.remote.SessionId id)
- Specified by:
isSessionOwnerin classNode
-
getSession
public Session getSession(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException
- Specified by:
getSessionin classNode- Throws:
org.openqa.selenium.NoSuchSessionException
-
getTemporaryFilesystem
public org.openqa.selenium.io.TemporaryFilesystem getTemporaryFilesystem(org.openqa.selenium.remote.SessionId id) throws java.io.IOException- Overrides:
getTemporaryFilesystemin classNode- Throws:
java.io.IOException
-
executeWebDriverCommand
public org.openqa.selenium.remote.http.HttpResponse executeWebDriverCommand(org.openqa.selenium.remote.http.HttpRequest req)
- Specified by:
executeWebDriverCommandin classNode
-
uploadFile
public org.openqa.selenium.remote.http.HttpResponse uploadFile(org.openqa.selenium.remote.http.HttpRequest req, org.openqa.selenium.remote.SessionId id)- Specified by:
uploadFilein classNode
-
stop
public void stop(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException
-
getStatus
public NodeStatus getStatus()
-
getHealthCheck
public HealthCheck getHealthCheck()
- Specified by:
getHealthCheckin classNode
-
-