|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openqa.selenium.server.CommandQueue
public class CommandQueue
Schedules and coordinates commands to be run.
Constructor Summary | |
---|---|
CommandQueue(java.lang.String newSessionId,
java.lang.String newUniqueId,
int opDelay,
RemoteControlConfiguration configuration)
|
|
CommandQueue(java.lang.String newSessionId,
java.lang.String newUniqueId,
RemoteControlConfiguration configuration)
|
Method Summary | |
---|---|
void |
addJsWindowNameVar(java.lang.String jsWindowNameVar)
|
void |
declareClosed()
|
java.lang.String |
doCommand(java.lang.String command,
java.lang.String field,
java.lang.String value)
Sends the specified command (to be retrieved by the next call to handle command result), and returns the result of that command. |
protected void |
doCommandWithoutWaitingForAResponse(java.lang.String command,
java.lang.String field,
java.lang.String value)
|
void |
endOfLife()
clear the contents of the threads, and unblocks polling threads |
BrowserResponseSequencer |
getBrowserResponseSequencer()
|
FrameAddress |
getFrameAddress()
|
protected static java.lang.String |
getIdentification(java.lang.String caller,
java.lang.String queueId)
|
protected RemoteCommand |
getNextCommand()
Get, and remove from the command holder, the next command to run |
int |
getQueueDelay()
|
protected java.lang.String |
getResult()
Get, and remove from the command holder, the next command to run |
static int |
getSpeed()
|
RemoteCommand |
handleCommandResult(java.lang.String commandResult)
Accepts a command reply, and retrieves the next command to run. |
protected void |
handleCommandResultWithoutWaitingForACommand(java.lang.String commandResult)
|
boolean |
isClosed()
|
boolean |
isResultExpected()
Get whether this command queue expects a result instead of just "OK". |
boolean |
isWindowPointedToByJsVariable(java.lang.String jsVariableName)
|
protected RemoteCommand |
peekAtCommand()
|
protected java.lang.String |
peekAtResult()
|
protected boolean |
putCommand(RemoteCommand cmd)
|
protected boolean |
putResult(java.lang.String result)
|
void |
setFrameAddress(FrameAddress frameAddress)
|
void |
setQueueDelay(int i)
|
protected void |
setResultExpected(boolean resultExpected)
|
static void |
setSpeed(int i)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandQueue(java.lang.String newSessionId, java.lang.String newUniqueId, RemoteControlConfiguration configuration)
public CommandQueue(java.lang.String newSessionId, java.lang.String newUniqueId, int opDelay, RemoteControlConfiguration configuration)
Method Detail |
---|
public java.lang.String doCommand(java.lang.String command, java.lang.String field, java.lang.String value)
command
- - the remote command verbfield
- - the first remote argument (meaning depends on the verb)value
- - the second remote argument
protected void doCommandWithoutWaitingForAResponse(java.lang.String command, java.lang.String field, java.lang.String value) throws WindowClosedException
WindowClosedException
protected java.lang.String getResult()
public java.lang.String toString()
toString
in class java.lang.Object
public RemoteCommand handleCommandResult(java.lang.String commandResult)
Accepts a command reply, and retrieves the next command to run.
commandResult
- - the reply from the previous command, or null
protected void handleCommandResultWithoutWaitingForACommand(java.lang.String commandResult)
protected RemoteCommand getNextCommand()
protected static java.lang.String getIdentification(java.lang.String caller, java.lang.String queueId)
public void endOfLife()
public FrameAddress getFrameAddress()
public void setFrameAddress(FrameAddress frameAddress)
public boolean isResultExpected()
public void setQueueDelay(int i)
public int getQueueDelay()
public static void setSpeed(int i)
public static int getSpeed()
public boolean isWindowPointedToByJsVariable(java.lang.String jsVariableName)
public void addJsWindowNameVar(java.lang.String jsWindowNameVar)
public void declareClosed()
public boolean isClosed()
public BrowserResponseSequencer getBrowserResponseSequencer()
protected void setResultExpected(boolean resultExpected)
protected java.lang.String peekAtResult()
protected RemoteCommand peekAtCommand()
protected boolean putResult(java.lang.String result)
protected boolean putCommand(RemoteCommand cmd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |