1 9 package org.ozoneDB.core; 10 11 import java.io.*; 12 import org.ozoneDB.DxLib.*; 13 import org.ozoneDB.*; 14 15 16 24 public interface StoreManager { 25 26 27 31 public void init( Env env ); 32 33 34 public void startup() throws Exception ; 35 36 37 public void shutdown() throws Exception ; 38 39 40 56 public ObjectContainer newContainerAndLock( Transaction ta, OzoneCompatible target, ObjectID objID, 57 Permissions permissions,int lockLevel) throws Exception ; 58 59 60 64 public void updateLockLevel( Transaction ta, ObjectContainer container ) throws IOException; 65 66 79 public void prepareCommitTransaction( Transaction ta ) throws IOException,ClassNotFoundException ; 80 81 82 public void commitTransaction( Transaction ta ) throws IOException,ClassNotFoundException ; 83 84 85 88 public void abortTransaction( Transaction ta ) throws IOException,ClassNotFoundException ; 89 90 94 public DxSet objectNames(Transaction ta); 95 96 97 public ObjectContainer containerForID( Transaction ta, ObjectID id ) throws ObjectNotFoundException,IOException,ClassNotFoundException ; 98 99 100 105 public ObjectContainer containerForName( Transaction ta, String name ) throws Exception ; 106 107 108 113 public void nameContainer( Transaction ta, ObjectContainer container, String name ) throws PermissionDeniedException; 114 115 116 121 public DxBag clusterOfID( ObjectID id ) throws Exception ; 122 123 124 public DxIterator objectIDIterator(); 125 126 129 public void reportNamedObjectsToGarbageCollector(); 130 131 134 public Transaction createTransaction(Env env, User user); 135 } 136 | Popular Tags |