sfi.director.util.Lock Class Reference

List of all members.

Public Member Functions

 Lock (boolean islocal) throws DirectorException
synchronized void unlock () throws DirectorException
synchronized void setOption (String name, String value)
 set lock option.
Options getOptions ()
 get options associated with this lock.

Static Public Member Functions

static Lock inspect (String what) throws DirectorException
static Lock inspect (String what, boolean islocal) throws DirectorException
static void startLocking ()
static Lock LocalLock (String what, int timeout) throws DirectorException
static Lock LocalLock (String what) throws DirectorException
static Lock Lock (String what, int timeout) throws DirectorException
static Lock Lock (String what) throws DirectorException
static Lock Lock (String what, int timeout, boolean islocal) throws DirectorException
static Lock Lock (String what, boolean islocal) throws DirectorException
static void shutdown ()

Protected Member Functions

void finalize ()

Static Package Attributes

static Vector locks = new Vector()
static Thread locker
static final int lock_renewal = 60*1000
static final int lock_release = 120*1000

Constructor & Destructor Documentation

sfi.director.util.Lock.Lock boolean  islocal  )  throws DirectorException
 

static Lock sfi.director.util.Lock.Lock String  what,
int  timeout
throws DirectorException [static]
 

static Lock sfi.director.util.Lock.Lock String  what  )  throws DirectorException [static]
 

static Lock sfi.director.util.Lock.Lock String  what,
int  timeout,
boolean  islocal
throws DirectorException [static]
 

static Lock sfi.director.util.Lock.Lock String  what,
boolean  islocal
throws DirectorException [static]
 


Member Function Documentation

void sfi.director.util.Lock.finalize  )  [protected]
 

Options sfi.director.util.Lock.getOptions  ) 
 

get options associated with this lock.

Note that you must set options via the setOption() method rather than using something like getOptions().setOption(...).

static Lock sfi.director.util.Lock.inspect String  what,
boolean  islocal
throws DirectorException [static]
 

static Lock sfi.director.util.Lock.inspect String  what  )  throws DirectorException [static]
 

static Lock sfi.director.util.Lock.LocalLock String  what  )  throws DirectorException [static]
 

static Lock sfi.director.util.Lock.LocalLock String  what,
int  timeout
throws DirectorException [static]
 

synchronized void sfi.director.util.Lock.setOption String  name,
String  value
 

set lock option.

The option/value is stored in the lock object and is not interpreted by the Lock class. This can be used to pass data about the lock holder to anyone inspecting this lock.

static void sfi.director.util.Lock.shutdown  )  [static]
 

static void sfi.director.util.Lock.startLocking  )  [static]
 

synchronized void sfi.director.util.Lock.unlock  )  throws DirectorException
 


Member Data Documentation

final int sfi.director.util.Lock.lock_release = 120*1000 [static, package]
 

final int sfi.director.util.Lock.lock_renewal = 60*1000 [static, package]
 

Thread sfi.director.util.Lock.locker [static, package]
 

Vector sfi.director.util.Lock.locks = new Vector() [static, package]
 


The documentation for this class was generated from the following file:
Generated on Sat May 19 01:20:00 2012 for Node Director by  doxygen 1.4.5