1 24 package org.objectweb.jalisto.se.impl.mono; 25 26 import org.objectweb.jalisto.se.api.internal.OidTable; 27 import org.objectweb.jalisto.se.api.internal.InternalPhysicalFileAccess; 28 import org.objectweb.jalisto.se.api.JalistoProperties; 29 import org.objectweb.jalisto.se.impl.server.oid.OidTableImpl; 30 31 import java.util.Map ; 32 import java.util.TreeMap ; 33 34 public class OidTableMonoImpl extends OidTableImpl { 35 36 private OidTableMonoImpl(InternalPhysicalFileAccess physicalAccess, JalistoProperties properties) { 37 super(physicalAccess, properties); 38 transactionnalOids = new TreeMap (); 39 } 40 41 protected Map getTransactionnalOids(Object sessionId) { 42 return transactionnalOids; 43 } 44 45 46 private Map transactionnalOids; 47 48 51 52 53 public static OidTable getAnOidTable(InternalPhysicalFileAccess physicalAccess, JalistoProperties properties) { 54 OidTableMonoImpl oidTable; 55 try { 56 oidTable = new OidTableMonoImpl(physicalAccess, properties); 57 oidTable.readAtTable(); 58 } catch (Exception e) { 59 oidTable = new OidTableMonoImpl(physicalAccess, properties); 60 } 61 oidTable.oidPageSize = properties.getOidPageSize(); 62 return oidTable; 63 } 64 } 65 | Popular Tags |