Package org.openqa.selenium.grid.data
Class NodeStatus
- java.lang.Object
-
- org.openqa.selenium.grid.data.NodeStatus
-
public class NodeStatus extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NodeStatus(NodeId nodeId, java.net.URI externalUri, int maxSessionCount, java.util.Set<Slot> slots, Availability availability, java.time.Duration heartbeatPeriod, java.lang.String version, java.util.Map<java.lang.String,java.lang.String> osInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static NodeStatus
fromJson(org.openqa.selenium.json.JsonInput input)
Availability
getAvailability()
java.net.URI
getExternalUri()
java.time.Duration
getHeartbeatPeriod()
long
getLastSessionCreated()
float
getLoad()
int
getMaxSessionCount()
NodeId
getNodeId()
java.util.Map<java.lang.String,java.lang.String>
getOsInfo()
java.util.Set<Slot>
getSlots()
java.lang.String
getVersion()
boolean
hasCapability(org.openqa.selenium.Capabilities caps, SlotMatcher slotMatcher)
boolean
hasCapacity()
boolean
hasCapacity(org.openqa.selenium.Capabilities caps, SlotMatcher slotMatcher)
int
hashCode()
-
-
-
Constructor Detail
-
NodeStatus
public NodeStatus(NodeId nodeId, java.net.URI externalUri, int maxSessionCount, java.util.Set<Slot> slots, Availability availability, java.time.Duration heartbeatPeriod, java.lang.String version, java.util.Map<java.lang.String,java.lang.String> osInfo)
-
-
Method Detail
-
fromJson
public static NodeStatus fromJson(org.openqa.selenium.json.JsonInput input)
-
hasCapability
public boolean hasCapability(org.openqa.selenium.Capabilities caps, SlotMatcher slotMatcher)
-
hasCapacity
public boolean hasCapacity()
-
hasCapacity
public boolean hasCapacity(org.openqa.selenium.Capabilities caps, SlotMatcher slotMatcher)
-
getMaxSessionCount
public int getMaxSessionCount()
-
getNodeId
public NodeId getNodeId()
-
getExternalUri
public java.net.URI getExternalUri()
-
getSlots
public java.util.Set<Slot> getSlots()
-
getAvailability
public Availability getAvailability()
-
getHeartbeatPeriod
public java.time.Duration getHeartbeatPeriod()
-
getVersion
public java.lang.String getVersion()
-
getOsInfo
public java.util.Map<java.lang.String,java.lang.String> getOsInfo()
-
getLoad
public float getLoad()
-
getLastSessionCreated
public long getLastSessionCreated()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-