2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
6 package dstm2.file.interfaces;
8 import dstm2.Transaction.Status;
9 import java.util.Collection;
10 import dstm2.file.factory.TransactionalFile;
16 public class CustomCM implements ContentionManager{
18 public void resolveConflict(Transaction me, Transaction other, TransactionalFile obj) {
20 if (other.getStatus() == Status.ACTIVE || other.getStatus() == Status.COMMITTED)
21 other.waitWhileActiveNotWaiting();
24 public void resolveConflict(Transaction me, Collection<Transaction> other) {
25 throw new UnsupportedOperationException("Not supported yet.");
28 public long getPriority() {
29 throw new UnsupportedOperationException("Not supported yet.");
32 public void setPriority(long value) {
33 throw new UnsupportedOperationException("Not supported yet.");
36 public void openSucceeded() {
37 throw new UnsupportedOperationException("Not supported yet.");
40 public void committed() {
41 throw new UnsupportedOperationException("Not supported yet.");
44 public void resolveConflict(Transaction me, Transaction other) {
45 throw new UnsupportedOperationException("Not supported yet.");