org.glite.ce.monitorapij.sensor
Class BooleanLock

java.lang.Object
  extended byorg.glite.ce.monitorapij.sensor.BooleanLock

public class BooleanLock
extends java.lang.Object


Constructor Summary
BooleanLock()
           
BooleanLock(boolean initialValue)
           
 
Method Summary
 boolean isFalse()
           
 boolean isTrue()
           
 void setValue(boolean newValue)
           
 boolean waitToSetFalse(long msTimeout)
           
 boolean waitToSetTrue(long msTimeout)
           
 boolean waitUntilFalse(long msTimeout)
           
 boolean waitUntilStateIs(boolean state, long msTimeout)
           
 boolean waitUntilTrue(long msTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanLock

public BooleanLock()

BooleanLock

public BooleanLock(boolean initialValue)
Method Detail

setValue

public void setValue(boolean newValue)

waitToSetTrue

public boolean waitToSetTrue(long msTimeout)
                      throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitToSetFalse

public boolean waitToSetFalse(long msTimeout)
                       throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

isTrue

public boolean isTrue()

isFalse

public boolean isFalse()

waitUntilTrue

public boolean waitUntilTrue(long msTimeout)
                      throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitUntilFalse

public boolean waitUntilFalse(long msTimeout)
                       throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitUntilStateIs

public boolean waitUntilStateIs(boolean state,
                                long msTimeout)
                         throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException