public class SeLionRemoteProxy
extends org.openqa.grid.selenium.proxy.DefaultRemoteProxy
DefaultRemoteProxy
for SeLion. NodeForceRestartServlet
. The number of unique sessions is controlled via the json config file
SeLionConfig.json
with the setting uniqueSessionCount
."uniqueSessionCount": 25Here the value 25 indicates that the proxy will stop accepting new connections after 25 unique sessions and trigger a graceful shutdown (see below). A value of <=0 indicates that this feature is disabled.
NodeForceRestartServlet
. In the case of a graceful restart, the proxy respects a wait timeout for any
sessions in progress to complete. This is controlled via the json config file SeLionConfig.json
with the
setting nodeRecycleThreadWaitTimeout
."nodeRecycleThreadWaitTimeout": 300Here the value 300 is in seconds -- the proxy will wait this amount of time before forcing a shutdown action. A value of 0 indicates that the proxy will wait indefinitely.
NodeAutoUpgradeServlet
.NodeAutoUpgradeServlet
, NodeForceRestartServlet
, and
LogServlet
Constructor and Description |
---|
SeLionRemoteProxy(org.openqa.grid.common.RegistrationRequest request,
org.openqa.grid.internal.Registry registry) |
Modifier and Type | Method and Description |
---|---|
void |
afterSession(org.openqa.grid.internal.TestSession session) |
void |
forceNodeShutdown()
Forcefully shuts the node down by calling
NodeForceRestartServlet |
org.openqa.grid.internal.TestSession |
getNewSession(Map<String,Object> requestedCapability) |
int |
getTotalSessionsComplete() |
int |
getTotalSessionsStarted() |
long |
getUptimeInMinutes() |
boolean |
isScheduledForRecycle() |
void |
requestNodeShutdown()
Gracefully shuts the node down by;
1. |
boolean |
supportsAutoUpgrade() |
boolean |
supportsForceShutdown() |
boolean |
supportsViewLogs() |
boolean |
upgradeNode(String downloadJSON)
Upgrades the node by calling
NodeAutoUpgradeServlet and then requestNodeShutdown() |
addNewEvent, afterCommand, beforeCommand, beforeRelease, beforeSession, getHtmlRender, isAlive, isDown, onEvent, startPolling, stopPolling, teardown
compareTo, equals, forceSlotCleanerRun, getCapabilityHelper, getConfig, getHttpClientFactory, getId, getLastSessionStart, getMaxNumberOfConcurrentTestSessions, getNewInstance, getOriginalRegistrationRequest, getRegistry, getRemoteHost, getResourceUsageInPercent, getStatus, getTestSlots, getTimeOut, getTotalUsed, hasCapability, hashCode, isBusy, setupTimeoutListener, toString
public SeLionRemoteProxy(org.openqa.grid.common.RegistrationRequest request, org.openqa.grid.internal.Registry registry) throws IOException
request
- a RegistrationRequest
request which represents the basic information that is to be consumed by
the grid when it is registering a new node.registry
- a Registry
object that represents the Grid's registry.IOException
public boolean upgradeNode(String downloadJSON)
NodeAutoUpgradeServlet
and then requestNodeShutdown()
downloadJSON
- the download.json to install on nodetrue
on success. false
when an error occured.public org.openqa.grid.internal.TestSession getNewSession(Map<String,Object> requestedCapability)
getNewSession
in interface org.openqa.grid.internal.RemoteProxy
getNewSession
in class org.openqa.grid.selenium.proxy.DefaultRemoteProxy
public void afterSession(org.openqa.grid.internal.TestSession session)
afterSession
in interface org.openqa.grid.internal.listeners.TestSessionListener
afterSession
in class org.openqa.grid.selenium.proxy.DefaultRemoteProxy
public void requestNodeShutdown()
forceNodeShutdown()
public void forceNodeShutdown()
NodeForceRestartServlet
public long getUptimeInMinutes()
public int getTotalSessionsComplete()
public int getTotalSessionsStarted()
public boolean isScheduledForRecycle()
true
or false
, whether the proxy is scheduled for recyclepublic boolean supportsForceShutdown()
NodeForceRestartServlet
public boolean supportsAutoUpgrade()
NodeAutoUpgradeServlet
public boolean supportsViewLogs()
LogServlet
Copyright © 2016 PayPal Open Source. All rights reserved.