org.ops4j.pax.exam.container.def.internal
Class TestContainerSemaphore

java.lang.Object
  extended by org.ops4j.pax.exam.container.def.internal.TestContainerSemaphore

public class TestContainerSemaphore
extends java.lang.Object

Simple file system lock. Will check for existing lock file in given folder (constructor) and report on acquire() On release it will remove the lock. Any failing acquire is "logged" into the lock file.


Constructor Summary
TestContainerSemaphore(java.io.File workingFolder)
           
 
Method Summary
 boolean acquire()
           
 java.io.File getLockFile()
           
 void release()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestContainerSemaphore

public TestContainerSemaphore(java.io.File workingFolder)
Method Detail

acquire

public boolean acquire()

release

public void release()

getLockFile

public java.io.File getLockFile()


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.