public interface SeleniumRMIAgent
extends java.rmi.Remote
A Selenium RMI Server is the centralized controller embedded within each remote Selenium Standalone Server. This provides an RMI gateway to the remote host machines running a Selenium Server allowing us to provide additional functional features on the machine hosting the browsers of a Selenium test.
The Selenium RMI Agent is typically started automatically by SAFS/Selenium classes needing to communicate with the remote SAFS RMI Server.
Note: For consistent operation the safs.server.hostname
needs to be set in code or
on the command line before launching an Agent connecting to a remote Selenium RMI Server:
System.setProperty("safs.server.hostname", "<rmi server ip>");
System.setProperty("safs.server.hostname", "hostname.company.internal.net");
-Dsafs.server.hostname=<rmi server ip>
-Dsafs.server.hostname=hostname.company.internal.net
SeleniumServerRunner
,
SeleniumRMIServer
,
SeleniumServer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_RMI_AGENT
'SeleniumAgent'
|
static java.lang.String |
SERVER_HOSTNAME_SYSTEM_PROPERTY
'safs.server.hostname' Name of the System Property signifying a remote SAFS RMI Server
hostname to seek for a SAFS RMI Server.
|
Modifier and Type | Method and Description |
---|---|
java.rmi.server.ObjID |
getAgentID()
Called by an RMI Server.
|
java.lang.String |
getAgentName()
Called by an RMI Server.
|
void |
ping()
Called by an RMI Server.
|
java.lang.Object |
runCommand(java.lang.Object command)
Called by an RMI Server.
|
void |
shutdown()
Called by an RMI Server.
|
static final java.lang.String DEFAULT_RMI_AGENT
static final java.lang.String SERVER_HOSTNAME_SYSTEM_PROPERTY
void ping() throws java.rmi.RemoteException
java.rmi.RemoteException
java.rmi.server.ObjID getAgentID() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getAgentName() throws java.rmi.RemoteException
java.rmi.RemoteException
void shutdown() throws java.rmi.RemoteException
The Agent should accept the shutdown request and initiate a new shutdown Thread so that the call to shutdown from the Server can immediately return.
The Agent might normally reset itself to an idle state where it is polling once again for the existence of another RMI Server.
java.rmi.RemoteException
java.lang.Object runCommand(java.lang.Object command) throws java.rmi.RemoteException, java.lang.Exception
For example, the Client and Server may have been coded to pass string commands back and forth and the string commands can be parsed to provide an unlimited number of command possibilities.
command
- Object of a type expected by the Client implementation for this method.java.rmi.RemoteException
java.lang.Exception
Copyright © SAS Institute. All Rights Reserved.