1 43 package org.objectweb.jotm; 44 45 48 class ResourceInfo { 49 50 private Resource myres; 51 int mystate; 52 53 57 ResourceInfo(Resource res) { 58 if (TraceTm.jotm.isDebugEnabled()) { 59 TraceTm.jotm.debug("res=" + res); 60 } 61 myres = res; 62 mystate = PREPARED; 63 } 64 65 Resource getResource() { 66 if (TraceTm.jotm.isDebugEnabled()) { 67 TraceTm.jotm.debug("res="+ myres); 68 } 69 return myres; 70 } 71 72 static final int REGISTERED = 1; 74 static final int PREPARED = 2; 75 static final int COMMITTED = 3; 76 static final int ROLLEDBACK = 4; 77 static final int HEURISTIC_COMMIT = 5; 78 static final int HEURISTIC_ROLLBACK = 6; 79 static final int HEURISTIC_MIXED = 7; 80 static final int HEURISTIC_HAZARD = 8; 81 } 82 | Popular Tags |