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, teardowncompareTo, equals, forceSlotCleanerRun, getCapabilityHelper, getConfig, getHttpClientFactory, getId, getLastSessionStart, getMaxNumberOfConcurrentTestSessions, getNewInstance, getOriginalRegistrationRequest, getRegistry, getRemoteHost, getResourceUsageInPercent, getStatus, getTestSlots, getTimeOut, getTotalUsed, hasCapability, hashCode, isBusy, setupTimeoutListener, toStringpublic 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.IOExceptionpublic 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.RemoteProxygetNewSession in class org.openqa.grid.selenium.proxy.DefaultRemoteProxypublic void afterSession(org.openqa.grid.internal.TestSession session)
afterSession in interface org.openqa.grid.internal.listeners.TestSessionListenerafterSession in class org.openqa.grid.selenium.proxy.DefaultRemoteProxypublic void requestNodeShutdown()
forceNodeShutdown()public void forceNodeShutdown()
NodeForceRestartServletpublic long getUptimeInMinutes()
public int getTotalSessionsComplete()
public int getTotalSessionsStarted()
public boolean isScheduledForRecycle()
true or false, whether the proxy is scheduled for recyclepublic boolean supportsForceShutdown()
NodeForceRestartServletpublic boolean supportsAutoUpgrade()
NodeAutoUpgradeServletpublic boolean supportsViewLogs()
LogServletCopyright © 2016 PayPal Open Source. All rights reserved.