org.openqa.selenium.server
Class CommandResultHolder

java.lang.Object
  extended by org.openqa.selenium.server.CommandResultHolder

public class CommandResultHolder
extends Object

Holds the command to be next run in the browser

Version:
$Revision: 734 $
Author:
Jennifer Bevan

Field Summary
protected static String CMD_NULL_RESULT_MSG
           
protected static String CMD_TIMED_OUT_MSG
           
 
Constructor Summary
CommandResultHolder(String queueId, long timeoutInSeconds)
           
 
Method Summary
 String getResult()
          Get a result out of the result holder (from the browser), waiting no longer than the timeout.
 boolean isEmpty()
           
 String peek()
           
 void poisonPollers()
           
 boolean putResult(String res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_TIMED_OUT_MSG

protected static final String CMD_TIMED_OUT_MSG
See Also:
Constant Field Values

CMD_NULL_RESULT_MSG

protected static final String CMD_NULL_RESULT_MSG
See Also:
Constant Field Values
Constructor Detail

CommandResultHolder

public CommandResultHolder(String queueId,
                           long timeoutInSeconds)
Method Detail

getResult

public String getResult()
Get a result out of the result holder (from the browser), waiting no longer than the timeout.

Returns:
the result from the result holder

putResult

public boolean putResult(String res)

isEmpty

public boolean isEmpty()

peek

public String peek()

poisonPollers

public void poisonPollers()


Copyright © 2012. All Rights Reserved.