org.openqa.selenium.firefox.internal
Class SocketLock

java.lang.Object
  extended by org.openqa.selenium.firefox.internal.SocketLock
All Implemented Interfaces:
Lock

public class SocketLock
extends java.lang.Object
implements Lock

Implements Lock via an implementation that uses a well-known server socket.

Author:
[email protected] (Gregory Block)

Constructor Summary
SocketLock(int lockPort)
          Constructs a new SocketLock.
 
Method Summary
 void lock(long timeoutInMillis)
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketLock

public SocketLock(int lockPort)
Constructs a new SocketLock. Attempts to lock the lock will attempt to acquire the specified port number, and wait for it to become free.

Parameters:
lockPort - the port number to lock
Method Detail

lock

public void lock(long timeoutInMillis)
          throws WebDriverException
Specified by:
lock in interface Lock
Throws:
WebDriverException

unlock

public void unlock()
Specified by:
unlock in interface Lock


Copyright © 2010. All Rights Reserved.