*** empty log message ***
[IRC.git] / Robust / Transactions / TransactionalIO / src / TransactionalIO / core / ManagerRepository.java
1 /*
2  * To change this template, choose Tools | Templates
3  * and open the template in the editor.
4  */
5
6 package TransactionalIO.core;
7
8 import TransactionalIO.interfaces.ContentionManager;
9
10
11 /**
12  *
13  * @author navid
14  */
15 public class ManagerRepository {
16     private static ContentionManager blockcm;
17     private static ContentionManager offsetcm;
18
19     public synchronized static ContentionManager getBlockcm() {
20         return blockcm;
21     }
22
23     public synchronized static void setBlockcm(ContentionManager blockcm) {
24         ManagerRepository.blockcm = blockcm;
25     }
26
27     public synchronized static ContentionManager getOffsetcm() {
28         return offsetcm;
29     }
30
31     public synchronized static void setOffsetcm(ContentionManager offsetcm) {
32         ManagerRepository.offsetcm = offsetcm;
33     }
34     
35
36 }