|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.server.CommandQueue
public class CommandQueue
Schedules and coordinates commands to be run.
SingleEntryAsyncQueue
Constructor Summary | |
---|---|
CommandQueue(java.lang.String sessionId,
java.lang.String uniqueId,
java.util.concurrent.locks.Lock dataLock)
|
Method Summary | |
---|---|
void |
addJsWindowNameVar(java.lang.String jsWindowNameVar)
|
void |
declareClosed()
|
void |
discardCommandResult()
Throw away a command reply. |
java.lang.String |
doCommand(java.lang.String command,
java.lang.String field,
java.lang.String value)
Schedules the specified command to be retrieved by the next call to handle command result, and returns the result of that command. |
void |
doCommandWithoutWaitingForAResponse(java.lang.String command,
java.lang.String field,
java.lang.String value)
|
void |
endOfLife()
Empty queues, and thereby wake up any threads that are hanging around and send them on their way. |
BrowserResponseSequencer |
getBrowserResponseSequencer()
|
SingleEntryAsyncQueue |
getCommandResultHolder()
|
FrameAddress |
getFrameAddress()
|
static int |
getSpeed()
|
java.lang.String |
getUniqueId()
|
RemoteCommand |
handleCommandResult(java.lang.String commandResult)
Accepts a command reply, and retrieves the next command to run. |
void |
handleCommandResultWithoutWaitingForAResponse(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)
|
void |
setFrameAddress(FrameAddress frameAddress)
|
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 sessionId, java.lang.String uniqueId, java.util.concurrent.locks.Lock dataLock)
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
public void doCommandWithoutWaitingForAResponse(java.lang.String command, java.lang.String field, java.lang.String value) throws WindowClosedException
WindowClosedException
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
public void handleCommandResultWithoutWaitingForAResponse(java.lang.String commandResult)
public void discardCommandResult()
Throw away a command reply.
public void endOfLife()
Empty queues, and thereby wake up any threads that are hanging around and send them on their way.
public java.lang.String getUniqueId()
public FrameAddress getFrameAddress()
public void setFrameAddress(FrameAddress frameAddress)
public SingleEntryAsyncQueue getCommandResultHolder()
public void setResultExpected(boolean resultExpected)
public boolean isResultExpected()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |