|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--rrdService.service.LockTable
The class LockTable allows to keep lock of RoundRobin
- shared variable
LockRoundRobinDataBase LockRoundRobinLibrary Mutex
, Serialized FormInner classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
private java.io.File |
mountLibrary
mountlibrary the mount library |
private static Mutex |
mutex
allows the synchonization of the acces to the lockTable |
Fields inherited from class java.util.Hashtable |
count, emptyEnumerator, emptyIterator, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES |
Constructor Summary | |
LockTable(java.io.File mountLibrary)
Constructor of class LockTable |
Method Summary | |
Lock |
getLock(java.lang.String key)
getLock return the Lock withe the scpecific key |
private void |
initLockTable(java.io.File directory)
initLockTable scan the mount library and initialiize the lockTable |
Lock |
putLock(java.lang.String key,
Lock lock)
putLock Maps the specified key to the specified value in this hashtable. |
void |
rehashLockTable()
rehashLockTable Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently. |
Lock |
removeLock(java.lang.String key)
removeLock Removes the key (and its corresponding value) from this LockTable |
java.lang.String |
toString()
toString return a string representation of a Lock Table |
Methods inherited from class java.util.Hashtable |
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
private java.io.File mountLibrary
private static Mutex mutex
Constructor Detail |
public LockTable(java.io.File mountLibrary) throws java.lang.Exception
mountLibrary
- the mount libraryMethod Detail |
public Lock getLock(java.lang.String key) throws java.lang.Exception
key
- a string representing the file mount of RoundRobin to returnprivate void initLockTable(java.io.File directory) throws java.lang.Exception
directory
- the mount directory of the mount librarypublic Lock putLock(java.lang.String key, Lock lock)
key
- a string representing the file mount of RoundRobin to putlock
- the lock of RoundRobinpublic void rehashLockTable() throws java.lang.Exception
public Lock removeLock(java.lang.String key) throws java.lang.Exception
key
- a string representing the file mount of RoundRobin to removepublic java.lang.String toString()
toString
in class java.util.Hashtable
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |