4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster Class Reference

Class manages documents locks. More...

Collaboration diagram for cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster:
Collaboration graph

Public Member Functions

 LockMaster ()
 
synchronized Padlock getSuggestionLock (Integer docId)
 
synchronized Padlock getSuggReqLock (Integer docId)
 
synchronized Padlock getDocumentLock (Integer docId)
 
Padlock getSessionsLock ()
 

Private Member Functions

synchronized Padlock makeSuggestionsPadlock (Integer docId)
 
synchronized Padlock makeSuggReqPadlock (Integer docId)
 
synchronized Padlock makeDocumentPadlock (Integer docId)
 

Private Attributes

ArrayList< PadlocksuggestionsLocks
 
ArrayList< PadlocksuggReqLocks
 
ArrayList< PadlockchangesDocLocks
 
Padlock sessionsLock
 

Detailed Description

Class manages documents locks.

Class manages documents locks.

Author
Martin Petr (xpetrm05)

Definition at line 30 of file LockMaster.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.LockMaster ( )

Constructor that inicialize locks arrays.

Definition at line 47 of file LockMaster.java.

Member Function Documentation

synchronized Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.getDocumentLock ( Integer  docId)

Method which provides access to document locks, when the lock for the document does not exist, method create it.

Parameters
docIdId of document for which lock is made available
Returns
lock for document for document with id in parameter

Definition at line 162 of file LockMaster.java.

Here is the call graph for this function:

Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.getSessionsLock ( )

Method which provides access to dsessions lock, when the lock for the sessions does not exist, method create it.

Returns
lock for sessions for document with id in parameter

Definition at line 181 of file LockMaster.java.

synchronized Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.getSuggestionLock ( Integer  docId)

Method which provides access to suggestions locks, when the lock for the document does not exist, method create it.

Parameters
docIdId of document for which lock is made available
Returns
lock for suggestions for document with id in parameter

Definition at line 82 of file LockMaster.java.

Here is the call graph for this function:

synchronized Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.getSuggReqLock ( Integer  docId)

Method which provides access to suggestion request locks, when the lock for the document does not exist, method create it.

Parameters
docIdId of document for which lock is made available
Returns
lock for suggestions requests for document with id in parameter

Definition at line 122 of file LockMaster.java.

Here is the call graph for this function:

synchronized Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.makeDocumentPadlock ( Integer  docId)
private

The method creates a new lock, if the docuemnt id is found, method returns the appropriate lock.

Parameters
docIdId of document for which lock is made available
Returns
new lock or appropriate lock

Definition at line 141 of file LockMaster.java.

Here is the call graph for this function:

Here is the caller graph for this function:

synchronized Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.makeSuggestionsPadlock ( Integer  docId)
private

The method creates a new lock, if the docuemnt id is found, method returns the appropriate lock.

Parameters
docIdId of document for which lock is made available
Returns
new lock or appropriate lock

Definition at line 61 of file LockMaster.java.

Here is the call graph for this function:

Here is the caller graph for this function:

synchronized Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.makeSuggReqPadlock ( Integer  docId)
private

The method creates a new lock, if the docuemnt id is found, method returns the appropriate lock.

Parameters
docIdId of document for which lock is made available
Returns
new lock or appropriate lock

Definition at line 101 of file LockMaster.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

ArrayList<Padlock> cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.changesDocLocks
private

Array of created locks for changes

Definition at line 39 of file LockMaster.java.

Padlock cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.sessionsLock
private

Lock that locks sessions list for change

Definition at line 42 of file LockMaster.java.

ArrayList<Padlock> cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.suggestionsLocks
private

Array of created locks for suggestions

Definition at line 33 of file LockMaster.java.

ArrayList<Padlock> cz.vutbr.fit.knot.annotations.comet.documentLock.LockMaster.suggReqLocks
private

Array of created locks for suggestions requests

Definition at line 36 of file LockMaster.java.


The documentation for this class was generated from the following file: